{\r
this.Document = doc;\r
this.Document.UpdateCalledAlways += new DocumentUpdateEventHandler(doc_Update);\r
- this.Document.Progress += Document_Progress;\r
this._LayoutLines = new LineToIndexTable(this.Document, r);\r
this._LayoutLines.SpilitString = new SpilitStringEventHandler(LayoutLines_SpilitStringByChar);\r
this.render = r;\r
GC.SuppressFinalize(this);\r
}\r
\r
+ public virtual void CalculateLineCountOnScreen()\r
+ {\r
+ }\r
+\r
protected virtual void Dispose(bool disposing)\r
{\r
if (disposing)\r
{\r
this.Document.UpdateCalledAlways -= new DocumentUpdateEventHandler(this.doc_Update); //これをしないと複数のビューを作成した時に妙なエラーが発生する\r
- this.Document.Progress -= Document_Progress;\r
}\r
this._LayoutLines.Clear();\r
}\r
{\r
}\r
\r
- protected virtual void CalculateLineCountOnScreen()\r
- {\r
- }\r
\r
protected virtual void OnSrcChanged(EventArgs e)\r
{\r
}\r
}\r
\r
- void Document_Progress(object sender, ProgressEventArgs e)\r
- {\r
- if (e.state == ProgressState.Complete)\r
- this.CalculateLineCountOnScreen();\r
- }\r
-\r
void doc_Update(object sender, DocumentUpdateEventArgs e)\r
{\r
switch (e.type)\r