[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:38:47
Message-ID: AANLkTimUqto154BuBYEs9+FjgmSTC01GSrEQ3edLyiw- () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi
I also tried this method before, use setReadWrite(false) but it does not
work. Seem, it only show a message to the console like this:
Can't set a read-only document to 'modified'
On Tue, Aug 17, 2010 at 1:13 PM, Cyrille Berger <cberger@cberger.net> wrote:
> Hi,
>
> KoDocument inherits KParts::ReadWritePart which contains function to set
> the
> document read-only.
>
> So I suggest reading:
> http://api.kde.org/4.x-api/kdelibs-
> apidocs/kparts/html/classKParts_1_1ReadWritePart.html
>
> --
> Cyrille Berger
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
--
Cheers !
trungnt
[Attachment #5 (text/html)]
Hi<div><br></div><div>I also tried this method before, use setReadWrite(false) but \
it does not work. Seem, it only show a message to the console like \
this:</div><div><br></div><div> <table style="-qt-table-type: root; margin-top:4px; \
margin-bottom:4px; margin-left:4px; margin-right:4px;"> <tbody><tr>
<td style="border: none;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; \
font-size:9pt; color:#c80000;">Can't set a read-only document to \
'modified' </span></p> </td></tr></tbody></table><br><div \
class="gmail_quote">On Tue, Aug 17, 2010 at 1:13 PM, Cyrille Berger <span \
dir="ltr"><<a href="mailto:cberger@cberger.net">cberger@cberger.net</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> Hi,<br>
<br>
KoDocument inherits KParts::ReadWritePart which contains function to set the<br>
document read-only.<br>
<br>
So I suggest reading:<br>
<a href="http://api.kde.org/4.x-api/kdelibs-" \
target="_blank">http://api.kde.org/4.x-api/kdelibs-</a><br> \
apidocs/kparts/html/classKParts_1_1ReadWritePart.html<br> <font color="#888888"><br>
--<br>
Cyrille Berger<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> \
</font></blockquote></div><br><br clear="all"><br>-- <br>Cheers !<br><br>trungnt<br> \
</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