Re: koffice-devel Digest, Vol 98, Issue 3
赢渠梁 <[email protected]> Fri, 20 May 2011 21:35:03 +0800
| Newsgroups | gmane.comp.kde.devel.koffice |
|---|---|
| Message-ID | <[email protected]> |
--===============0097135815== Content-Type: multipart/alternative; boundary=001636ed6725730e1c04a3b53062 --001636ed6725730e1c04a3b53062 Content-Type: text/plain; charset=ISO-8859-1 Thank you for your response. From your response, I guess that you means that one copy of the data in document should be kept and every time we want to change the primary document, 1st, change the copy one, 2st, regenerate the structure and put each one in corresponding page. According to your method, in a GUI, we need a list of textedits, then how can we select the last few words in previous textedit and the first few words in next textedit at the same time? At first, I think Qt has some method to ensure that I can show a QWidget(eg. QTextEdit) in several parts. But I can not find it. 2011/5/20 <[email protected]> > Send koffice-devel mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.kde.org/mailman/listinfo/koffice-devel > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of koffice-devel digest..." > > > Today's Topics: > > 1. How does kword implement the pagination of pages? (???) > 2. Re: How does kword implement the pagination of pages? (C. Boemann) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 19 May 2011 19:26:22 +0800 > From: ??? <[email protected]> > Subject: How does kword implement the pagination of pages? > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, there. > Recently, I'm working on a project about implement a word-processor-like > textedit. In this project, multiple pages is needed and we should be able > to > edit text in the multi-page textedit just like in kword, in another word, > I > need to implement the function that users can select text covering > different > pages and after input in the previous page, overflow text should automatic > be in the next page or after delete text in the previous page, some word > that was in the next page will come up to the previous page. > However, I failed to implement this function. I tried to search in the > source code of kword, but failed too. Can anyone tell me how to do it? > Thanks a lot. > by binxxd9 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.kde.org/pipermail/koffice-devel/attachments/20110519/2dbbb755/attachment.htm > > ------------------------------ > > Message: 2 > Date: Thu, 19 May 2011 14:38:20 +0200 > From: "C. Boemann" <[email protected]> > Subject: Re: How does kword implement the pagination of pages? > To: "For developer's discussion about KOffice" <[email protected]> > Message-ID: <[email protected]> > Content-Type: Text/Plain; charset="utf-8" > > On Thursday 19 May 2011 13:26:22 ??? wrote: > > Hi, there. > > Recently, I'm working on a project about implement a word-processor-like > > textedit. In this project, multiple pages is needed and we should be able > > to edit text in the multi-page textedit just like in kword, in another > > word, I need to implement the function that users can select text > covering > > different pages and after input in the previous page, overflow text > should > > automatic be in the next page or after delete text in the previous page, > > some word that was in the next page will come up to the previous page. > > However, I failed to implement this function. I tried to search in the > > source code of kword, but failed too. Can anyone tell me how to do it? > > Thanks a lot. > > by binxxd9 > Hi > > Basically we store the data without pages, but just as one long list of > paragraphs (for you that would be lines i guess) > > We then have a layout pass that creates it's own set of structures that > tell > where in the data a new page starts. These structures are regenerated every > time the user enters or deletes anything in the data. An optimization is > that > we only starts regenerating from the page the change was made, and it's > also > planned (but not implemented) top stop regenerating the pages if we catch > up > with a state where we now the remaining pages are placed correctly. > > To not be too slow the layout process is not done all in one go but a > number > of pages at a time. > > hope this helps > > > ------------------------------ > > _______________________________________________ > koffice-devel mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/koffice-devel > > > End of koffice-devel Digest, Vol 98, Issue 3 > ******************************************** > --001636ed6725730e1c04a3b53062 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for your response. From your response, I guess that you means tha= t one copy of the data in document should be kept and every time we want to= change the primary document, 1st, change the copy one, 2st, regenerate the= structure and put each one in corresponding page.<br> According to your method, in a GUI, we need a list of textedits, then how c= an we select the last few words in previous textedit and the first few word= s in next textedit at the same time?<br><br>At first, I think Qt has some m= ethod to ensure that I can show a QWidget(eg. QTextEdit) in several parts. = But I can not find it.<br> <br><div class=3D"gmail_quote">2011/5/20 <span dir=3D"ltr"><<a href=3D"= mailto:[email protected]">[email protected]</a>>= </span><br><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0= .8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Send koffice-devel mailing list submissions to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]">koffice-devel@kde.= org</a><br> <br> To subscribe or unsubscribe via the World Wide Web, visit<br> =A0 =A0 =A0 =A0<a href=3D"https://mail.kde.org/mailman/listinfo/koffice-de= vel" target=3D"_blank">https://mail.kde.org/mailman/listinfo/koffice-devel<= /a><br> or, via email, send a message with subject or body 'help' to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]">koffice-de= [email protected]</a><br> <br> You can reach the person managing the list at<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]">koffice-deve= [email protected]</a><br> <br> When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of koffice-devel digest..."<br> <br> <br> Today's Topics:<br> <br> =A0 1. How does kword implement the pagination of pages? (???)<br> =A0 2. Re: How does kword implement the pagination of pages? (C. Boemann)<= br> <br> <br> ----------------------------------------------------------------------<br> <br> Message: 1<br> Date: Thu, 19 May 2011 19:26:22 +0800<br> From: ??? <<a href=3D"mailto:[email protected]">[email protected]</a>>= ;<br> Subject: How does kword implement the pagination of pages?<br> To: <a href=3D"mailto:[email protected]">[email protected]</a><br> Message-ID: <<a href=3D"mailto:BANLkTikzsZrJmRC2NyoMNbZLs_W9uzcz4w@mail.= gmail.com">[email protected]</a>><br> Content-Type: text/plain; charset=3D"iso-8859-1"<br> <br> Hi, there.<br> Recently, I'm working on a project about implement a word-processor-lik= e<br> textedit. In this project, multiple pages is needed and we should be able t= o<br> edit text in the multi-page textedit =A0just like in kword, in another word= , I<br> need to implement the function that users can select text covering differen= t<br> pages and after input in the previous page, overflow text should automatic<= br> be in the next page or after delete text in the previous page, some word<br= > that was in the next page will come up to the previous page.<br> However, I failed to implement this function. I tried to search in the<br> source code of kword, but failed too. Can anyone tell me how to do it?<br> Thanks a lot.<br> by binxxd9<br> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL: <a href=3D"http://mail.kde.org/pipermail/koffice-devel/attachments/201= 10519/2dbbb755/attachment.htm" target=3D"_blank">http://mail.kde.org/piperm= ail/koffice-devel/attachments/20110519/2dbbb755/attachment.htm</a><br> <br> ------------------------------<br> <br> Message: 2<br> Date: Thu, 19 May 2011 14:38:20 +0200<br> From: "C. Boemann" <<a href=3D"mailto:[email protected]">cbo@boem= ann.dk</a>><br> Subject: Re: How does kword implement the pagination of pages?<br> To: "For developer's discussion about KOffice" <<a href=3D= "mailto:[email protected]">[email protected]</a>><br> Message-ID: <<a href=3D"mailto:[email protected]">201105= [email protected]</a>><br> Content-Type: Text/Plain; =A0charset=3D"utf-8"<br> <br> On Thursday 19 May 2011 13:26:22 ??? wrote:<br> > Hi, there.<br> > Recently, I'm working on a project about implement a word-processo= r-like<br> > textedit. In this project, multiple pages is needed and we should be a= ble<br> > to edit text in the multi-page textedit =A0just like in kword, in anot= her<br> > word, I need to implement the function that users can select text cove= ring<br> > different pages and after input in the previous page, overflow text sh= ould<br> > automatic be in the next page or after delete text in the previous pag= e,<br> > some word that was in the next page will come up to the previous page.= <br> > However, I failed to implement this function. I tried to search in the= <br> > source code of kword, but failed too. Can anyone tell me how to do it?= <br> > Thanks a lot.<br> > by binxxd9<br> Hi<br> <br> Basically we store the data without pages, but just as one long list of<br> paragraphs (for you that would be lines i guess)<br> <br> We then have a layout pass that creates it's own set of structures that= tell<br> where in the data a new page starts. These structures are regenerated every= <br> time the user enters or deletes anything in the data. An optimization is th= at<br> we only starts regenerating from the page the change was made, and it's= also<br> planned (but not implemented) top stop regenerating the pages if we catch u= p<br> with a state where we now the remaining pages are placed correctly.<br> <br> To not be too slow the layout process is not done all in one go but a numbe= r<br> of pages at a time.<br> <br> hope this helps<br> <br> <br> ------------------------------<br> <br> _______________________________________________<br> koffice-devel mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</a><br> <a href=3D"https://mail.kde.org/mailman/listinfo/koffice-devel" target=3D"_= blank">https://mail.kde.org/mailman/listinfo/koffice-devel</a><br> <br> <br> End of koffice-devel Digest, Vol 98, Issue 3<br> ********************************************<br> </blockquote></div><br> --001636ed6725730e1c04a3b53062-- --===============0097135815== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/koffice-devel --===============0097135815==--