ooo-build r11491 - in trunk: . patches/test
- From: kyoshida svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r11491 - in trunk: . patches/test
- Date: Sat, 2 Feb 2008 16:38:42 +0000 (GMT)
Author: kyoshida
Date: Sat Feb 2 16:38:41 2008
New Revision: 11491
URL: http://svn.gnome.org/viewvc/ooo-build?rev=11491&view=rev
Log:
2008-02-02 Kohei Yoshida <kyoshida novell com>
* patches/test/sfx2-always-allow-save-document.diff: experimental patch
to always enable save even when the document is not modified. useful
when the view data changes (such as the current cursor location, zoom
level etc.) but the user is unable to save it with the document because
such view data does not flag a document modified state. Not enable yet
in the build.
Added:
trunk/patches/test/sfx2-always-allow-save-document.diff
Modified:
trunk/ChangeLog
Added: trunk/patches/test/sfx2-always-allow-save-document.diff
==============================================================================
--- (empty file)
+++ trunk/patches/test/sfx2-always-allow-save-document.diff Sat Feb 2 16:38:41 2008
@@ -0,0 +1,39 @@
+? sfx2/sfx2.vpj
+Index: sfx2/source/doc/guisaveas.cxx
+===================================================================
+RCS file: /cvs/framework/sfx2/source/doc/guisaveas.cxx,v
+retrieving revision 1.31
+diff -u -r1.31 guisaveas.cxx
+--- sfx2/source/doc/guisaveas.cxx 26 Nov 2007 16:47:57 -0000 1.31
++++ sfx2/source/doc/guisaveas.cxx 2 Feb 2008 03:46:35 -0000
+@@ -679,8 +679,9 @@
+ GetMediaDescr() = aAcceptedArgs;
+
+ // the document must be modified
+- if ( !GetModifiable()->isModified() && !bVersInfoNeedsStore )
+- return STATUS_NO_ACTION;
++// always allow save (kohei)
++// if ( !GetModifiable()->isModified() && !bVersInfoNeedsStore )
++// return STATUS_NO_ACTION;
+
+ // if the document is readonly or a new one a SaveAs operation must be used
+ if ( !GetStorable()->hasLocation() || GetStorable()->isReadonly() )
+Index: sfx2/source/doc/objserv.cxx
+===================================================================
+RCS file: /cvs/framework/sfx2/source/doc/objserv.cxx,v
+retrieving revision 1.101
+diff -u -r1.101 objserv.cxx
+--- sfx2/source/doc/objserv.cxx 21 Nov 2007 16:47:51 -0000 1.101
++++ sfx2/source/doc/objserv.cxx 2 Feb 2008 03:46:35 -0000
+@@ -1058,8 +1058,9 @@
+ if ( !bMediumRO && GetMedium() && IsModified() )
+ rSet.Put(SfxStringItem(
+ nWhich, String(SfxResId(STR_SAVEDOC))));
+- else
+- rSet.DisableItem(nWhich);
++// always allow save (kohei)
++// else
++// rSet.DisableItem(nWhich);
+ }
+ break;
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]