Kaydet (Commit) e5da350e authored tarafından Noel Grandin's avatar Noel Grandin

loplugin: defaultparams

Change-Id: Ibff26c023655d36f0fa71ead399a6116c2988607
üst c85cda1e
......@@ -490,7 +490,7 @@ IMPL_LINK_TYPED( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasi
#ifndef DISABLE_DYNLOADING
// load basctl module
osl::Module aMod;
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"), 0);
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"));
// get symbol
basicide_handle_basic_error pSymbol = reinterpret_cast<basicide_handle_basic_error>(aMod.getFunctionSymbol("basicide_handle_basic_error"));
......@@ -588,7 +588,7 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId )
#ifndef DISABLE_DYNLOADING
// load basctl module
osl::Module aMod;
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"), 0);
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"));
// get symbol
basicide_macro_organizer pSymbol = reinterpret_cast<basicide_macro_organizer>(aMod.getFunctionSymbol("basicide_macro_organizer"));
......
......@@ -181,7 +181,7 @@ OUString GetSpecialCharsForEdit(vcl::Window* pParent, const vcl::Font& rFont)
#ifndef DISABLE_DYNLOADING
osl::Module aMod;
aMod.loadRelative(&thisModule, SVLIBRARY("cui"), 0);
aMod.loadRelative(&thisModule, SVLIBRARY("cui"));
// get symbol
OUString aSymbol( "GetSpecialCharsForEdit" );
......
......@@ -200,7 +200,7 @@ sal_uInt32 CheckPasswd_Impl
if( ( !pFile->GetFilter() || pFile->IsStorage() ) )
{
uno::Reference< embed::XStorage > xStorage = pFile->GetStorage( true );
uno::Reference< embed::XStorage > xStorage = pFile->GetStorage();
if( xStorage.is() )
{
uno::Reference< beans::XPropertySet > xStorageProps( xStorage, uno::UNO_QUERY );
......
......@@ -293,7 +293,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
if ( !pFrame || !pFrame->GetWindow().IsReallyVisible() )
continue;
if (pObjSh->PrepareClose(true))
if (pObjSh->PrepareClose())
pObjSh->SetModified( false );
else
return;
......@@ -853,7 +853,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
osl::Module aMod;
// load basctl module
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"), 0);
aMod.loadRelative(&thisModule, SVLIBRARY("basctl"));
// get symbol
basicide_choose_macro pSymbol = reinterpret_cast<basicide_choose_macro>(aMod.getFunctionSymbol("basicide_choose_macro"));
......
......@@ -272,7 +272,7 @@ ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, com::sun::star::uno::An
if ( bSetDocMacroMode )
{
// mark document: it executes an own macro, so it's in a modal mode
pDoc->SetMacroMode_Impl( true );
pDoc->SetMacroMode_Impl();
}
if ( bSetGlobalThisComponent )
......
......@@ -1227,7 +1227,7 @@ void BookmarksBox_Impl::DoAction( sal_uInt16 nAction )
RemoveEntry( nPos );
OUString aImageURL = IMAGE_URL;
aImageURL += INetURLObject( *pURL ).GetHost();
nPos = InsertEntry( aDlg->GetTitle(), SvFileInformationManager::GetImage( INetURLObject(aImageURL), false ) );
nPos = InsertEntry( aDlg->GetTitle(), SvFileInformationManager::GetImage( INetURLObject(aImageURL) ) );
SetEntryData( nPos, new OUString( *pURL ) );
SelectEntryPos( nPos );
delete pURL;
......@@ -1370,7 +1370,7 @@ void BookmarksTabPage_Impl::AddBookmarks( const OUString& rTitle, const OUString
{
OUString aImageURL = IMAGE_URL;
aImageURL += INetURLObject( rURL ).GetHost();
sal_uInt16 nPos = m_pBookmarksBox->InsertEntry( rTitle, SvFileInformationManager::GetImage( INetURLObject(aImageURL), false ) );
sal_uInt16 nPos = m_pBookmarksBox->InsertEntry( rTitle, SvFileInformationManager::GetImage( INetURLObject(aImageURL) ) );
m_pBookmarksBox->SetEntryData( nPos, new OUString( rURL ) );
}
......
......@@ -184,7 +184,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
return;
// ignore hidden documents
if ( !SfxViewFrame::GetFirst( pDocSh, true ) )
if ( !SfxViewFrame::GetFirst( pDocSh ) )
return;
OUString aTitle = pDocSh->GetTitle(SFX_TITLE_PICKLIST);
......
......@@ -299,13 +299,13 @@ throw (css::uno::RuntimeException, std::exception)
{
m_pWrkWin->MakeVisible_Impl( true );
m_pWrkWin->ShowChildren_Impl();
m_pWrkWin->ArrangeChildren_Impl( true );
m_pWrkWin->ArrangeChildren_Impl();
}
else if ( eLayoutEvent == css::frame::LayoutManagerEvents::INVISIBLE )
{
m_pWrkWin->MakeVisible_Impl( false );
m_pWrkWin->HideChildren_Impl();
m_pWrkWin->ArrangeChildren_Impl( true );
m_pWrkWin->ArrangeChildren_Impl();
}
else if ( eLayoutEvent == css::frame::LayoutManagerEvents::LOCK )
{
......
......@@ -426,7 +426,7 @@ sal_uInt32 SfxFilterMatcher::GuessFilterIgnoringContent(
sal_uInt32 SfxFilterMatcher::GuessFilter( SfxMedium& rMedium, const SfxFilter**ppFilter, SfxFilterFlags nMust, SfxFilterFlags nDont ) const
{
return GuessFilterControlDefaultUI( rMedium, ppFilter, nMust, nDont, true );
return GuessFilterControlDefaultUI( rMedium, ppFilter, nMust, nDont );
}
......
......@@ -71,7 +71,7 @@ std::vector<OUString> SfxContentHelper::GetResultSet( const OUString& rURL )
try
{
xDynResultSet = aCnt.createDynamicCursor( aProps, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS );
xDynResultSet = aCnt.createDynamicCursor( aProps );
if ( xDynResultSet.is() )
xResultSet = xDynResultSet->getStaticResultSet();
}
......@@ -143,7 +143,7 @@ std::vector< OUString > SfxContentHelper::GetHelpTreeViewContents( const OUStrin
try
{
uno::Reference< ucb::XDynamicResultSet > xDynResultSet;
xDynResultSet = aCnt.createDynamicCursor( aProps, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS );
xDynResultSet = aCnt.createDynamicCursor( aProps );
if ( xDynResultSet.is() )
xResultSet = xDynResultSet->getStaticResultSet();
}
......
......@@ -502,7 +502,7 @@ IMPL_LINK_NOARG_TYPED( SfxDispatcher, EventHdl_Impl, Idle *, void )
Update_Impl();
SfxBindings* pBindings = GetBindings();
if ( pBindings )
pBindings->StartUpdate_Impl(false);
pBindings->StartUpdate_Impl();
}
/** With this method it can be tested whether the <SfxShell> rShell is on the
......@@ -754,7 +754,7 @@ void SfxDispatcher::DoDeactivate_Impl(bool bMDI, SfxViewFrame* pNew)
SfxBindings *pBind = GetBindings();
while ( pBind )
{
pBind->HidePopupCtrls_Impl( true );
pBind->HidePopupCtrls_Impl();
pBind = pBind->GetSubBindings_Impl();
}
......
......@@ -259,7 +259,7 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, sal_uInt16 nId )
{
if ( nId == 0 )
{
rBindings.InvalidateShell( *this, false );
rBindings.InvalidateShell( *this );
}
else
{
......
......@@ -674,7 +674,7 @@ IMPL_LINK_NOARG(SfxSingleTabDialog, OKHdl_Impl)
EndDialog( RET_OK );
}
else
EndDialog( RET_CANCEL );
EndDialog();
return 0;
}
......
......@@ -181,7 +181,7 @@ OUString ConvertDateTime_Impl( const OUString& rName,
const OUString pDelim ( ", " );
OUString aStr( rWrapper.getDate( aD ) );
aStr += pDelim;
aStr += rWrapper.getTime( aT, true, false );
aStr += rWrapper.getTime( aT, true );
OUString aAuthor = comphelper::string::stripStart(rName, ' ');
if (!aAuthor.isEmpty())
{
......@@ -716,10 +716,10 @@ void SfxDocumentDescPage::Reset(const SfxItemSet *rSet)
SFX_ITEMSET_ARG( rSet, pROItem, SfxBoolItem, SID_DOC_READONLY, false );
if ( pROItem && pROItem->GetValue() )
{
m_pTitleEd->SetReadOnly( true );
m_pThemaEd->SetReadOnly( true );
m_pKeywordsEd->SetReadOnly( true );
m_pCommentEd->SetReadOnly( true );
m_pTitleEd->SetReadOnly();
m_pThemaEd->SetReadOnly();
m_pKeywordsEd->SetReadOnly();
m_pCommentEd->SetReadOnly();
}
}
......@@ -879,7 +879,7 @@ IMPL_STATIC_LINK_NOARG(SfxDocumentPage, ChangePassHdl)
OUString aDocName;
sfx2::RequestPassword(pFilter, aDocName, pMedSet);
pShell->SetModified(true);
pShell->SetModified();
}
while (false);
return 0;
......
......@@ -32,7 +32,7 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl )
{
(void)pControl; //unused
const OUString aName( m_pColBox->GetText() );
SfxStyleSheetBase* pStyle = rPool.Find( aName, rPool.GetSearchFamily(), SFXSTYLEBIT_ALL );
SfxStyleSheetBase* pStyle = rPool.Find( aName, rPool.GetSearchFamily() );
if ( pStyle )
{
if ( !pStyle->IsUserDefined() )
......
......@@ -66,11 +66,11 @@ SfxCommonPrintOptionsTabPage::SfxCommonPrintOptionsTabPage( vcl::Window* pParent
if( bOutputForPrinter )
{
m_pPrinterOutputRB->Check( true );
m_pPrinterOutputRB->Check();
}
else
{
m_pPrintFileOutputRB->Check( true );
m_pPrintFileOutputRB->Check();
m_pPDFCB->Disable();
}
......@@ -198,27 +198,27 @@ void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCu
m_pReduceTransparencyCB->Check( pCurrentOptions->IsReduceTransparency() );
if( pCurrentOptions->GetReducedTransparencyMode() == PRINTER_TRANSPARENCY_AUTO )
m_pReduceTransparencyAutoRB->Check( true );
m_pReduceTransparencyAutoRB->Check();
else
m_pReduceTransparencyNoneRB->Check( true );
m_pReduceTransparencyNoneRB->Check( );
m_pReduceGradientsCB->Check( pCurrentOptions->IsReduceGradients() );
if( pCurrentOptions->GetReducedGradientMode() == PRINTER_GRADIENT_STRIPES )
m_pReduceGradientsStripesRB->Check( true );
m_pReduceGradientsStripesRB->Check();
else
m_pReduceGradientsColorRB->Check( true );
m_pReduceGradientsColorRB->Check();
m_pReduceGradientsStepCountNF->SetValue( pCurrentOptions->GetReducedGradientStepCount() );
m_pReduceBitmapsCB->Check( pCurrentOptions->IsReduceBitmaps() );
if( pCurrentOptions->GetReducedBitmapMode() == PRINTER_BITMAP_OPTIMAL )
m_pReduceBitmapsOptimalRB->Check( true );
m_pReduceBitmapsOptimalRB->Check();
else if( pCurrentOptions->GetReducedBitmapMode() == PRINTER_BITMAP_NORMAL )
m_pReduceBitmapsNormalRB->Check( true );
m_pReduceBitmapsNormalRB->Check();
else
m_pReduceBitmapsResolutionRB->Check( true );
m_pReduceBitmapsResolutionRB->Check();
const sal_uInt16 nDPI = pCurrentOptions->GetReducedBitmapResolution();
......
......@@ -361,7 +361,7 @@ IMPL_LINK_NOARG(SfxSecurityPage_Impl, RecordChangesCBToggleHdl)
}
if (bAlreadyDone)
m_pRecordChangesCB->Check( true ); // restore original state
m_pRecordChangesCB->Check(); // restore original state
else
{
// remember required values to change protection and change recording in
......
......@@ -112,7 +112,7 @@ public:
SetAlign( pOwner->GetAlign() );
Actualize();
ShowAutoHideButton( pOwner->IsAutoHideButtonVisible() );
ShowFadeInHideButton( true );
ShowFadeInHideButton();
}
virtual ~SfxEmptySplitWin_Impl()
......@@ -211,7 +211,7 @@ SfxSplitWindow::SfxSplitWindow( vcl::Window* pParent, SfxChildAlignment eAl,
if ( bWithButtons )
{
ShowAutoHideButton( false ); // no autohide button (pin) anymore
ShowFadeOutButton( true );
ShowFadeOutButton();
}
// Set SV-Alignment
......@@ -587,7 +587,7 @@ void SfxSplitWindow::MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize,
sal_uInt16 nL, nP;
GetWindowPos( pDockWin, nL, nP );
if ( nLine > nL && GetItemCount( GetItemId( nL, 0 ) ) == 1 )
if ( nLine > nL && GetItemCount( GetItemId( nL ) ) == 1 )
{
// If the last window is removed from its line, then everything slips
// one line to the front!
......@@ -700,13 +700,13 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock,
DeactivateUpdateMode* pDeactivateUpdateMode = new DeactivateUpdateMode( *this );
if ( bNewLine || nLine == GetItemCount( 0 ) )
if ( bNewLine || nLine == GetItemCount() )
{
// An existing row should not be inserted, instead a new one
// will be created
sal_uInt16 nId = 1;
for ( sal_uInt16 n=0; n<GetItemCount(0); n++ )
for ( sal_uInt16 n=0; n<GetItemCount(); n++ )
{
if ( GetItemId(n) >= nId )
nId = GetItemId(n)+1;
......@@ -730,7 +730,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock,
// SplitWindows are once created in SFX and when inserting the first
// DockingWindows is made visible.
if ( GetItemCount( 0 ) == 1 && GetItemCount( 1 ) == 1 )
if ( GetItemCount() == 1 && GetItemCount( 1 ) == 1 )
{
// The Rearranging in WorkWindow and a Show() on the SplitWindow is
// caused by SfxDockingwindow (->SfxWorkWindow::ConfigChild_Impl)
......@@ -813,7 +813,7 @@ void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, bool bHide )
// SplitWindows are once created in SFX and is made invisible after
// removing the last DockingWindows.
if ( GetItemCount( nSet ) == 1 && GetItemCount( 0 ) == 1 )
if ( GetItemCount( nSet ) == 1 && GetItemCount() == 1 )
{
// The Rearranging in WorkWindow is caused by SfxDockingwindow
Hide();
......@@ -912,7 +912,7 @@ sal_uInt16 SfxSplitWindow::GetLineCount() const
Returns the number of rows = number of sub-itemsets in the root set.
*/
{
return GetItemCount( 0 );
return GetItemCount();
}
......@@ -950,7 +950,7 @@ sal_uInt16 SfxSplitWindow::GetWindowCount() const
Returns the total number of windows
*/
{
return GetItemCount( 0 );
return GetItemCount();
}
......@@ -967,7 +967,7 @@ IMPL_LINK_TYPED( SfxSplitWindow, TimerHdl, Timer*, pTimer, void)
if ( pTimer )
pTimer->Stop();
if ( CursorIsOverRect( false ) || !pTimer )
if ( CursorIsOverRect() || !pTimer )
{
// If the cursor is within the window, display the SplitWindow and set
// up the timer for close
......@@ -1100,7 +1100,7 @@ void SfxSplitWindow::SetPinned_Impl( bool bOn )
return;
bPinned = bOn;
if ( GetItemCount( 0 ) == 0 )
if ( GetItemCount() == 0 )
return;
if ( !bOn )
......@@ -1130,7 +1130,7 @@ void SfxSplitWindow::SetPinned_Impl( bool bOn )
{
pEmptyWin->nState &= ~1;
SetOutputSizePixel( GetFloatingWindow()->GetOutputSizePixel() );
SetFloatingMode( false );
SetFloatingMode();
if ( pEmptyWin->bFadeIn )
{
......@@ -1154,7 +1154,7 @@ void SfxSplitWindow::SetFadeIn_Impl( bool bOn )
if ( bOn == pEmptyWin->bFadeIn )
return;
if ( GetItemCount( 0 ) == 0 )
if ( GetItemCount() == 0 )
return;
pEmptyWin->bFadeIn = bOn;
......
......@@ -104,7 +104,7 @@ void SearchDialog::LoadConfig()
}
}
else
m_pWrapAroundBox->Check( true );
m_pWrapAroundBox->Check();
}
void SearchDialog::SaveConfig()
......
......@@ -147,7 +147,7 @@ IMPL_LINK( SfxStyleDialog, CancelHdl, Button *, pButton )
if ( pPage )
pPage->Reset( GetInputSetImpl() );
EndDialog( RET_CANCEL );
EndDialog();
return 0;
}
......
......@@ -992,7 +992,7 @@ namespace sfx2
break;
case MID_LOCK_TASK_PANEL:
m_rDockingWindow.SetFloatingMode( false );
m_rDockingWindow.SetFloatingMode();
break;
case MID_LAYOUT_DRAWERS:
......@@ -1212,7 +1212,7 @@ namespace sfx2
SfxResId( STR_SFX_UNDOCK ).toString()
);
pMenu->RemoveDisabledEntries( false, false );
pMenu->RemoveDisabledEntries( false );
return pMenu;
}
......
......@@ -101,7 +101,7 @@ void SfxTemplateInfoDlg::loadDocument(const OUString &rURL)
if ( xDisp.is() )
{
mpPreviewView->EnableInput( false, true );
mpPreviewView->EnableInput( false );
bool b = true;
uno::Sequence <beans::PropertyValue> aArgs( 4 );
......
......@@ -949,7 +949,7 @@ SfxStyleSheetBase *SfxCommonTemplateDialog_Impl::GetSelectedStyle() const
return NULL;
const OUString aTemplName( GetSelectedEntry() );
const SfxStyleFamilyItem* pItem = GetFamilyItem_Impl();
return pStyleSheetPool->Find( aTemplName, pItem->GetFamily(), SFXSTYLEBIT_ALL );
return pStyleSheetPool->Find( aTemplName, pItem->GetFamily() );
}
/**
......@@ -972,7 +972,7 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr)
if ( !pItem )
return;
const SfxStyleFamily eFam = pItem->GetFamily();
SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( rStr, eFam, SFXSTYLEBIT_ALL );
SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( rStr, eFam );
if( pStyle )
{
bool bReadWrite = !(pStyle->GetMask() & SFXSTYLEBIT_READONLY);
......@@ -1176,7 +1176,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
pItem = GetFamilyItem_Impl();
if((nFlags & UPDATE_FAMILY) == UPDATE_FAMILY) // Update view type list (Hierarchical, All, etc.
{
CheckItem(nActFamily, true); // check Button in Toolbox
CheckItem(nActFamily); // check Button in Toolbox
aFilterLb->SetUpdateMode(false);
aFilterLb->Clear();
//insert hierarchical at the beginning
......@@ -1303,12 +1303,12 @@ void SfxCommonTemplateDialog_Impl::SetWaterCanState(const SfxBoolItem *pItem)
if(pItem && !bWaterDisabled)
{
CheckItem(SID_STYLE_WATERCAN, pItem->GetValue());
EnableItem( SID_STYLE_WATERCAN, true );
EnableItem( SID_STYLE_WATERCAN );
}
else
{
if(!bWaterDisabled)
EnableItem(SID_STYLE_WATERCAN, true);
EnableItem(SID_STYLE_WATERCAN);
else
EnableItem(SID_STYLE_WATERCAN, false);
}
......@@ -1411,7 +1411,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl()
else if( bDocChanged )
{
// other DocShell -> all new
CheckItem( nActFamily, true );
CheckItem( nActFamily );
nActFilter = static_cast< sal_uInt16 >( LoadFactoryStyleFilter( pDocShell ) );
if ( SFXSTYLEBIT_ALL == nActFilter )
nActFilter = pDocShell->GetAutoStyleFilterIndex();
......@@ -1427,7 +1427,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl()
else
{
// other filters for automatic
CheckItem( nActFamily, true );
CheckItem( nActFamily );
const SfxStyleFamilyItem *pStyleItem = GetFamilyItem_Impl();
if ( pStyleItem && 0 == pStyleItem->GetFilterList()[ nActFilter ]->nFlags
&& nAppFilter != pItem->GetValue())
......@@ -1508,9 +1508,7 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint
const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl();
if( !pItem ) break;
const SfxStyleFamily eFam = pItem->GetFamily();
SfxStyleSheetBase *pStyle =
pStyleSheetPool->Find(
aStr, eFam, SFXSTYLEBIT_ALL );
SfxStyleSheetBase *pStyle = pStyleSheetPool->Find( aStr, eFam );
if( pStyle )
{
bool bReadWrite = !(pStyle->GetMask() & SFXSTYLEBIT_READONLY);
......@@ -1958,7 +1956,7 @@ void SfxCommonTemplateDialog_Impl::DeleteHdl(void *)
// check the style is used or not
const OUString aTemplName(pTreeBox ? pTreeBox->GetEntryText(pEntry) : aFmtLb->GetEntryText(pEntry));
SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( aTemplName, pItem->GetFamily(), SFXSTYLEBIT_ALL );
SfxStyleSheetBase* pStyle = pStyleSheetPool->Find( aTemplName, pItem->GetFamily() );
if ( pStyle->IsUsed() ) // pStyle is in use in the document?
{
......@@ -2066,7 +2064,7 @@ void SfxCommonTemplateDialog_Impl::EnableDelete()
OSL_ENSURE(pStyle, "Style not found");
if(pStyle && pStyle->IsUserDefined())
{
EnableDel(true);
EnableDel();
}
else
{
......@@ -2202,7 +2200,7 @@ PopupMenu* SfxCommonTemplateDialog_Impl::CreateContextMenu()
{
if ( bBindingUpdate )
{
pBindings->Invalidate( SID_STYLE_NEW, true, false );
pBindings->Invalidate( SID_STYLE_NEW, true );
pBindings->Update( SID_STYLE_NEW );
bBindingUpdate = false;
}
......@@ -2303,15 +2301,15 @@ void SfxTemplateDialog_Impl::ClearFamilyList()
void SfxCommonTemplateDialog_Impl::InvalidateBindings()
{
pBindings->Invalidate(SID_STYLE_NEW_BY_EXAMPLE, true, false);
pBindings->Invalidate(SID_STYLE_NEW_BY_EXAMPLE, true);
pBindings->Update( SID_STYLE_NEW_BY_EXAMPLE );
pBindings->Invalidate(SID_STYLE_UPDATE_BY_EXAMPLE, true, false);
pBindings->Invalidate(SID_STYLE_UPDATE_BY_EXAMPLE, true);
pBindings->Update( SID_STYLE_UPDATE_BY_EXAMPLE );
pBindings->Invalidate( SID_STYLE_WATERCAN, true, false);
pBindings->Invalidate( SID_STYLE_WATERCAN, true);
pBindings->Update( SID_STYLE_WATERCAN );
pBindings->Invalidate( SID_STYLE_NEW, true, false );
pBindings->Invalidate( SID_STYLE_NEW, true);
pBindings->Update( SID_STYLE_NEW );
pBindings->Invalidate( SID_STYLE_DRAGHIERARCHIE, true, false );
pBindings->Invalidate( SID_STYLE_DRAGHIERARCHIE, true);
pBindings->Update( SID_STYLE_DRAGHIERARCHIE );
}
......
......@@ -410,7 +410,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
if ( nRet == RET_OK )
{
SfxStringItem aComment( SID_DOCINFO_COMMENTS, aInfo.aComment );
pObjShell->SetModified( true );
pObjShell->SetModified();
const SfxPoolItem* aItems[2];
aItems[0] = &aComment;
aItems[1] = NULL;
......@@ -424,7 +424,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
if (pButton == m_pDeleteButton && pEntry)
{
pObjShell->GetMedium()->RemoveVersion_Impl( static_cast<SfxVersionInfo*>(pEntry->GetUserData())->aName );
pObjShell->SetModified( true );
pObjShell->SetModified();
m_pVersionBox->SetUpdateMode( false );
m_pVersionBox->Clear();
Init_Impl();
......@@ -492,7 +492,7 @@ SfxViewVersionDialog_Impl::SfxViewVersionDialog_Impl(vcl::Window *pParent, SfxVe
{
m_pOKButton->Hide();
m_pCancelButton->Hide();
m_pEdit->SetReadOnly(true);
m_pEdit->SetReadOnly();
SetText(SfxResId(STR_VIEWVERSIONCOMMENT));
m_pCloseButton->GrabFocus();
}
......
......@@ -1730,8 +1730,7 @@ SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException,
stat.Name = OUString::createFromAscii(s_stdStats[i]);
sal_Int32 val;
css::uno::Any any;
if (!::sax::Converter::convertNumber(val, text, 0,
std::numeric_limits<sal_Int32>::max()) || (val < 0)) {
if (!::sax::Converter::convertNumber(val, text, 0) || (val < 0)) {
val = 0;
SAL_WARN("sfx.doc", "Invalid number: " << text);
}
......
......@@ -531,7 +531,7 @@ void SfxMedium::CloseInStream_Impl()
if ( pImp->m_pInStream && !GetContent().is() )
{
CreateTempFile( true );
CreateTempFile();
return;
}
......@@ -1636,7 +1636,7 @@ bool SfxMedium::TransactedTransferForFS_Impl( const INetURLObject& aSource,
{
if ( pImp->pTempFile )
{
pImp->pTempFile->EnableKillingFile( true );
pImp->pTempFile->EnableKillingFile();
delete pImp->pTempFile;
pImp->pTempFile = NULL;
}
......@@ -1782,7 +1782,7 @@ void SfxMedium::Transfer_Impl()
// remove temporary file
if ( pImp->pTempFile )
{
pImp->pTempFile->EnableKillingFile( true );
pImp->pTempFile->EnableKillingFile();
delete pImp->pTempFile;
pImp->pTempFile = NULL;
}
......@@ -2773,7 +2773,7 @@ void SfxMedium::CompleteReOpen()
{
if ( pImp->pTempFile )
{
pImp->pTempFile->EnableKillingFile( true );
pImp->pTempFile->EnableKillingFile();
delete pImp->pTempFile;
}
pImp->pTempFile = pTmpFile;
......@@ -2782,7 +2782,7 @@ void SfxMedium::CompleteReOpen()
}
else if (pTmpFile)
{
pTmpFile->EnableKillingFile( true );
pTmpFile->EnableKillingFile();
delete pTmpFile;
}
......@@ -3240,7 +3240,7 @@ void SfxMedium::CreateTempFile( bool bReplace )
}
pImp->pTempFile = new ::utl::TempFile();
pImp->pTempFile->EnableKillingFile( true );
pImp->pTempFile->EnableKillingFile();
pImp->m_aName = pImp->pTempFile->GetFileName();
OUString aTmpURL = pImp->pTempFile->GetURL();
if ( pImp->m_aName.isEmpty() || aTmpURL.isEmpty() )
......@@ -3339,7 +3339,7 @@ void SfxMedium::CreateTempFileNoCopy()
delete pImp->pTempFile;
pImp->pTempFile = new ::utl::TempFile();
pImp->pTempFile->EnableKillingFile( true );
pImp->pTempFile->EnableKillingFile();
pImp->m_aName = pImp->pTempFile->GetFileName();
if ( pImp->m_aName.isEmpty() )
{
......@@ -3593,7 +3593,7 @@ OUString SfxMedium::SwitchDocumentToTempFile()
GetMedium_Impl();
LockOrigFileOnDemand( false, false );
CreateTempFile( true );
CreateTempFile();
GetMedium_Impl();
if ( pImp->xStream.is() )
......@@ -3649,7 +3649,7 @@ bool SfxMedium::SwitchDocumentToFile( const OUString& aURL )
// open the temporary file based document
GetMedium_Impl();
LockOrigFileOnDemand( false, false );
CreateTempFile( true );
CreateTempFile();
GetMedium_Impl();
if ( pImp->xStream.is() )
......
......@@ -1326,7 +1326,7 @@ OUString ModelData_Impl::GetRecommendedName( const OUString& aSuggestedName, con
if ( !aExtension.isEmpty() )
aObj.SetExtension( aExtension );
aRecommendedName = aObj.GetName( INetURLObject::DECODE_WITH_CHARSET, RTL_TEXTENCODING_UTF8 );
aRecommendedName = aObj.GetName( INetURLObject::DECODE_WITH_CHARSET );
}
}
}
......
......@@ -407,7 +407,7 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
// update the template configuration if necessary
{
WaitObject aWaitCursor( pAntiImplP->GetParent() );
aTemplates.Update( true /* be smart */ );
aTemplates.Update();
}
// fill the list boxes
const sal_uInt16 nCount = aTemplates.GetRegionCount();
......
......@@ -334,7 +334,7 @@ void SfxObjectShell::LoadStyles
DBG_ASSERT(pSourcePool, "Source-DocumentShell ohne StyleSheetPool");
SfxStyleSheetBasePool *pMyPool = GetStyleSheetPool();
DBG_ASSERT(pMyPool, "Dest-DocumentShell ohne StyleSheetPool");
pSourcePool->SetSearchMask(SFX_STYLE_FAMILY_ALL, SFXSTYLEBIT_ALL);
pSourcePool->SetSearchMask(SFX_STYLE_FAMILY_ALL);
std::unique_ptr<Styles_Impl[]> pFound(new Styles_Impl[pSourcePool->Count()]);
sal_uInt16 nFound = 0;
......@@ -480,7 +480,7 @@ void SfxObjectShell::UpdateFromTemplate_Impl( )
{
// user refuses, so don't ask again for this document
SetQueryLoadTemplate