Re: AOO Design Patterns

2016-04-10 Thread Damjan Jovanovic
Hi Lalith It looks like SbxErrObject is a singleton: if you read errobject.cxx, you see that SbxErrObject::getErrObject() returns a single static instance. Why are you reading the main/basic code by the way? Would you like to contribute a patch? Damjan On Sun, Mar 27, 2016 at 8:48 PM, Lalith Ra

Fwd: AOO Design Patterns

2016-04-10 Thread Lalith Ramesh
If no one knows the answer to this question, that's OK. I just wanted to add a descriptive comment to the code. -- Forwarded message -- From: Lalith Ramesh Date: Sun, Mar 27, 2016 at 2:48 PM Subject: AOO Design Patterns To: dev@openoffice.apache.org Dev List, I was bro

AOO Design Patterns

2016-03-28 Thread Lalith Ramesh
Dev List, I was browsing through the code on Fisheye, and I noticed some interesting design patterns that were in use. For example, errobject.hxx has a public factory method to make new ErrObjects, but the constructors are not marked as public. What was the motivation behind this design decision?