SFX2 Refactoring

From Apache OpenOffice Wiki
Revision as of 09:57, 14 September 2007 by Mba (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The problem

Though sfx2 no longer is the framework for everything it still is the backbone of the implementation of Writer, Calc, Draw/Impress and Math. sfx2 basically supports the MVC principle but it does not allow to decouple the parts as desired. The "template pattern" approach produces a very tight coupling of all involved classes and traditionally this was even enhanced by the application developers as they didn't try to limit the sfx2 influence as much as possible.

In result, the model/controller pair are represented in the following way:

Sfx2-old.png

but what we would like to see is

Sfx2-new.png

Personal tools