Age | Commit message (Collapse) | Author | Files | Lines |
|
While "Save" (i.e. saving back to the original location)
doesn't make sense when editing is disabled (because the
doc cannot be changed) and the menu entry is therefore
not available when the experimental editing mode is
disabled, "Save As" does make sense, e.g. in order to
save a copy of a file opened from another app.
The menu entry was there, but not working as expected,
a 0-byte file was created.
This is because `LibreOfficeMainActivity#saveFileToOriginalSource`
would return early if experimental mode is disabled.
No longer do that, but save the file as requested.
Change-Id: I5785b6060c4ba9cdf3e9c3591b9f941ab987bf4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159857
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
* Update helpcontent2 from branch 'master'
to d700f1fe9e6e265d0f0125a0fb734fb2c201ce1a
- tdf#134377 Refactoring built-in file dialogs
Following use cases are covered:
File - Save A Copy
File - Export
Change-Id: Id32418e944dc968cbd16100083cb2b9835084fd5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143576
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
|
|
This adds a "Save As..." menu entry to Android
Viewer in order to save the currently opened file
to a different location.
Currently, the file is always saved in the corresponding
ODF format, regardless of the original file type,
i.e. that e.g. a DOCX file is saved in ODT format.
(This could be extended to allow a selection of the
target format as needed.)
Like "Save As" (and as compared to "Save a Copy")
in the desktop version, the app remembers the
new document URI and subsequent save operations
will overwrite the newly saved file, not the originally
opened one.
(There is no need to create a new temporary
local file to use, though.)
The directory of the currently used file
is preselected in the file chooser used to
specify where to save the new file.
Make sure to copy the file in a non-main thread,
since the destination URI might be handled
by a DocumentsProvider that does network access.
However, for now the main thread just waits for
the separate thread to finish, just like
commit 7f838b73e85eb6f0a1dce4647650a5cf5f34ccd2
Date: Fri Mar 19 15:46:36 2021 +0100
tdf#129833 android: Move reading file to separate thread
implemented it for copying from the URI to the
temporary file when opening a file.
This also adds a 'TileProvider#isDrawing' method
(like the already existing 'isTextDocument',
'isSpreadsheet' and 'isPresentation' ones).
Change-Id: I6f56b71763431b89a6c74be35cc1e81fad136cd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114058
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
So far, LOKitTileProvider's 'saveDocumentAs' method
was always saving a copy of the current document
(or doing an export), but was not continuing to use
the newly saved doc afterwards.
Add an additional parameter 'takeOwnership' to the
method to specify whether to do so.
In other words,
* the 'takeOwnership=false' case continues to
do what was done previously, it basically does what
"File" -> "Save a Copy" or "File" -> "Export"
does in the desktop version
* the 'takeOwnership=true' case now basically does the
same as "File" -> "Save As" in the desktop version
(except that the path is already known in the
Android case)
This essentially forwards the "TakeOwnership"
param to LibreOfficeKit, which was originally
added there in
commit a121074cbd07939713e169586469b934aedbe594
Date: Wed Feb 10 13:26:50 2016 +0100
lok: Introduce a "TakeOwnership" filter option for saveAs().
It is consumed by the saveAs() itself, and when provided, the document
identity changes to the provided pUrl - meaning that '.uno:ModifiedStatus' is
triggered as with the "Save As..." in the UI.
This mode must not be used when saving to PNG or PDF.
Change-Id: I11b5aa814476a8dcab9eac5202bd052828ebbd96
This also adds a new 'SAVE_COPY_AS' event type to save a
copy without taking ownership, and switches all uses of the
'SAVE_AS' event to that new one for now. (So the behavior
remains unchanged, but the terminology is hopefully clearer.)
Except for one instance in LOKitTileProver::saveDocument (where
the cached version of the document is written to the original
URI, if present), all other places are left with the previous
behaviour in this commit.
Further changes will be done in follow-up commits.
Change-Id: I11996cd7276a6c6f2774535cd3e53cb997c8cd4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113375
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Change-Id: I0371bf3fd30f451c8dbb3f62c1bbae4532755662
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113240
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
|
|
- Save: Save, Save A Copy, Save All, Save As, Save Document, Save Merged
Documents, Save Record, Save Remote, Save (Modified State)
- Multi line icons: Align Left, Align Center, Align Right, Justified,
Toggle Bulleted List, Toggle Numbered List, Increased Indent, Decrease
Indent, Hanging Indent, Line Spacing 1, Line Spacing 1.5, Line Spacing
2, Increase Paragraph Spacing, Decrease Paragraph Spacing, Alphabet
Uppercase List Style, Alphabet Lowercase List Style, Roman Uppercase
List Style, Roman Lowercase List Style, Numbering Off, Insert
Unnumbered Entry, Restart Numbering, Bullets and Numbering, Above
Paragraph Spacing, Below Paragraph Spacing, Before Text Indent, After
Text Indent, First Line Indent, Insert Field/Data to Text, Data to
Fields, Protect Fields, Wrap Text
- Other icons: Insert Formula Object, Open Remote Files
This patch is an attempt to keep sync with upstream
Change-Id: Ibe0d4631aaa7379a933ed89f8499e146bd2b7f1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107273
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
|
|
Project: help b6e0ecde5fb3eafe88846f055a4917ac99d38e36
tdf#112155 Help page for Save a Copy
Change-Id: Ie514f96925c0283e05ac9686b06edbda7853801b
Reviewed-on: https://gerrit.libreoffice.org/46632
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
|
|
since initial
commit 7061e8403a3afddae253ad0a016e5613616030bb
Date: Wed Apr 3 21:05:12 2013 +0200
fdo#60780, refactor Save a Copy and fix
Change-Id: Iff4f1008b8f8682e6f9751141ed65720362563ad
Reviewed-on: https://gerrit.libreoffice.org/38601
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
Change-Id: Icc886a8d228cb786c6f318cfa2556ef113c553eb
Reviewed-on: https://gerrit.libreoffice.org/24081
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
|
|
DoSaveCompleted updates the SwViewShell and recent file lists after
the document was saved via DoSaveAs. So we can simply drop the
call and delete the SfxMedium to save a copy.
Change-Id: I04a0710949ca60e1ff4cab24c6b504deb130db63
Reviewed-on: https://gerrit.libreoffice.org/10983
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
|
|
Was added to writer in LO 4.1 but menu entries for other modules
were overlooked.
Change-Id: I90bcaa727eaa8fd8b35218f73c101f25c7a71d7b
Reviewed-on: https://gerrit.libreoffice.org/10707
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
|
|
Refactor Save a Copy, basing it on Export functionality.
SID_SAVEACOPY takes its parameters, and sends a SID_EXPORTDOC
request with them, using SID_SAVEACOPYITEM to differentiate
Save a Copy from regular Export.
Fix storing docx to url, by preventing finalizeFilter method,
in filterbase.cxx, from writing back to the original file's
MediaDescriptor.
Change-Id: I876dbe17e43b26a43f29e797fdb157e31889ee1e
Reviewed-on: https://gerrit.libreoffice.org/3355
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
|
|
Change-Id: Ibd607b5324a23e6c7be0ffec8237bc9d51bbd4ad
|
|
GUIStoreModel now correctly calls storeToUrl
instead of storeAsUrl, when saving a copy.
Dialog title is correctly set.
TODO:
- Write help
Change-Id: I4d7fc9ebc91c2129e8d8dcf9978c324bdddae129
|