logo

Class for importing from several different note formats. More...

Public Member Functions

 ImportNotes (Notes notes)
 Initializes a new instance of the ImportNotes class. More...
 
void ReadTextfile (StreamReader reader, RichTextBox rtbNewNote)
 Import a textfile as note content for a new note. More...
 
void ReadQuickpadFile (StreamReader reader, TextBox tbTitle, RichTextBox rtbNewNote)
 Import a QuickPad note file. More...
 
void ReadRTFfile (StreamReader reader, RichTextBox rtbNewNote)
 Import a rtf file as note content for a new note. More...
 
void ReadKeyNotefile (StreamReader reader, RichTextBox rtbNewNote)
 Import a KeyNote note file as note content for a new note. More...
 
void ReadTomboyfile (StreamReader reader, string tomboynotefile, TextBox tbTitle, RichTextBox rtbNewNote)
 Import a Tomboy note file as note content for a new note. And set the new note title. More...
 
void ReadMicroSENotefile (StreamReader reader, TextBox tbTitle, RichTextBox rtbNewNote)
 Import a MicroSE note file as note content for a new note. More...
 
void ReadNoteFlyBackupFile (string file)
 Read a NoteFly backup file. More...
 
void ReadStickiesCSVFile (string file)
 Read a Stickies notes CSV file. More...
 
void ReadPNotesBackupFile (string file)
 Read a PNotes full backup file. More...
 
void ReadCintaNotesXMLFile (string file)
 Read CintaNotes xml file exported notes. More...
 
void ReadDeskNotesXmlFile (string file)
 Read a DeskNotes Data XML file. More...
 
void ReadNoteFly1Note (string nf1notefile)
 Read a note file from NoteFly 1.0.x and save as a current NoteFly note. More...
 

Private Member Functions

string decode_title (string title_enc)
 Decode stickies title from UTF32 to UTF16 More...
 
void SetDefaultFontFamilyAndSize (RichTextBox rtbNewNote)
 Set font family and size. More...
 
string RemoveQuotes (string orgstring)
 Removes the quote from the begining and the end of the orgstring. More...
 

Private Attributes

const int DEFAULTIMPORTNOTEWIDTH = 240
 The width of a imported note by default. More...
 
const int DEFAULTIMPORTNOTEHEIGHT = 200
 The height of a imported note by default. More...
 
Notes notes
 Reference to notes More...
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.ImportNotes.ImportNotes ( Notes  notes)
Parameters
notesReference to notes class

Member Function Documentation

string NoteFly.ImportNotes.decode_title ( string  title_enc)
private
Parameters
title_encTitle encoded as UTF-32
Returns
Title string as UTF-16
void NoteFly.ImportNotes.ReadCintaNotesXMLFile ( string  file)
Parameters
fileThe CintaNotes exported notes xml full file path.
void NoteFly.ImportNotes.ReadDeskNotesXmlFile ( string  file)
Parameters
fileThe DeskNote file.
void NoteFly.ImportNotes.ReadKeyNotefile ( StreamReader  reader,
RichTextBox  rtbNewNote 
)
Parameters
readerThe streamreader to read the KeyNote.
rtbNewNoteReference to the richtedittextbox that gets the imported note content.
void NoteFly.ImportNotes.ReadMicroSENotefile ( StreamReader  reader,
TextBox  tbTitle,
RichTextBox  rtbNewNote 
)
Parameters
readerThe streamreader to read the MicroSE note file with.
tbTitleThe textbox to set title in.
rtbNewNoteThe richedittextbox to set content in.
void NoteFly.ImportNotes.ReadNoteFly1Note ( string  nf1notefile)
Parameters
nf1notefileTHe filename of the NoteFly 1.0.x note to import.
void NoteFly.ImportNotes.ReadNoteFlyBackupFile ( string  file)
Parameters
fileThe full path and filename of the notefly backup file.
void NoteFly.ImportNotes.ReadPNotesBackupFile ( string  file)
Parameters
fileThe file
void NoteFly.ImportNotes.ReadQuickpadFile ( StreamReader  reader,
TextBox  tbTitle,
RichTextBox  rtbNewNote 
)
Parameters
readerThe StreamReader
tbTitleThe textbox to set title in.
rtbNewNoteThe richteditextbox to set note content in.
void NoteFly.ImportNotes.ReadRTFfile ( StreamReader  reader,
RichTextBox  rtbNewNote 
)
Parameters
readerStreamreader to read the note content.
rtbNewNoteReference to the richtedittextbox that gets the imported note content.
void NoteFly.ImportNotes.ReadStickiesCSVFile ( string  file)
Parameters
fileThe stickies CSV file.
void NoteFly.ImportNotes.ReadTextfile ( StreamReader  reader,
RichTextBox  rtbNewNote 
)
Parameters
readerA streamreader to read the note content with
rtbNewNoteReference to the richtedittextbox that gets the imported note content.
void NoteFly.ImportNotes.ReadTomboyfile ( StreamReader  reader,
string  tomboynotefile,
TextBox  tbTitle,
RichTextBox  rtbNewNote 
)
Parameters
readerThe streamreader to read the Tomboy note with.
tomboynotefileThe Tomboy note file full filepath and filename.
tbTitleThe textbox to set the title in.
rtbNewNoteThe richedittextbox to set the content in.
string NoteFly.ImportNotes.RemoveQuotes ( string  orgstring)
private
Parameters
orgstringThe orginal string with quotes
Returns
A string without quotes.
void NoteFly.ImportNotes.SetDefaultFontFamilyAndSize ( RichTextBox  rtbNewNote)
private
Parameters
rtbNewNoteReference to the richtedittextbox that gets the imported note content.

Member Data Documentation

const int NoteFly.ImportNotes.DEFAULTIMPORTNOTEHEIGHT = 200
private
const int NoteFly.ImportNotes.DEFAULTIMPORTNOTEWIDTH = 240
private
Notes NoteFly.ImportNotes.notes
private