Introduce ref-counting to the borders.
This fixes the long open problem that we lost memory whenever we used borders. Especially since it is possible to share a border with many shapes. This fixes all those issues, while still allowing a border to be shared between multiple shapes. svn path=/trunk/koffice/; revision=691271
Showing with 90 additions and 19 deletions