Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv14573/include/gui

Modified Files:
        wxComposeView.h 
Log Message:
expand the template for new messages/articles immediately if possible, only
postpone doing it if the template really uses the values of the message
headers


Index: wxComposeView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxComposeView.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -b -u -2 -r1.71 -r1.72
--- wxComposeView.h     8 Feb 2002 17:46:26 -0000       1.71
+++ wxComposeView.h     4 Mar 2002 18:01:07 -0000       1.72
@@ -133,7 +133,4 @@
                       RecipientType rcptType = Recipient_Max);
 
-   /// get the subject value
-   String GetSubject() const;
-
    /// get from value (empty means default)
    String GetFrom() const;
@@ -142,4 +139,7 @@
    virtual String GetRecipients(RecipientType type) const;
 
+   /// get the currently entered subject
+   virtual String GetSubject() const;
+
    /// make a printout of input window
    void Print(void);
@@ -438,8 +438,17 @@
 // ----------------------------------------------------------------------------
 
-// expand the given template using the profile and message (which may be NULL
-// if it is not a reply/follow up) and insert the result into the composer
-//
-// return true if ok, false if template contained errors
+/**
+  Returns true if the template contains the references to the headers of the
+  message itself (in this case it can't be evaluated until the headers are
+  set)
+*/
+extern bool TemplateNeedsHeaders(const String& templateValue);
+
+/**
+  Expand the given template using the profile and message (which may be NULL if
+  it is not a reply/follow up) and insert the result into the composer
+
+  @return true if ok, false if template contained errors
+*/
 extern bool ExpandTemplate(Composer& cv,
                            Profile *profile,


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to