Kaydet (Commit) 7d6331b9 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 928068cc
...@@ -529,7 +529,7 @@ void SfxFrameLoader_Impl::impl_removeLoaderArguments( ::comphelper::NamedValueCo ...@@ -529,7 +529,7 @@ void SfxFrameLoader_Impl::impl_removeLoaderArguments( ::comphelper::NamedValueCo
{ {
const sal_Char* pKnownViewArgs[] = { const sal_Char* pKnownViewArgs[] = {
"JumpMark", "JumpMark",
"AvoidRecentDocs" "PickListEntry"
}; };
::comphelper::NamedValueCollection aViewArgs; ::comphelper::NamedValueCollection aViewArgs;
......
...@@ -1339,8 +1339,8 @@ void SfxBaseController::ConnectSfxFrame_Impl( const ConnectSfxFrame i_eConnect ) ...@@ -1339,8 +1339,8 @@ void SfxBaseController::ConnectSfxFrame_Impl( const ConnectSfxFrame i_eConnect )
::comphelper::NamedValueCollection aViewArgs(getCreationArguments()); ::comphelper::NamedValueCollection aViewArgs(getCreationArguments());
// sometimes we want to avoid adding to the recent documents // sometimes we want to avoid adding to the recent documents
bool bAvoidRecentDocs = aViewArgs.getOrDefault("AvoidRecentDocs", false); bool bAllowPickListEntry = aViewArgs.getOrDefault("PickListEntry", true);
m_pData->m_pViewShell->GetObjectShell()->AvoidRecentDocs(bAvoidRecentDocs); m_pData->m_pViewShell->GetObjectShell()->AvoidRecentDocs(!bAllowPickListEntry);
// if there's a JumpMark given, then, well, jump to it // if there's a JumpMark given, then, well, jump to it
const OUString sJumpMark = aViewArgs.getOrDefault( "JumpMark", OUString() ); 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