summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-10-21 10:00:47 +0200
committerJan Holesovsky <kendy@collabora.com>2015-10-21 10:28:40 +0200
commit7d6331b9866ce05e3f98e4db4a29bb04c5bc4e97 (patch)
treed37c815d9c537da76001347084c7e84896ec102f /sfx2/source
parent928068cc9f6169f9a8fbe207f6e4d610ac9dbf46 (diff)
tdf#95095: Rename "AvoidRecentDocs" to "PickListEntry" for consistency.
It turns out that Base already has a similar property called "PickListEntry". Let's make it consistent then, and rename "AvoidRecentDocs", so that it works in all the apps the same way. So instead of setting "AvoidRecentDocs" to true, set "PickListEntry" to false. Change-Id: Idf0dd8e8892218f387944f0ad43b292c4b052be6
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/view/frmload.cxx2
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx
index 720714ecd33c..30ccb042e8db 100644
--- a/sfx2/source/view/frmload.cxx
+++ b/sfx2/source/view/frmload.cxx
@@ -529,7 +529,7 @@ void SfxFrameLoader_Impl::impl_removeLoaderArguments( ::comphelper::NamedValueCo
{
const sal_Char* pKnownViewArgs[] = {
"JumpMark",
- "AvoidRecentDocs"
+ "PickListEntry"
};
::comphelper::NamedValueCollection aViewArgs;
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index fcf57d245398..d1c872bc17b3 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -1339,8 +1339,8 @@ void SfxBaseController::ConnectSfxFrame_Impl( const ConnectSfxFrame i_eConnect )
::comphelper::NamedValueCollection aViewArgs(getCreationArguments());
// sometimes we want to avoid adding to the recent documents
- bool bAvoidRecentDocs = aViewArgs.getOrDefault("AvoidRecentDocs", false);
- m_pData->m_pViewShell->GetObjectShell()->AvoidRecentDocs(bAvoidRecentDocs);
+ bool bAllowPickListEntry = aViewArgs.getOrDefault("PickListEntry", true);
+ m_pData->m_pViewShell->GetObjectShell()->AvoidRecentDocs(!bAllowPickListEntry);
// if there's a JumpMark given, then, well, jump to it
const OUString sJumpMark = aViewArgs.getOrDefault( "JumpMark", OUString() );