Kaydet (Commit) f94cf3e2 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst 382eb1a2
......@@ -530,7 +530,7 @@ void SfxFrameLoader_Impl::impl_removeLoaderArguments( ::comphelper::NamedValueCo
{
const sal_Char* pKnownViewArgs[] = {
"JumpMark",
"AvoidRecentDocs"
"PickListEntry"
};
::comphelper::NamedValueCollection aViewArgs;
......
......@@ -1353,8 +1353,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() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment