• Stephan Bergmann's avatar
    tdf#65498, tdf#87545: Don't confuse logically r/o doc with physically r/o · a199cad8
    Stephan Bergmann yazdı
    b9ecec7c "Allow for editing of read-only
    documents" introduced
    
     "A new state of 'IsOriginallyReadOnly' needed to be added to the medium, to
      keep track whether the medium was originally opened r/o (and is thus assumed
      to be physically r/o), as toggling SID_EDITDOC in the view also changes the
      open mode of the underlying medium.  Instead of trying to fully understand and
      disentangle that horrible mess, I just added yet another state to the mess..."
    
    But that heuristic is apparently too simplistic, as it treats documents
    originally opened "logically r/o" (via --view command line argument, or by
    checking the corresponding checkbox in the Open dialog) as "physically r/o" too,
    which leads to unexpected behavior when such documents are later switched into
    r/w Edit mode.
    
    An approach that hopefully works better overall is to set IsOriginallyReadOnly
    only if the document originally is r/o as reported by OSL (for a document with a
    file URL).
    
    Change-Id: I32d5ec655d7556a70680aee55feda4c6eea7795f
    a199cad8
Adı
Son kayıt (commit)
Son güncelleme
..
doc Loading commit data...
inc Loading commit data...
qa Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
AllLangResTarget_sfx2.mk Loading commit data...
CppunitTest_sfx2_metadatable.mk Loading commit data...
JunitTest_sfx2_complex.mk Loading commit data...
JunitTest_sfx2_unoapi.mk Loading commit data...
Library_qstart_gtk.mk Loading commit data...
Library_sfx.mk Loading commit data...
Makefile Loading commit data...
Module_sfx2.mk Loading commit data...
README Loading commit data...
UIConfig_sfx.mk Loading commit data...