[Libreoffice-commits] core.git: svx/README

Miklos Vajna vmiklos at collabora.co.uk
Fri Jul 15 12:43:37 UTC 2016


 svx/README |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

New commits:
commit bb8d731c1a5d1acbab95b2db0dcf7ce09e0a1df3
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Jul 13 17:52:10 2016 +0200

    svx: extend README about VC/VOC/OC
    
    Change-Id: I48f47e203fb6b5c7adf553b33b26eb2ffef1f926
    Reviewed-on: https://gerrit.libreoffice.org/27190
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/svx/README b/svx/README
index 022f112..debe0d7 100644
--- a/svx/README
+++ b/svx/README
@@ -72,7 +72,7 @@ http://www.openoffice.org/marketing/ooocon2006/presentations/wednesday_g11.odp,
 slide number 6.
 
 .------- Model --------------.      .------- View -----------------------------------------.
-| SdrObject - ViewContact    | 1..* | ViewObjectContact       1..*                         |
+| SdrObject - ViewContact    | 1..* | ViewObjectContact                                    |
 |              getChild()    |------|    getPrimitiveList()  -----> Object(s) ---> SdrView |
 |              getVOC()      |      |    getRecPrimitiveList()      Contact                |
 |              getViewInd... |      |________|_____________________________________________|
@@ -92,6 +92,10 @@ svx/source/sdr/primitive2d
 The ViewContact / ViewObject / ViewObjectContact are in svx/source/sdr/contact
 Decomposes the SdrObjects, and does all sort of operations on them.
 
-[So far I haven't found a definition / concept what are supposed to be the
-ViewContact / ViewObject / ViewObjectContact.  If you find that out, please
-fix this README :-)]
+If the number of visualizable objects (e.g. SdrObjects) is X, and the number of
+SdrViews is Y, then:
+
+- there are X ViewContact instances (1:1 relation with a visualizable object)
+- there are Y ObjectContact instances (1:1 relation with an SdrView)
+- there are X*Y ViewObjecContact instances (1:N relation to both
+  visualizable objects and SdrViews)


More information about the Libreoffice-commits mailing list