diff options
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view0.cxx | 5 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 4 |
3 files changed, 5 insertions, 10 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index f0841cc194c0..5fd4deb71035 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -1508,8 +1508,7 @@ void SwView::WriteUserDataSequence ( uno::Sequence < beans::PropertyValue >& rSe pValue++;nIndex++; pValue->Name = "ViewLayoutBookMode"; - const sal_Bool bIsViewLayoutBookMode = m_pWrtShell->GetViewOptions()->IsViewLayoutBookMode(); - pValue->Value.setValue( &bIsViewLayoutBookMode, ::getBooleanCppuType() ); + pValue->Value <<= m_pWrtShell->GetViewOptions()->IsViewLayoutBookMode(); pValue++;nIndex++; pValue->Name = "ZoomFactor"; @@ -1517,8 +1516,7 @@ void SwView::WriteUserDataSequence ( uno::Sequence < beans::PropertyValue >& rSe pValue++;nIndex++; pValue->Name = "IsSelectedFrame"; - const bool bIsSelected = FRMTYPE_NONE != m_pWrtShell->GetSelFrmType(); - pValue->Value.setValue ( &bIsSelected, ::getBooleanCppuType() ); + pValue->Value <<= FRMTYPE_NONE != m_pWrtShell->GetSelFrmType(); nIndex++; assert(nIndex == NUM_VIEW_SETTINGS); diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index 45f10c6205dc..78a0b6cab55e 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -353,7 +353,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq) bool bModified = GetWrtShell().IsModified(); int eState = STATE_TOGGLE; - sal_Bool bSet = sal_False; + bool bSet = false; bool bBrowseModeChanged = false; const SfxItemSet *pArgs = rReq.GetArgs(); @@ -511,11 +511,10 @@ void SwView::ExecViewOptions(SfxRequest &rReq) pOpt->SetOnlineSpell(bSet); { - uno::Any aVal( &bSet, ::getCppuBooleanType() ); OUString aPropName(UPN_IS_SPELL_AUTO); SvtLinguConfig aCfg; - aCfg.SetProperty( aPropName, aVal ); + aCfg.SetProperty( aPropName, uno::makeAny( bSet ) ); if (xLngProp.is()) xLngProp->setIsSpellAuto( bSet ); diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 8324cf0387e6..afe8916bb716 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -307,9 +307,7 @@ bool SwView::InsertGraphicDlg( SfxRequest& rReq ) uno::Reference < XFilePickerControlAccess > xCtrlAcc(xFP, UNO_QUERY); if(nHtmlMode & HTMLMODE_ON) { - bool bTrue = true; - Any aVal(&bTrue, ::getBooleanCppuType()); - xCtrlAcc->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, aVal); + xCtrlAcc->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, makeAny(true)); xCtrlAcc->enableControl( ExtendedFilePickerElementIds::CHECKBOX_LINK, sal_False); } |