<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi all, <br><br>In my ongoing efforts to refactor, document, understand and generally cleanup OutputDevice, I'm finding it increasingly hard to keep track of the way the files are laid out. <br>
<br>Currently the files have very little order. The functions are split out into 6 seperate outdevx.cxx files (where x is a number). <br><br></div>I have pushed a private branch to propose a change to the layout:<br><br><a href="http://cgit.freedesktop.org/libreoffice/core/log/vcl/?h=private/tbsdy/outdev">http://cgit.freedesktop.org/libreoffice/core/log/vcl/?h=private/tbsdy/outdev</a><br>
<br></div>I have moved outdev.cxx to outdev6.cxx to the directly vcl/source/outdev, and into the following files:<br><br></div><div>outdev.cxx (for a variety of clipping functions, etc)<br></div>outdevnative.cxx<br>outmap.cxx<br>
bezier.cxx (for two shared bezier functions)<br></div>tworect.cxx<br>bitmap.cxx<br></div>curvedshapes.cxx<br></div>hatch.cxx<br></div>gradient.cxx<br>line.cxx<br></div>polyline.cxx<br>polygon.cxx<br></div>pixel.cxx<br>rect.cxx<br>
</div>wallpaper.cxx<br></div>blend.cxx<br>transparent.cxx<br></div>mask.cxx<br></div>text.cxx<br>font.cxx<br><br>I think this largely helps split up the file in a more sensible layout. <br><br>I realise that there is some concern that this might make merging Apache Open Office code with our own, but I feel that the file layout rearrangement really aids in code clarity. Certainly I find it helpful to just be able to look up specific functions in a more intuitive to understand file. <br>
<br></div>I know that it builds - I would just like to get some feedback on the layout before I push it out to master. <br><br>Chris Sherlock<br></div>