+2004-10-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.38
+
+ * UIxMailToSelection.[wox|m]: removed superfluous debug messages
+
+ * UIxMailAdressbook.[wox|m]: redirect cover for Addressbook and Anais
+
+ * mailer.js: new JavaScript to open Addressbook and Anais windows
+
+ * product.plist: added Addressbook/Anais entries
+
2004-10-12 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.37
"to" = "To";
"cc" = "Cc";
"bcc" = "Bcc";
+
+"Addressbook" = "Addressbook";
+"Anais" = "Anais";
UIxMailEditor.m \
UIxMailEditorAction.m \
UIxMailToSelection.m \
+ UIxMailAddressbook.m \
\
UIxMailPartViewer.m \
UIxMailPartTextViewer.m \
\
UIxMailEditor.wox \
UIxMailToSelection.wox \
+ UIxMailAddressbook.wox \
\
UIxMailPartTextViewer.wox \
UIxMailPartMixedViewer.wox \
--- /dev/null
+/*
+ Copyright (C) 2000-2004 SKYRIX Software AG
+
+ This file is part of OGo
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+// $Id$
+
+
+#include <SOGoUI/UIxComponent.h>
+
+
+@interface UIxMailAddressbook : UIxComponent
+{
+
+}
+
+- (NSString *)contactsPath;
+- (NSString *)anaisPath;
+
+@end
+
+#include "common.h"
+
+@implementation UIxMailAddressbook
+
+- (NSString *)contactsPath {
+ return [[self userFolderPath]
+ stringByAppendingPathComponent:@"Contacts/select"];
+}
+
+- (NSString *)anaisPath {
+ return @"/anais/aideAnais.php";
+}
+
+- (id)defaultAction {
+ NSString *path = [self contactsPath];
+ path = [path stringByAppendingString:@"?callback=addAddress"];
+ return [self redirectToLocation:path];
+}
+
+- (id)anaisAction {
+ NSString *path, *param;
+
+ param = @"?m_fonc=addAddress&m_champ=mail,uid,sn#mon_etiquette";
+ path = [[self anaisPath] stringByAppendingString:param];
+ return [self redirectToLocation:path];
+}
+
+@end
--- /dev/null
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:rsrc="OGo:url"
+>
+ <head>
+ <title><var:string value="name"/></title>
+ </head>
+
+ <body>
+ The template of Web Component <em><var:string value="name"/></em> has not been edited, yet.
+ </body>
+</html>
\ No newline at end of file
[super dealloc];
}
-/* notifications */
-
-- (void)awake {
- [super awake];
- NSLog(@"%s", __PRETTY_FUNCTION__);
-}
-
-- (void)sleep {
- [super sleep];
-}
-
/* accessors */
- (void)setTo:(NSArray *)_to {
document.pageform.submit();
return true;
}
+
+/* addressbook helpers */
+
+function openAnais(sender) {
+ var urlstr;
+
+ urlstr = "anais";
+ var w = window.open(urlstr, "Anais",
+ "width=350,height=600,left=10,top=10,toolbar=no," +
+ "dependent=yes,menubar=no,location=no,resizable=yes," +
+ "scrollbars=yes,directories=no,status=no");
+ w.focus();
+}
+
+function openAddressbook(sender) {
+ var urlstr;
+
+ urlstr = "addressbook";
+ var w = window.open(urlstr, "Addressbook",
+ "width=600,height=400,left=10,top=10,toolbar=no," +
+ "dependent=yes,menubar=no,location=no,resizable=yes," +
+ "scrollbars=yes,directories=no,status=no");
+ w.focus();
+}
onclick = "clickedCompose(this);return false;";
cssClass = "tbicon_compose"; label = "Write";
},
- {
- link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Addressbook";
- }
),
( /* second group */
{ link = "#";
compose = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "compose";
+ actionName = "compose";
};
};
};
cssClass = "tbicon_getmail"; label = "Get Mail"; },
{ link = "compose"; target = "_blank";
cssClass = "tbicon_compose"; label = "Write"; },
- { link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Addressbook"; }
),
( /* second group */
{ link = "reply";
protectedBy = "View";
pageName = "UIxMailEditor";
};
-
compose = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "compose";
+ actionName = "compose";
};
reply = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "reply";
+ actionName = "reply";
};
replyall = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "replyall";
+ actionName = "replyall";
};
forward = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "forward";
+ actionName = "forward";
};
};
};
( /* first group */
{ link = "getMail";
cssClass = "tbicon_getmail"; label = "Get Mail"; },
- { link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Addressbook"; }
)
);
};
( /* first group */
{ link = "getMail";
cssClass = "tbicon_getmail"; label = "Get Mail"; },
- { link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Addressbook"; }
)
);
};
protectedBy = "View";
pageName = "UIxMailAccountView";
};
+ addressbook = {
+ protectedBy = "View";
+ pageName = "UIxMailAddressbook";
+ };
+ anais = {
+ protectedBy = "View";
+ pageName = "UIxMailAddressbook";
+ actionName = "anais";
+ };
};
};
{
link = "#"; // "compose"; // target = "_blank";
onclick = "clickedCompose(this);return false;";
- cssClass = "tbicon_compose"; label = "Write";
- },
- { link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Addressbook"; },
+ cssClass = "tbicon_compose"; label = "Write"; },
)
);
};
compose = {
protectedBy = "View";
actionClass = "UIxMailEditorAction";
- actionName = "compose";
+ actionName = "compose";
};
};
};
{ link = "#";
onclick = "clickedEditorSend(this);return false;";
cssClass = "tbicon_send"; label = "Send"; },
- { link = "contacts"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Contacts"; },
+ { link = "#"; target = "addressbook";
+ onclick = "openAddressbook(this);return false;";
+ cssClass = "tbicon_addressbook"; label = "Addressbook"; },
+ { link = "#"; target = "anais";
+ onclick = "openAnais(this);return false;";
+ cssClass = "tbicon_addressbook"; label = "Anais"; },
{ link = "#";
onclick = "clickedEditorAttach(this);return false;";
cssClass = "tbicon_attach"; label = "Attach"; },
protectedBy = "View";
pageName = "UIxMailEditor";
};
+ addressbook = {
+ protectedBy = "View";
+ pageName = "UIxMailAddressbook";
+ };
+ anais = {
+ protectedBy = "View";
+ pageName = "UIxMailAddressbook";
+ actionName = "anais";
+ };
};
};
};