[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: koffice-devel Digest, Vol 98, Issue 3
From:       <binxxd9 () gmail ! com>
Date:       2011-05-20 13:35:03
Message-ID: BANLkTinia72pGK7KaxM86F8Dkwpq+VM9Dg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <koffice-devel-request@kde.org>

> Send koffice-devel mailing list submissions to
>        koffice-devel@kde.org
>
> 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
>        koffice-devel-request@kde.org
>
> You can reach the person managing the list at
>        koffice-devel-owner@kde.org
>
> 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: ??? <binxxd9@gmail.com>
> Subject: How does kword implement the pagination of pages?
> To: koffice-devel@kde.org
> Message-ID: <BANLkTikzsZrJmRC2NyoMNbZLs_W9uzcz4w@mail.gmail.com>
> 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" <cbo@boemann.dk>
> Subject: Re: How does kword implement the pagination of pages?
> To: "For developer's discussion about KOffice" <koffice-devel@kde.org>
> Message-ID: <201105191438.20936.cbo@boemann.dk>
> 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
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
>
> End of koffice-devel Digest, Vol 98, Issue 3
> ********************************************
>

[Attachment #5 (text/html)]

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.<br> 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?<br><br>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.<br> <br><div class="gmail_quote">2011/5/20  <span dir="ltr">&lt;<a \
href="mailto:koffice-devel-request@kde.org">koffice-devel-request@kde.org</a>&gt;</span><br><blockquote \
class="gmail_quote" style="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>
        <a href="mailto:koffice-devel@kde.org">koffice-devel@kde.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.kde.org/mailman/listinfo/koffice-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/koffice-devel</a><br> or, via \
                email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:koffice-devel-request@kde.org">koffice-devel-request@kde.org</a><br>
 <br>
You can reach the person managing the list at<br>
        <a href="mailto:koffice-devel-owner@kde.org">koffice-devel-owner@kde.org</a><br>
 <br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of koffice-devel digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. How does kword implement the pagination of pages? (???)<br>
   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: ??? &lt;<a href="mailto:binxxd9@gmail.com">binxxd9@gmail.com</a>&gt;<br>
Subject: How does kword implement the pagination of pages?<br>
To: <a href="mailto:koffice-devel@kde.org">koffice-devel@kde.org</a><br>
Message-ID: &lt;<a href="mailto:BANLkTikzsZrJmRC2NyoMNbZLs_W9uzcz4w@mail.gmail.com">BANLkTikzsZrJmRC2NyoMNbZLs_W9uzcz4w@mail.gmail.com</a>&gt;<br>
                
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi, there.<br>
Recently, I&#39;m working on a project about implement a word-processor-like<br>
textedit. In this project, multiple pages is needed and we should be able to<br>
edit text in the multi-page textedit  just like in kword, in another word, I<br>
need to implement the function that users can select text covering different<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="http://mail.kde.org/pipermail/koffice-devel/attachments/20110519/2dbbb755/attachment.htm" \
target="_blank">http://mail.kde.org/pipermail/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: &quot;C. Boemann&quot; &lt;<a \
                href="mailto:cbo@boemann.dk">cbo@boemann.dk</a>&gt;<br>
Subject: Re: How does kword implement the pagination of pages?<br>
To: &quot;For developer&#39;s discussion about KOffice&quot; &lt;<a \
                href="mailto:koffice-devel@kde.org">koffice-devel@kde.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:201105191438.20936.cbo@boemann.dk">201105191438.20936.cbo@boemann.dk</a>&gt;<br>
                
Content-Type: Text/Plain;  charset=&quot;utf-8&quot;<br>
<br>
On Thursday 19 May 2011 13:26:22 ??? wrote:<br>
&gt; Hi, there.<br>
&gt; Recently, I&#39;m working on a project about implement a word-processor-like<br>
&gt; textedit. In this project, multiple pages is needed and we should be able<br>
&gt; to edit text in the multi-page textedit  just like in kword, in another<br>
&gt; word, I need to implement the function that users can select text covering<br>
&gt; different pages and after input in the previous page, overflow text should<br>
&gt; automatic be in the next page or after delete text in the previous page,<br>
&gt; some word that was in the next page will come up to the previous page.<br>
&gt; However, I failed to implement this function. I tried to search in the<br>
&gt; source code of kword, but failed too. Can anyone tell me how to do it?<br>
&gt; Thanks a lot.<br>
&gt; 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&#39;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 that<br>
we only starts regenerating from the page the change was made, and it&#39;s also<br>
planned (but not implemented) top stop regenerating the pages if we catch up<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 number<br>
of pages at a time.<br>
<br>
hope this helps<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
koffice-devel mailing list<br>
<a href="mailto:koffice-devel@kde.org">koffice-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/koffice-devel" \
target="_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>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic