templateinterface.cpp
61 i18n( "This template uses personal data that is stored in the TDE addressbook, but you have not selected a personal entry. You can still use the template without one, but you will have to type personal data. Would you like to select one now?" ), \
152 bool TemplateInterface::insertTemplateText ( uint line, uint column, const TQString &templateString, const TQMap<TQString, TQString> &initialValues, TQWidget *parentWindow )
185 && insertTemplateTextImplementation( line, column, templateString, enhancedInitValues, parentWindow );
virtual TQString yearString(const TQDate &pDate, bool bShort) const
const KCalendarSystem * calendar() const
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:9
bool insertTemplateText(uint line, uint column, const TQString &templateString, const TQMap< TQString, TQString > &initialValues, TQWidget *parentWindow=0)
Inserts an interactive ediable template text at line "line", column "col".
Definition: templateinterface.cpp:152
static TDELocale * locale()
TQString formatTime(const TQTime &pTime, bool includeSecs, bool isDuration) const
TQString formatDate(const TQDate &pDate, bool shortFormat=false) const
static bool expandMacros(TQMap< TQString, TQString > &initialValues, TQWidget *parentWindow)
Parses templateString for macros in the form [$%]{NAME} and finds the value corresponding to NAME if ...
Definition: templateinterface.cpp:73
virtual bool insertTemplateTextImplementation(uint line, uint column, const TQString &templateString, const TQMap< TQString, TQString > &initialValues, TQWidget *parentWindow=0)=0
You must implement this, it is called by insertTemplateText, after all default values are inserted.
This is an interface for inserting template strings with user editable fields into a document.
Definition: templateinterface.h:37