[sword-cvs] sword/apps/windoze swdisprtfchap.cpp,1.18,1.19
sword@www.crosswire.org
sword@www.crosswire.org
Wed, 18 Jun 2003 16:37:23 -0700
Update of /usr/local/cvsroot/sword/apps/windoze
In directory www:/tmp/cvs-serv21123/apps/windoze
Modified Files:
swdisprtfchap.cpp
Log Message:
Added note popups for ESV (well, should work for all osis encoded notes)
Fixed static bug in SWModule::RenderText
Index: swdisprtfchap.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/apps/windoze/swdisprtfchap.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** swdisprtfchap.cpp 9 May 2003 23:51:16 -0000 1.18
--- swdisprtfchap.cpp 18 Jun 2003 23:37:21 -0000 1.19
***************
*** 146,173 ****
Lines->LoadFromStream(RTFStream);
! // make links
! while (true) {
! int start, len, foundAt, endAt;
!
! start = (SelLength) ? SelStart + SelLength : 0;
! len = Text.Length() - start;
! foundAt = this->SearchText("<a href=\"\">", start, len, TRichSearchTypes());
! if (foundAt == -1)
! break;
!
! SelStart = foundAt;
! SelLength = 11;
! this->SelText = "";
! endAt = this->SearchText("</a>", foundAt, len, TRichSearchTypes());
! if (foundAt == -1)
! break;
! SelStart = endAt;
! SelLength = 4;
! this->SelText = "";
! SelStart = foundAt;
! SelLength = endAt - foundAt;
! this->SelAttributes->Link = true;
! }
!
//{ Position control text at current verse }
this->SetFocus();
--- 146,151 ----
Lines->LoadFromStream(RTFStream);
! makeLinks();
!
//{ Position control text at current verse }
this->SetFocus();