[Libreoffice-commits] core.git: 2 commits - sd/inc sd/source
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 31 04:46:16 UTC 2019
sd/inc/strings.hrc | 2 ++
sd/source/ui/slidesorter/controller/SlsSelectionManager.cxx | 7 ++++++-
sd/source/ui/view/Outliner.cxx | 4 ++--
sd/source/ui/view/unmodpg.cxx | 5 ++++-
4 files changed, 14 insertions(+), 4 deletions(-)
New commits:
commit 877d0c2c211067e8c1b5fdff0f6d9703c94767e9
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Thu Oct 31 00:49:40 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Thu Oct 31 05:45:47 2019 +0100
tdf#113041: Kill WaitCursor after FindAll in Draw and Impress
Change-Id: Ibfbbc673a00839f538febc5bab1140b2e53535eb
Reviewed-on: https://gerrit.libreoffice.org/81809
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 7fab5d32c3ba..d3bd66724c7b 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -495,8 +495,8 @@ bool SdOutliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
pSearchDlg->SetSrchFlag(false);
}
}
- else
- mpDrawDocument->GetDocSh()->SetWaitCursor( false );
+
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
return bEndOfSearch;
}
commit 5bc12e114fec50274580005647345a5392741ded
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Wed Oct 30 16:46:47 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Thu Oct 31 05:45:33 2019 +0100
tdf#114175: No slides in Draw
In the past in Draw and Impress the same term 'slide' was used.
Although it was decided to use 'page' in Draw and 'slide' in Impress;
in several locations of the user interface this has been changed but not everywhere.
Change-Id: I8f0911a6ae1775335950c0212dac52962a2af46a
Reviewed-on: https://gerrit.libreoffice.org/81779
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/sd/inc/strings.hrc b/sd/inc/strings.hrc
index cb345f59cd17..1eeb0c178976 100644
--- a/sd/inc/strings.hrc
+++ b/sd/inc/strings.hrc
@@ -84,6 +84,7 @@
#define STR_IMPRESS NC_("STR_IMPRESS", "StarImpress 4.0")
#define STR_LAYER NC_("STR_LAYER", "Layer")
#define STR_UNDO_DELETEPAGES NC_("STR_UNDO_DELETEPAGES", "Delete slides")
+#define STR_UNDO_DELETEPAGES_DRAW NC_("STR_UNDO_DELETEPAGES_DRAW", "Delete pages")
#define STR_UNDO_INSERTPAGES NC_("STR_UNDO_INSERTPAGES", "Insert slides")
#define STR_ASK_DELETE_LAYER NC_("STR_ASK_DELETE_LAYER", "Are you sure you want to delete the level \"$\"?\nNote: All objects on this level will be deleted!")
#define STR_ASK_DELETE_ALL_PICTURES NC_("STR_ASK_DELETE_ALL_PICTURES", "Do you really want to delete all images?")
@@ -122,6 +123,7 @@
#define STR_ASK_FOR_CONVERT_TO_BEZIER NC_("STR_ASK_FOR_CONVERT_TO_BEZIER", "Convert selected object to curve?")
#define STR_UNDO_CHANGE_PRES_OBJECT NC_("STR_UNDO_CHANGE_PRES_OBJECT", "Modify presentation object '$'")
#define STR_UNDO_MODIFY_PAGE NC_("STR_UNDO_MODIFY_PAGE", "Slide layout")
+#define STR_UNDO_MODIFY_PAGE_DRAW NC_("STR_UNDO_MODIFY_PAGE_DRAW", "Page layout")
#define STR_UNDO_INSERT_FILE NC_("STR_UNDO_INSERT_FILE", "Insert file")
#define STR_UNDO_INSERT_SPECCHAR NC_("STR_UNDO_INSERT_SPECCHAR", "Insert special character")
#define STR_UNDO_SET_PRESLAYOUT NC_("STR_UNDO_SET_PRESLAYOUT", "Apply presentation layout")
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionManager.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionManager.cxx
index 04c5d8270250..ca0cbad1bf51 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionManager.cxx
@@ -107,10 +107,15 @@ void SelectionManager::DeleteSelectedPages (const bool bSelectFollowingPage)
if (pDrawView)
pDrawView->BlockPageOrderChangedHint(true);
+ // Proper naming for the undo action
+ OUString sUndoComment(SdResId(STR_UNDO_DELETEPAGES));
+ if (mrSlideSorter.GetView().GetDoc().GetDocumentType() == DocumentType::Draw)
+ sUndoComment = SdResId(STR_UNDO_DELETEPAGES_DRAW);
+
// The actual deletion of the selected pages is done in one of two
// helper functions. They are specialized for normal respectively for
// master pages.
- mrSlideSorter.GetView().BegUndo (SdResId(STR_UNDO_DELETEPAGES));
+ mrSlideSorter.GetView().BegUndo (sUndoComment);
if (mrSlideSorter.GetModel().GetEditMode() == EditMode::Page)
DeleteSelectedNormalPages(aSelectedPages);
else
diff --git a/sd/source/ui/view/unmodpg.cxx b/sd/source/ui/view/unmodpg.cxx
index 06272b0b8d9b..5885e346db48 100644
--- a/sd/source/ui/view/unmodpg.cxx
+++ b/sd/source/ui/view/unmodpg.cxx
@@ -72,7 +72,10 @@ ModifyPageUndoAction::ModifyPageUndoAction(
mbOldBckgrndObjsVisible = false;
}
- SetComment( SdResId(STR_UNDO_MODIFY_PAGE) );
+ if (pTheDoc && pTheDoc->GetDocumentType() == DocumentType::Draw)
+ SetComment( SdResId(STR_UNDO_MODIFY_PAGE_DRAW) );
+ else
+ SetComment( SdResId(STR_UNDO_MODIFY_PAGE) );
}
void ModifyPageUndoAction::Undo()
More information about the Libreoffice-commits
mailing list