Hi All,
Below is a note from the Developers
guide(http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.pdf)
Pg 327 Chapter 5
////////////////////////////////////////////////////
Design patterns and coding recommendations for OpenOffice.org. Possible
candidates are:
Singleton: global service
Singleton: global service manager, Desktop, UCB
Factory: decouple specification and implementation, cross-environment
instantiation, contextspecific
instances
Listener: eliminate polling
Element access: it is arguable if that is a design pattern or just an API
Properties: solves remote batch access, but incurs the problem of
compile-time type indifference
UCB commands: universal dispatching of content specific operations
Dispatch commands: universal dispatching of object specific operations,
chain of responsibility
////////////////////////////////////////////////////
I assume they are not implemented in the current version of OO.org(1.1.4)
and so labelled as
recommendations.
I was wondering if they are not currently implemented is it possible to
implement them? If it is possible can anybody point me in the right
direction.
I have learnt Singelton,Factory,Listener patterns but dont know how to
proceed for Element access,Properties,UCB commands, Dispatch commands.
I would appreciate any help.
Sincerely
Senthil
P.S. My apologies for positng this again but as I did not get any reply
since I last posted it (8-4-05) I am reposting it.
From: "Senthilkumar Mehalingam" <[EMAIL PROTECTED]>
Reply-To: dev@api.openoffice.org
To: dev@api.openoffice.org
CC: [EMAIL PROTECTED]
Subject: Re: [api-dev] Browsing the source code
Date: Tue, 02 Aug 2005 20:33:58 -0400
Hi All,
Thanks Andrew for your reply.
I found the file fecopy.cxx in the directory you suggested. That has the
copy function implemented. But as the documentation is in a language other
than English so I could not understand it. Is it possible to convert the
source file to an English file. I looked up the web but could not find any
appropriate help.
Also I found while searching through the source a file called
AccessibleEditableTextPara.cxx in svx/ source/accessibility/ which had
the copy,paste,cut functions implemented. What you have told is correct
that each references(each component of OO.org like Draw,Impress and so on)
have their own implementation.
I would appreciate any help.
Sincerely
Senthil
From: Andrew Douglas Pitonyak <[EMAIL PROTECTED]>
Reply-To: dev@api.openoffice.org
To: dev@api.openoffice.org
Subject: Re: [api-dev] Browsing the source code
Date: Tue, 02 Aug 2005 00:38:18 -0400
The real problem is finding the specific code that you want. For example,
I decided to look at the Writer specific code so I looked here:
sw/source/core/frmedt
and I searched for the word Clipboard. Probably NOT what you want. I also
some stuff off of the core directories. In fact, I saw many many
references. I expect that each portion will have its own handling code.
Senthilkumar Mehalingam wrote:
Hi All,
Thanks Andrew for your reply.
I did as you told but I cannot find the functions(cut,paste,undo,redo)
inspite of a thorugh search as searching for cut finds .cpp files which
have cut as a middle word in them and searching for "cut" finds no .cpp
files. I got the source from
http://openoffice.mirror.wrpn.net/stable/1.1.4/OOo_1.1.4_source.tar.gz
and am not sure if I did get the right version or I needed to get the
most recent one from the CVS Server. The unzipped version had 116 cpp
source files. Are the functions implemented in some other files having a
different extension or am I making a mistake.
I would appreciate any help.
Sincerely
Senthil
From: Andrew Douglas Pitonyak <[EMAIL PROTECTED]>
Reply-To: dev@api.openoffice.org
To: dev@api.openoffice.org
Subject: Re: [api-dev] Browsing the source code
Date: Wed, 27 Jul 2005 22:02:58 -0400
I typically download the source code and then I use a text search on
the whole thing. Of course, the whole thing is more than 1GB I think,
so on my computer, this can take a long time. Especially since
sometimes I search for the wrong thing :-(
Senthilkumar Mehalingam wrote:
Hi All,
I want to see how the cut,paste,undo,redo functionalities are
implemented in OO.org. If anybody could point me to the specific files
and modules in which they are implemented I would highly appreciate
that.
I want to know if Design Patterns are used in implementing them or
not. If not I would like to try to implement it.
I would appreciate any help and advice.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm
Free Info: http://www.pitonyak.org/oo.php
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm
Free Info: http://www.pitonyak.org/oo.php
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]