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

List:       koffice-devel
Subject:    Re: How to set a KoDocument to read-only
From:       Thành Trung Nguyễn <trungnthut () gmail ! com>
Date:       2010-08-18 8:37:14
Message-ID: AANLkTikypU4UwbuDw0PB_C1vnTnJ4ktgOGD4g9Lw5BKF () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi, thanks for your answer.

But, I haven't found koffice/tool/f-office or anything like that.

On Tue, Aug 17, 2010 at 1:55 PM, Mani N C <maninc@gmail.com> wrote:

> Hi,
>
> May be you would want to look into koffice/tool/f-office code.
> MainWindow::openDocument()
>
> Br,
> Mani
>
> 2010/8/17 Thà nh Trung Nguyễn <trungnthut@gmail.com>
>
>> Hi,
>>
>> So I'm new here. I was checking KOffice code, and writing a simple demo to
>> view Office document.
>> So, I wonder if there is anyway to make a KoDocument become readonly. I
>> use KoCanvasController to view the contents.
>>
>> I tried to set all shapes to contentsProtected and geometryProtected but
>> seem these do not work.
>> Setting selectable to false seem does the trick but then, I can select and
>> copy the contents.
>>
>> Can anyone show me a way for this ?
>>
>> --
>> Cheers !
>>
>> trungnt
>>
>> _______________________________________________
>> koffice-devel mailing list
>> koffice-devel@kde.org
>> https://mail.kde.org/mailman/listinfo/koffice-devel
>>
>>
>
>
> --
> N C Manikanda Prasad
>
>
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
>


-- 
Cheers !

trungnt

[Attachment #5 (text/html)]

Hi, thanks for your answer.<div><br><div>But, I haven&#39;t found \
koffice/tool/f-office or anything like that.<br><br><div class="gmail_quote">On Tue, \
Aug 17, 2010 at 1:55 PM, Mani N C <span dir="ltr">&lt;<a \
href="mailto:maninc@gmail.com">maninc@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Hi,<div><br></div><div>May be you would want to look into \
koffice/tool/f-office code.  <span \
style="font-family:monospace;font-size:medium;white-space:pre-wrap">MainWindow::openDocument()</span></div>



<div><font face="monospace"><span \
style="white-space:pre-wrap;font-size:medium"><br></span></font></div><div><font \
face="monospace"><span \
style="white-space:pre-wrap;font-size:medium">Br,</span></font></div>

<div><font face="monospace"><span \
style="white-space:pre-wrap;font-size:medium">Mani<br></span></font><br><div \
class="gmail_quote">2010/8/17 Thà nh Trung Nguyễn <span dir="ltr">&lt;<a \
href="mailto:trungnthut@gmail.com" \
target="_blank">trungnthut@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div></div><div class="h5">Hi,  <div><br></div><div>So \
I&#39;m new here. I was checking KOffice code, and writing a simple demo to view \
Office document.</div>


<div>So, I wonder if there is anyway to make a KoDocument become readonly. I use \
KoCanvasController to view the contents.</div> <div><br></div><div>I tried to set all \
shapes to contentsProtected and geometryProtected but seem these do not \
work.</div><div>Setting selectable to false seem does the trick but then, I can \
select and copy the contents.</div>



<div><br></div><div>Can anyone show me a way for this ?<br clear="all"><br>-- \
<br>Cheers !<br><br>trungnt<br> </div>
<br></div></div><div class="im">_______________________________________________<br>
koffice-devel mailing list<br>
<a href="mailto:koffice-devel@kde.org" target="_blank">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></div></blockquote></div><br><br clear="all"><br>-- <br>N C Manikanda \
Prasad<br><br> </div>
<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></blockquote></div><br><br clear="all"><br>-- <br>Cheers !<br><br>trungnt<br> \
</div></div>



_______________________________________________
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