[Libreoffice-commits] core.git: basctl/source basic/qa basic/source cui/source dbaccess/source editeng/source filter/source idl/inc idl/source include/sfx2 include/svtools include/svx include/tools oox/source reportdesign/source sc/qa scripting/source sc/source sd/qa sd/source sfx2/source sot/qa sot/source starmath/qa starmath/source svl/source svtools/source svx/source sw/inc sw/qa sw/source tools/source unotools/source vcl/quartz vcl/source vcl/unx vcl/win writerperfect/source
Noel Grandin
noel.grandin at collabora.co.uk
Thu Feb 2 08:03:51 UTC 2017
basctl/source/basicide/baside2.cxx | 34 +-
basctl/source/basicide/baside2b.cxx | 12
basctl/source/basicide/macrodlg.cxx | 2
basic/qa/cppunit/basic_coverage.cxx | 2
basic/qa/cppunit/basictest.cxx | 2
basic/qa/cppunit/test_vba.cxx | 4
basic/source/basmgr/basmgr.cxx | 34 +-
basic/source/classes/eventatt.cxx | 8
basic/source/classes/image.cxx | 8
basic/source/classes/sb.cxx | 12
basic/source/classes/sbunoobj.cxx | 20 -
basic/source/classes/sbxmod.cxx | 24 -
basic/source/runtime/methods.cxx | 2
basic/source/runtime/methods1.cxx | 2
basic/source/runtime/runtime.cxx | 66 ++--
basic/source/sbx/sbxarray.cxx | 22 -
basic/source/sbx/sbxexec.cxx | 34 +-
basic/source/sbx/sbxobj.cxx | 2
basic/source/sbx/sbxvar.cxx | 16 -
cui/source/dialogs/linkdlg.cxx | 8
dbaccess/source/ui/browser/brwctrlr.cxx | 4
dbaccess/source/ui/browser/dbexchange.cxx | 2
dbaccess/source/ui/browser/sbagrid.cxx | 12
dbaccess/source/ui/control/TableGrantCtrl.cxx | 2
dbaccess/source/ui/misc/TableCopyHelper.cxx | 4
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 4
dbaccess/source/ui/tabledesign/TEditControl.cxx | 6
dbaccess/source/ui/tabledesign/TableUndo.cxx | 2
editeng/source/misc/svxacorr.cxx | 28 -
filter/source/msfilter/msdffimp.cxx | 18 -
filter/source/msfilter/svdfppt.cxx | 22 -
filter/source/msfilter/svxmsbas2.cxx | 4
idl/inc/basobj.hxx | 2
idl/source/objects/object.cxx | 6
idl/source/objects/slot.cxx | 12
idl/source/objects/types.cxx | 2
idl/source/prj/parser.cxx | 8
include/sfx2/lnkbase.hxx | 2
include/svtools/editbrowsebox.hxx | 4
include/svx/gridctrl.hxx | 2
include/tools/ref.hxx | 15
oox/source/ole/olehelper.cxx | 4
reportdesign/source/filter/xml/xmlfilter.cxx | 2
reportdesign/source/ui/dlg/GroupsSorting.cxx | 2
sc/qa/unit/bugfix-test.cxx | 8
sc/qa/unit/copy_paste_test.cxx | 2
sc/qa/unit/filters-test.cxx | 18 -
sc/qa/unit/functions_test.cxx | 2
sc/qa/unit/helper/qahelper.cxx | 8
sc/qa/unit/opencl-test.cxx | 12
sc/qa/unit/range.cxx | 4
sc/qa/unit/rangelst_test.cxx | 2
sc/qa/unit/subsequent_export-test.cxx | 212 +++++++-------
sc/qa/unit/subsequent_filters-test.cxx | 168 +++++------
sc/qa/unit/ucalc.cxx | 2
sc/source/core/data/document.cxx | 2
sc/source/core/data/global.cxx | 2
sc/source/core/data/tabprotection.cxx | 8
sc/source/core/tool/charthelper.cxx | 2
sc/source/core/tool/chartlis.cxx | 6
sc/source/core/tool/chartpos.cxx | 2
sc/source/filter/excel/excel.cxx | 8
sc/source/filter/excel/excimp8.cxx | 6
sc/source/filter/excel/excrecds.cxx | 2
sc/source/filter/excel/expop2.cxx | 8
sc/source/filter/excel/xepivot.cxx | 2
sc/source/filter/excel/xiescher.cxx | 4
sc/source/filter/excel/xipivot.cxx | 2
sc/source/filter/excel/xlroot.cxx | 2
sc/source/filter/ftools/ftools.cxx | 10
sc/source/filter/xcl97/XclExpChangeTrack.cxx | 8
sc/source/filter/xcl97/XclImpChangeTrack.cxx | 4
sc/source/filter/xcl97/xcl97esc.cxx | 4
sc/source/filter/xcl97/xcl97rec.cxx | 4
sc/source/filter/xml/xmlexprt.cxx | 2
sc/source/ui/app/drwtrans.cxx | 6
sc/source/ui/app/transobj.cxx | 10
sc/source/ui/docshell/docsh3.cxx | 2
sc/source/ui/docshell/docsh4.cxx | 2
sc/source/ui/docshell/externalrefmgr.cxx | 6
sc/source/ui/docshell/pntlock.cxx | 2
sc/source/ui/docshell/tablink.cxx | 6
sc/source/ui/miscdlgs/instbdlg.cxx | 2
sc/source/ui/miscdlgs/linkarea.cxx | 4
sc/source/ui/unoobj/cellsuno.cxx | 10
sc/source/ui/unoobj/chartuno.cxx | 6
sc/source/ui/unoobj/exceldetect.cxx | 2
sc/source/ui/view/drawvie4.cxx | 6
sc/source/ui/view/spelldialog.cxx | 2
sc/source/ui/view/viewfun3.cxx | 4
sc/source/ui/view/viewfun4.cxx | 4
sc/source/ui/view/viewfun5.cxx | 4
scripting/source/basprov/basscript.cxx | 6
sd/qa/unit/misc-tests.cxx | 2
sd/qa/unit/sdmodeltestbase.hxx | 6
sd/source/core/drawdoc3.cxx | 18 -
sd/source/filter/eppt/eppt.cxx | 8
sd/source/filter/ppt/pptin.cxx | 2
sd/source/filter/ppt/propread.cxx | 2
sd/source/filter/sdpptwrp.cxx | 2
sd/source/ui/app/sdmod.cxx | 2
sd/source/ui/app/sdxfer.cxx | 14
sd/source/ui/dlg/morphdlg.cxx | 4
sd/source/ui/dlg/sdtreelb.cxx | 4
sd/source/ui/dlg/vectdlg.cxx | 4
sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 2
sd/source/ui/view/sdview2.cxx | 2
sd/source/ui/view/sdview3.cxx | 6
sfx2/source/appl/appcfg.cxx | 4
sfx2/source/appl/fileobj.cxx | 36 +-
sfx2/source/appl/linkmgr2.cxx | 12
sfx2/source/appl/lnkbase2.cxx | 26 -
sfx2/source/bastyp/progress.cxx | 12
sfx2/source/doc/docfile.cxx | 2
sfx2/source/doc/objmisc.cxx | 2
sfx2/source/doc/oleprops.cxx | 4
sfx2/source/doc/printhelper.cxx | 12
sfx2/source/doc/sfxbasemodel.cxx | 96 +++---
sfx2/source/view/frame.cxx | 2
sfx2/source/view/frmload.cxx | 2
sfx2/source/view/viewfrm.cxx | 28 -
sot/qa/cppunit/test_sot.cxx | 6
sot/source/sdstor/storage.cxx | 2
sot/source/sdstor/ucbstorage.cxx | 60 +--
starmath/qa/cppunit/test_cursor.cxx | 2
starmath/qa/cppunit/test_node.cxx | 2
starmath/qa/cppunit/test_nodetotextvisitors.cxx | 2
starmath/qa/cppunit/test_parse.cxx | 2
starmath/qa/cppunit/test_starmath.cxx | 2
starmath/qa/extras/mmlexport-test.cxx | 2
starmath/qa/extras/mmlimport-test.cxx | 2
starmath/source/eqnolefilehdr.cxx | 2
starmath/source/mathtype.cxx | 8
svl/source/items/lckbitem.cxx | 2
svtools/source/brwbox/editbrowsebox.cxx | 4
svtools/source/brwbox/editbrowsebox2.cxx | 2
svx/source/dialog/charmap.cxx | 6
svx/source/fmcomp/fmgridcl.cxx | 14
svx/source/fmcomp/fmgridif.cxx | 4
svx/source/fmcomp/gridcell.cxx | 2
svx/source/fmcomp/gridctrl.cxx | 30 -
svx/source/form/fmscriptingenv.cxx | 2
svx/source/form/fmundo.cxx | 2
svx/source/gallery2/galmisc.cxx | 8
svx/source/gallery2/galtheme.cxx | 22 -
sw/inc/ndgrf.hxx | 6
sw/inc/section.hxx | 4
sw/qa/core/filters-test.cxx | 4
sw/qa/core/uwriter.cxx | 2
sw/source/core/crsr/bookmrk.cxx | 4
sw/source/core/doc/DocumentLinksAdministrationManager.cxx | 2
sw/source/core/doc/swserv.cxx | 2
sw/source/core/docnode/section.cxx | 18 -
sw/source/core/docnode/swbaslnk.cxx | 2
sw/source/core/edit/edglss.cxx | 2
sw/source/core/fields/ddefld.cxx | 2
sw/source/core/graphic/ndgrf.cxx | 22 -
sw/source/core/inc/bookmrk.hxx | 2
sw/source/core/swg/SwXMLTextBlocks.cxx | 2
sw/source/core/table/swtable.cxx | 4
sw/source/core/unocore/unocrsrhelper.cxx | 2
sw/source/core/unocore/unoobj.cxx | 2
sw/source/filter/basflt/iodetect.cxx | 2
sw/source/filter/basflt/shellio.cxx | 2
sw/source/filter/ww8/wrtw8esh.cxx | 2
sw/source/filter/ww8/wrtww8.cxx | 2
sw/source/filter/ww8/wrtww8gr.cxx | 10
sw/source/filter/ww8/ww8glsy.cxx | 2
sw/source/filter/ww8/ww8par.cxx | 12
sw/source/filter/ww8/ww8par4.cxx | 2
sw/source/filter/ww8/ww8par5.cxx | 2
sw/source/filter/xml/xmlfmte.cxx | 2
sw/source/uibase/app/docsh.cxx | 2
sw/source/uibase/dbui/dbmgr.cxx | 2
sw/source/uibase/dochdl/swdtflvr.cxx | 28 -
sw/source/uibase/uiview/view2.cxx | 4
sw/source/uibase/uno/unoatxt.cxx | 10
tools/source/stream/stream.cxx | 12
unotools/source/streaming/streamhelper.cxx | 10
unotools/source/ucbhelper/ucbstreamhelper.cxx | 10
vcl/quartz/salgdi.cxx | 10
vcl/source/outdev/font.cxx | 2
vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 4
vcl/win/gdi/salfont.cxx | 15
writerperfect/source/common/WPXSvInputStream.cxx | 6
185 files changed, 914 insertions(+), 920 deletions(-)
New commits:
commit 4978328534c0f759eea7d0c196046f1d53b06925
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Wed Jan 25 12:03:58 2017 +0200
convert method names in tools::SvRef to be more like our other..
reference classes, uno::Reference and rtl::Reference.
Specifically rename Is()->is() and Clear()->clear().
Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae
Reviewed-on: https://gerrit.libreoffice.org/33576
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index aa6b7b0..7a5b1a5 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -200,7 +200,7 @@ SbModuleRef const & ModulWindow::XModule()
// for m_xModule it may not yet be available, here we keep trying to access
// the module until such time as it exists
- if ( !m_xModule.Is() )
+ if ( !m_xModule.is() )
{
BasicManager* pBasMgr = GetDocument().getBasicManager();
if ( pBasMgr )
@@ -258,7 +258,7 @@ void ModulWindow::Resize()
void ModulWindow::CheckCompileBasic()
{
- if ( XModule().Is() )
+ if ( XModule().is() )
{
// never compile while running!
bool const bRunning = StarBASIC::IsRunning();
@@ -311,14 +311,14 @@ void ModulWindow::BasicExecute()
CheckCompileBasic();
- if ( XModule().Is() && m_xModule->IsCompiled() && !m_aStatus.bError )
+ if ( XModule().is() && m_xModule->IsCompiled() && !m_aStatus.bError )
{
if ( GetBreakPoints().size() )
m_aStatus.nBasicFlags = m_aStatus.nBasicFlags | BasicDebugFlags::Break;
if ( !m_aStatus.bIsRunning )
{
- DBG_ASSERT( m_xModule.Is(), "Kein Modul!" );
+ DBG_ASSERT( m_xModule.is(), "Kein Modul!" );
AddStatus( BASWIN_RUNNINGBASIC );
sal_uInt16 nStart, nEnd;
TextSelection aSel = GetEditView()->GetSelection();
@@ -364,7 +364,7 @@ void ModulWindow::CompileBasic()
{
CheckCompileBasic();
- XModule().Is() && m_xModule->IsCompiled();
+ XModule().is() && m_xModule->IsCompiled();
}
void ModulWindow::BasicRun()
@@ -488,9 +488,9 @@ void ModulWindow::ImportDialog()
void ModulWindow::ToggleBreakPoint( sal_uLong nLine )
{
- DBG_ASSERT( XModule().Is(), "Kein Modul!" );
+ DBG_ASSERT( XModule().is(), "Kein Modul!" );
- if ( XModule().Is() )
+ if ( XModule().is() )
{
CheckCompileBasic();
if ( m_aStatus.bError )
@@ -525,9 +525,9 @@ void ModulWindow::ToggleBreakPoint( sal_uLong nLine )
void ModulWindow::UpdateBreakPoint( const BreakPoint& rBrk )
{
- DBG_ASSERT( XModule().Is(), "Kein Modul!" );
+ DBG_ASSERT( XModule().is(), "Kein Modul!" );
- if ( XModule().Is() )
+ if ( XModule().is() )
{
CheckCompileBasic();
@@ -696,9 +696,9 @@ void ModulWindow::BasicAddWatch()
void ModulWindow::EditMacro( const OUString& rMacroName )
{
- DBG_ASSERT( XModule().Is(), "Kein Modul!" );
+ DBG_ASSERT( XModule().is(), "Kein Modul!" );
- if ( XModule().Is() )
+ if ( XModule().is() )
{
CheckCompileBasic();
@@ -757,11 +757,11 @@ bool ModulWindow::AllowUndo()
void ModulWindow::UpdateData()
{
- DBG_ASSERT( XModule().Is(), "Kein Modul!" );
+ DBG_ASSERT( XModule().is(), "Kein Modul!" );
// UpdateData is called when the source has changed from outside
// => interrupts undesired!
- if ( XModule().Is() )
+ if ( XModule().is() )
{
SetModule( m_xModule->GetSource32() );
@@ -1155,7 +1155,7 @@ bool ModulWindow::IsModified()
OUString ModulWindow::GetSbModuleName()
{
OUString aModuleName;
- if ( XModule().Is() )
+ if ( XModule().is() )
aModuleName = m_xModule->GetName();
return aModuleName;
}
@@ -1268,7 +1268,7 @@ SearchOptionFlags ModulWindow::GetSearchOptions()
void ModulWindow::BasicStarted()
{
- if ( XModule().Is() )
+ if ( XModule().is() )
{
m_aStatus.bIsRunning = true;
BreakPointList& rList = GetBreakPoints();
@@ -1299,7 +1299,7 @@ EntryDescriptor ModulWindow::CreateEntryDescriptor()
LibraryLocation eLocation = aDocument.getLibraryLocation( aLibName );
OUString aModName( GetName() );
OUString aLibSubName;
- if( m_xBasic.Is() && aDocument.isInVBAMode() && XModule().Is() )
+ if( m_xBasic.is() && aDocument.isInVBAMode() && XModule().is() )
{
switch( m_xModule->GetModuleType() )
{
@@ -1395,7 +1395,7 @@ void ModulWindow::UpdateModule ()
OUString const aModule = getTextEngineText(*GetEditEngine());
// update module in basic
- assert(m_xModule.Is());
+ assert(m_xModule.is());
// update module in module window
SetModule(aModule);
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 72d656f..d2d96b8 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1701,7 +1701,7 @@ WatchItem* WatchItem::GetRootItem()
WatchItem* pItem = mpArrayParentItem;
while( pItem )
{
- if( pItem->mpArray.Is() )
+ if( pItem->mpArray.is() )
break;
pItem = pItem->mpArrayParentItem;
}
@@ -2261,7 +2261,7 @@ bool WatchTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
if (IsSbxVariable(pSbx) || bArrayElement)
{
// Accept no objects and only end nodes of arrays for editing
- if( !pItem->mpObject.Is() && ( !pItem->mpArray.Is() || pItem->nDimLevel == pItem->nDimCount ) )
+ if( !pItem->mpObject.is() && ( !pItem->mpArray.is() || pItem->nDimLevel == pItem->nDimCount ) )
{
aEditingRes = SvHeaderTabListBox::GetEntryText( pEntry, ITEM_ID_VALUE-1 );
aEditingRes = comphelper::string::strip(aEditingRes, ' ');
@@ -2483,7 +2483,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
{
if (SbxObject* pObj = dynamic_cast<SbxObject*>(pVar->GetObject()))
{
- if ( pItem->mpObject.Is() && !pItem->maMemberList.empty() )
+ if ( pItem->mpObject.is() && !pItem->maMemberList.empty() )
{
bool bObjChanged = false; // Check if member list has changed
SbxArray* pProps = pObj->GetProperties();
@@ -2511,7 +2511,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
else
{
aWatchStr = "Null";
- if( pItem->mpObject.Is() )
+ if( pItem->mpObject.is() )
{
bCollapse = true;
pItem->clearWatchItem();
@@ -2522,7 +2522,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
}
else
{
- if( pItem->mpObject.Is() )
+ if( pItem->mpObject.is() )
{
bCollapse = true;
pItem->clearWatchItem();
@@ -2564,7 +2564,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
}
else if( bBasicStopped )
{
- if( pItem->mpObject.Is() || pItem->mpArray.Is() )
+ if( pItem->mpObject.is() || pItem->mpArray.is() )
{
implCollapseModifiedObjectEntry( pEntry, this );
pItem->mpObject = nullptr;
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index 2f417b1..ff3e49c 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -845,7 +845,7 @@ OUString MacroChooser::GetInfo( SbxVariable* pVar )
{
OUString aComment;
SbxInfoRef xInfo = pVar->GetInfo();
- if ( xInfo.Is() )
+ if ( xInfo.is() )
aComment = xInfo->GetComment();
return aComment;
}
diff --git a/basic/qa/cppunit/basic_coverage.cxx b/basic/qa/cppunit/basic_coverage.cxx
index 17612c4..1f336b4 100644
--- a/basic/qa/cppunit/basic_coverage.cxx
+++ b/basic/qa/cppunit/basic_coverage.cxx
@@ -77,7 +77,7 @@ void Coverage::run_test(const OUString& sFileURL)
if( !testMacro.HasError() )
{
SbxVariableRef pResult = testMacro.Run();
- if( pResult.Is() && pResult->GetInteger() == 1 )
+ if( pResult.is() && pResult->GetInteger() == 1 )
{
bResult = true;
}
diff --git a/basic/qa/cppunit/basictest.cxx b/basic/qa/cppunit/basictest.cxx
index 2c4e86f..ebd97d8 100644
--- a/basic/qa/cppunit/basictest.cxx
+++ b/basic/qa/cppunit/basictest.cxx
@@ -78,7 +78,7 @@ SbxVariableRef MacroSnippet::Run( const css::uno::Sequence< css::uno::Any >& rAr
SbxVariableRef pReturn = nullptr;
if ( !Compile() )
return pReturn;
- SbMethod* pMeth = mpMod.Is() ? static_cast<SbMethod*>(mpMod->Find( "doUnitTest", SbxClassType::Method )) : nullptr;
+ SbMethod* pMeth = mpMod.is() ? static_cast<SbMethod*>(mpMod->Find( "doUnitTest", SbxClassType::Method )) : nullptr;
if ( pMeth )
{
if ( rArgs.getLength() )
diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx
index 91b26d8..a0f3f32 100644
--- a/basic/qa/cppunit/test_vba.cxx
+++ b/basic/qa/cppunit/test_vba.cxx
@@ -74,7 +74,7 @@ void VBATest::testMiscVBAFunctions()
MacroSnippet myMacro;
myMacro.LoadSourceFromFile( sMacroURL );
SbxVariableRef pReturn = myMacro.Run();
- if ( pReturn.Is() )
+ if ( pReturn.is() )
{
fprintf(stderr, "macro result for %s\n", macroSource[ i ] );
fprintf(stderr, "macro returned:\n%s\n", OUStringToOString( pReturn->GetOUString(), RTL_TEXTENCODING_UTF8 ).getStr() );
@@ -152,7 +152,7 @@ void VBATest::testMiscOLEStuff()
MacroSnippet myMacro;
myMacro.LoadSourceFromFile( sMacroURL );
SbxVariableRef pReturn = myMacro.Run( aArgs );
- if ( pReturn.Is() )
+ if ( pReturn.is() )
{
fprintf(stderr, "macro result for %s\n", macroSource[ i ] );
fprintf(stderr, "macro returned:\n%s\n", OUStringToOString( pReturn->GetOUString(), RTL_TEXTENCODING_UTF8 ).getStr() );
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 56cf96a..de63810 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -667,7 +667,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase
OUString aStorName( rStorage.GetName() );
// #i13114 removed, DBG_ASSERT( aStorName.Len(), "No Storage Name!" );
- if ( !xManagerStream.Is() || xManagerStream->GetError() || ( xManagerStream->Seek( STREAM_SEEK_TO_END ) == 0 ) )
+ if ( !xManagerStream.is() || xManagerStream->GetError() || ( xManagerStream->Seek( STREAM_SEEK_TO_END ) == 0 ) )
{
ImpMgrNotLoaded( aStorName );
return;
@@ -749,7 +749,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase
xManagerStream->Seek( nEndPos );
xManagerStream->SetBufferSize( 0 );
- xManagerStream.Clear();
+ xManagerStream.clear();
}
void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
@@ -759,7 +759,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
OUString aStorName( rStorage.GetName() );
DBG_ASSERT( aStorName.getLength(), "No Storage Name!" );
- if ( !xManagerStream.Is() || xManagerStream->GetError() || ( xManagerStream->Seek( STREAM_SEEK_TO_END ) == 0 ) )
+ if ( !xManagerStream.is() || xManagerStream->GetError() || ( xManagerStream->Seek( STREAM_SEEK_TO_END ) == 0 ) )
{
ImpMgrNotLoaded( aStorName );
return;
@@ -783,7 +783,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
xManagerStream->Seek( nBasicEndOff+1 ); // +1: 0x00 as separator
OUString aLibs = xManagerStream->ReadUniOrByteString(xManagerStream->GetStreamCharSet());
xManagerStream->SetBufferSize( 0 );
- xManagerStream.Clear(); // Close stream
+ xManagerStream.clear(); // Close stream
if ( !aLibs.isEmpty() )
{
@@ -818,7 +818,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
xStorageRef = new SotStorage( false, aLibRelStorage.
GetMainURL( INetURLObject::DecodeMechanism::NONE ), eStorageReadMode );
}
- if ( xStorageRef.Is() )
+ if ( xStorageRef.is() )
{
AddLib( *xStorageRef, aLibName, false );
}
@@ -899,13 +899,13 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora
}
}
- if ( !xStorage.Is() )
+ if ( !xStorage.is() )
{
xStorage = new SotStorage( false, aStorageName, eStorageReadMode );
}
tools::SvRef<SotStorage> xBasicStorage = xStorage->OpenSotStorage( szBasicStorage, eStorageReadMode, false );
- if ( !xBasicStorage.Is() || xBasicStorage->GetError() )
+ if ( !xBasicStorage.is() || xBasicStorage->GetError() )
{
StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_MGROPEN, xStorage->GetName(), ERRCODE_BUTTON_OK );
aErrors.push_back(BasicError(*pErrInf, BasicErrorReason::OPENLIBSTORAGE));
@@ -914,7 +914,7 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora
{
// In the Basic-Storage every lib is in a Stream...
tools::SvRef<SotStorageStream> xBasicStream = xBasicStorage->OpenSotStream( pLibInfo->GetLibName(), eStreamReadMode );
- if ( !xBasicStream.Is() || xBasicStream->GetError() )
+ if ( !xBasicStream.is() || xBasicStream->GetError() )
{
StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_LIBLOAD , pLibInfo->GetLibName(), ERRCODE_BUTTON_OK );
aErrors.push_back(BasicError(*pErrInf, BasicErrorReason::OPENLIBSTREAM));
@@ -924,7 +924,7 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora
bool bLoaded = false;
if ( xBasicStream->Seek( STREAM_SEEK_TO_END ) != 0 )
{
- if ( !pLibInfo->GetLib().Is() )
+ if ( !pLibInfo->GetLib().is() )
{
pLibInfo->SetLib( new StarBASIC( GetStdLib(), mbDocMgr ) );
}
@@ -992,12 +992,12 @@ bool BasicManager::ImplLoadBasic( SvStream& rStrm, StarBASICRef& rOldBasic ) con
bool bProtected = ImplEncryptStream( rStrm );
SbxBaseRef xNew = SbxBase::Load( rStrm );
bool bLoaded = false;
- if( xNew.Is() )
+ if( xNew.is() )
{
if( auto pNew = dynamic_cast<StarBASIC*>( xNew.get() ) )
{
// Use the Parent of the old BASICs
- if( rOldBasic.Is() )
+ if( rOldBasic.is() )
{
pNew->SetParent( rOldBasic->GetParent() );
if( pNew->GetParent() )
@@ -1152,12 +1152,12 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage )
SAL_WARN("basic", "BasicManager::RemoveLib: Caught exception: " << e.Message);
}
- if (xStorage.Is() && xStorage->IsStorage(szBasicStorage))
+ if (xStorage.is() && xStorage->IsStorage(szBasicStorage))
{
tools::SvRef<SotStorage> xBasicStorage = xStorage->OpenSotStorage
( szBasicStorage, StreamMode::STD_READWRITE, false );
- if ( !xBasicStorage.Is() || xBasicStorage->GetError() )
+ if ( !xBasicStorage.is() || xBasicStorage->GetError() )
{
StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_REMOVELIB, OUString(), ERRCODE_BUTTON_OK );
aErrors.push_back(BasicError(*pErrInf, BasicErrorReason::OPENLIBSTORAGE));
@@ -1173,7 +1173,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage )
xBasicStorage->FillInfoList( &aInfoList );
if ( aInfoList.empty() )
{
- xBasicStorage.Clear();
+ xBasicStorage.clear();
xStorage->Remove( szBasicStorage );
xStorage->Commit();
// If no further Streams or SubStorages available,
@@ -1183,7 +1183,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage )
if ( aInfoList.empty() )
{
//OUString aName_( xStorage->GetName() );
- xStorage.Clear();
+ xStorage.clear();
//*** TODO: Replace if still necessary
//SfxContentHelper::Kill( aName );
//*** TODO-End
@@ -1192,7 +1192,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage )
}
}
}
- if ((*itLibInfo)->GetLib().Is())
+ if ((*itLibInfo)->GetLib().is())
{
GetStdLib()->Remove( (*itLibInfo)->GetLib().get() );
}
@@ -1390,7 +1390,7 @@ bool BasicManager::IsBasicModified() const
{
for (auto const& rpLib : mpImpl->aLibs)
{
- if (rpLib->GetLib().Is() && rpLib->GetLib()->IsModified())
+ if (rpLib->GetLib().is() && rpLib->GetLib()->IsModified())
{
return true;
}
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index e900fa9..49a0163 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -247,7 +247,7 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any
}
SbxVariable* pMethVar = nullptr;
// Be still tolerant and make default search if no search basic exists
- if( bSearchLib && xLibSearchBasic.Is() )
+ if( bSearchLib && xLibSearchBasic.is() )
{
sal_Int16 nCount = xLibSearchBasic->GetObjects()->Count();
for( sal_Int16 nObj = -1; nObj < nCount ; nObj++ )
@@ -279,7 +279,7 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any
}
// Default: Be tolerant and search everywhere
- if( (!pMethVar || nullptr == dynamic_cast<const SbMethod*>( pMethVar)) && maBasicRef.Is() )
+ if( (!pMethVar || nullptr == dynamic_cast<const SbMethod*>( pMethVar)) && maBasicRef.is() )
{
pMethVar = maBasicRef->FindQualified( aMacro, SbxClassType::DontCare );
}
@@ -305,7 +305,7 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any
// Call method
SbxVariableRef xValue = pRet ? new SbxVariable : nullptr;
- if( xArray.Is() )
+ if( xArray.is() )
{
pMeth->SetParameters( xArray.get() );
}
@@ -427,7 +427,7 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, bool bWrite )
// Get dialog
SbxBaseRef pObj = rPar.Get( 1 )->GetObject();
- if( !(pObj.Is() && nullptr != dynamic_cast<const SbUnoObject*>( pObj.get() )) )
+ if( !(pObj.is() && nullptr != dynamic_cast<const SbUnoObject*>( pObj.get() )) )
{
StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT );
return;
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index 7c079a8..9e9e4c6 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -462,7 +462,7 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
SbiCloseRecord( r, nPos );
}
// User defined types
- if ( rTypes.Is() )
+ if ( rTypes.is() )
{
sal_uInt16 nTypes = rTypes->Count();
if (nTypes > 0 )
@@ -620,7 +620,7 @@ void SbiImage::AddCode( char* p, sal_uInt32 s )
// Add user type
void SbiImage::AddType(SbxObject* pObject)
{
- if( !rTypes.Is() )
+ if( !rTypes.is() )
{
rTypes = new SbxArray;
}
@@ -630,7 +630,7 @@ void SbiImage::AddType(SbxObject* pObject)
void SbiImage::AddEnum(SbxObject* pObject) // Register enum type
{
- if( !rEnums.Is() )
+ if( !rEnums.is() )
{
rEnums = new SbxArray;
}
@@ -674,7 +674,7 @@ OUString SbiImage::GetString( short nId ) const
const SbxObject* SbiImage::FindType (const OUString& aTypeName) const
{
- return rTypes.Is() ? static_cast<SbxObject*>(rTypes->Find(aTypeName,SbxClassType::Object)) : nullptr;
+ return rTypes.is() ? static_cast<SbxObject*>(rTypes->Find(aTypeName,SbxClassType::Object)) : nullptr;
}
sal_uInt16 SbiImage::CalcLegacyOffset( sal_Int32 nOffset )
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 168842b..fa5019e 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -114,7 +114,7 @@ DocBasicItem::~DocBasicItem()
try
{
stopListening();
- mxClassModules.Clear(); // release with SolarMutex locked
+ mxClassModules.clear(); // release with SolarMutex locked
}
catch (...)
{
@@ -232,7 +232,7 @@ StarBASIC* lclGetDocBasicForModule( SbModule* pModule )
SbxObject* StarBASIC::getVBAGlobals( )
{
- if ( !pVBAGlobals.Is() )
+ if ( !pVBAGlobals.is() )
{
Any aThisDoc;
if ( GetUNOConstant("ThisComponent", aThisDoc) )
@@ -996,7 +996,7 @@ StarBASIC::~StarBASIC()
}
// #100326 Set Parent NULL in registered listeners
- if( xUnoListeners.Is() )
+ if( xUnoListeners.is() )
{
sal_uInt16 uCount = xUnoListeners->Count();
for( sal_uInt16 i = 0 ; i < uCount ; i++ )
@@ -1809,7 +1809,7 @@ void StarBASIC::SetGlobalBreakHdl( const Link<StarBASIC*,BasicDebugFlags>& rLink
SbxArrayRef const & StarBASIC::getUnoListeners()
{
- if( !xUnoListeners.Is() )
+ if( !xUnoListeners.is() )
{
xUnoListeners = new SbxArray();
}
@@ -2036,7 +2036,7 @@ void BasicCollection::Initialize()
p->SetFlag( SbxFlagBits::DontStore );
p = Make( pRemoveStr, SbxClassType::Method, SbxEMPTY );
p->SetFlag( SbxFlagBits::DontStore );
- if ( !xAddInfo.Is() )
+ if ( !xAddInfo.is() )
{
xAddInfo = new SbxInfo;
xAddInfo->AddParam( "Item", SbxVARIANT );
@@ -2044,7 +2044,7 @@ void BasicCollection::Initialize()
xAddInfo->AddParam( "Before", SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional );
xAddInfo->AddParam( "After", SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional );
}
- if ( !xItemInfo.Is() )
+ if ( !xItemInfo.is() )
{
xItemInfo = new SbxInfo;
xItemInfo->AddParam( "Index", SbxVARIANT, SbxFlagBits::Read | SbxFlagBits::Optional);
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index dd3ea51..028bc74 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -860,7 +860,7 @@ Type getUnoTypeForSbxValue( const SbxValue* pVal )
if( eBaseType == SbxOBJECT )
{
SbxBaseRef xObj = pVal->GetObject();
- if( !xObj.Is() )
+ if( !xObj.is() )
{
aRetType = cppu::UnoType<XInterface>::get();
return aRetType;
@@ -983,7 +983,7 @@ Any sbxToUnoValueImpl( const SbxValue* pVar, bool bBlockConversionToSmallestType
if( eBaseType == SbxOBJECT )
{
SbxBaseRef xObj = pVar->GetObject();
- if( xObj.Is() )
+ if( xObj.is() )
{
if( auto obj = dynamic_cast<SbUnoAnyObject*>( xObj.get() ) )
return obj->getValue();
@@ -2522,7 +2522,7 @@ SbUnoMethod::~SbUnoMethod()
SbxInfo* SbUnoMethod::GetInfo()
{
- if( !pInfo.Is() && m_xUnoMethod.is() )
+ if( !pInfo.is() && m_xUnoMethod.is() )
{
SbiInstance* pInst = GetSbData()->pInst;
if( pInst && pInst->IsCompatibility() )
@@ -2931,7 +2931,7 @@ void RTL_Impl_CreateUnoStruct( StarBASIC* pBasic, SbxArray& rPar, bool bWrite )
// try to create Struct with the same name
SbUnoObjectRef xUnoObj = Impl_CreateUnoStruct( aClassName );
- if( !xUnoObj.Is() )
+ if( !xUnoObj.is() )
{
return;
}
@@ -3843,7 +3843,7 @@ void BasicAllListener_Impl::firing_impl( const AllEventObject& Event, Any* pRet
{
SolarMutexGuard guard;
- if( xSbxObj.Is() )
+ if( xSbxObj.is() )
{
OUString aMethodName = aPrefixName;
aMethodName = aMethodName + Event.MethodName;
@@ -3908,7 +3908,7 @@ void BasicAllListener_Impl ::disposing(const EventObject& )
{
SolarMutexGuard guard;
- xSbxObj.Clear();
+ xSbxObj.clear();
}
@@ -4255,7 +4255,7 @@ ModuleInvocationProxy::ModuleInvocationProxy( const OUString& aPrefix, SbxObject
, m_xScopeObj( xScopeObj )
, m_aListeners( m_aMutex )
{
- m_bProxyIsClassModuleObject = xScopeObj.Is() && nullptr != dynamic_cast<const SbClassModuleObject*>( xScopeObj.get() );
+ m_bProxyIsClassModuleObject = xScopeObj.is() && nullptr != dynamic_cast<const SbClassModuleObject*>( xScopeObj.get() );
}
Reference< XIntrospectionAccess > SAL_CALL ModuleInvocationProxy::getIntrospection()
@@ -4347,7 +4347,7 @@ Any SAL_CALL ModuleInvocationProxy::invoke( const OUString& rFunction,
Any aRet;
SbxObjectRef xScopeObj = m_xScopeObj;
- if( !xScopeObj.Is() )
+ if( !xScopeObj.is() )
{
return aRet;
}
@@ -4393,7 +4393,7 @@ Any SAL_CALL ModuleInvocationProxy::invoke( const OUString& rFunction,
// Call method
SbxVariableRef xValue = new SbxVariable;
- if( xArray.Is() )
+ if( xArray.is() )
pMeth->SetParameters( xArray.get() );
pMeth->Call( xValue.get() );
aRet = sbxToUnoValue( xValue.get() );
@@ -4638,7 +4638,7 @@ bool handleToStringForCOMObjects( SbxObject* pObj, SbxValue* pVal )
if( pUnoObj->isNativeCOMObject() )
{
SbxVariableRef pMeth = pObj->Find( "toString", SbxClassType::Method );
- if ( pMeth.Is() )
+ if ( pMeth.is() )
{
SbxValues aRes;
pMeth->Get( aRes );
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index dce7d98..f964ef2 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -207,7 +207,7 @@ DocObjectWrapper::invoke( const OUString& aFunctionName, const Sequence< Any >&
if ( m_xAggInv.is() && m_xAggInv->hasMethod( aFunctionName ) )
return m_xAggInv->invoke( aFunctionName, aParams, aOutParamIndex, aOutParam );
SbMethodRef pMethod = getMethod( aFunctionName );
- if ( !pMethod.Is() )
+ if ( !pMethod.is() )
throw RuntimeException();
// check number of parameters
sal_Int32 nParamsCount = aParams.getLength();
@@ -246,7 +246,7 @@ DocObjectWrapper::invoke( const OUString& aFunctionName, const Sequence< Any >&
xSbxVar->SetFlag( SbxFlagBits::Fixed );
}
}
- if ( xSbxParams.Is() )
+ if ( xSbxParams.is() )
pMethod->SetParameters( xSbxParams.get() );
// call method
@@ -255,7 +255,7 @@ DocObjectWrapper::invoke( const OUString& aFunctionName, const Sequence< Any >&
pMethod->Call( xReturn.get() );
Any aReturn;
// get output parameters
- if ( xSbxParams.Is() )
+ if ( xSbxParams.is() )
{
SbxInfo* pInfo_ = pMethod->GetInfo();
if ( pInfo_ )
@@ -302,7 +302,7 @@ DocObjectWrapper::setValue( const OUString& aPropertyName, const Any& aValue )
return m_xAggInv->setValue( aPropertyName, aValue );
SbPropertyRef pProperty = getProperty( aPropertyName );
- if ( !pProperty.Is() )
+ if ( !pProperty.is() )
throw UnknownPropertyException();
unoToSbxValue( pProperty.get(), aValue );
}
@@ -314,7 +314,7 @@ DocObjectWrapper::getValue( const OUString& aPropertyName )
return m_xAggInv->getValue( aPropertyName );
SbPropertyRef pProperty = getProperty( aPropertyName );
- if ( !pProperty.Is() )
+ if ( !pProperty.is() )
throw UnknownPropertyException();
SbxVariable* pProp = pProperty.get();
@@ -330,7 +330,7 @@ DocObjectWrapper::hasMethod( const OUString& aName )
{
if ( m_xAggInv.is() && m_xAggInv->hasMethod( aName ) )
return true;
- return getMethod( aName ).Is();
+ return getMethod( aName ).is();
}
sal_Bool SAL_CALL
@@ -339,7 +339,7 @@ DocObjectWrapper::hasProperty( const OUString& aName )
bool bRes = false;
if ( m_xAggInv.is() && m_xAggInv->hasProperty( aName ) )
bRes = true;
- else bRes = getProperty( aName ).Is();
+ else bRes = getProperty( aName ).is();
return bRes;
}
@@ -668,7 +668,7 @@ SbxVariable* SbModule::Find( const OUString& rName, SbxClassType t )
// Put enum types as objects into module,
// allows MyEnum.First notation
SbxArrayRef xArray = pImage->GetEnums();
- if( xArray.Is() )
+ if( xArray.is() )
{
SbxVariable* pEnumVar = xArray->Find( rName, SbxClassType::DontCare );
SbxObject* pEnumObject = dynamic_cast<SbxObject*>( pEnumVar );
@@ -1286,7 +1286,7 @@ void SbModule::RemoveVars()
// SbUserform because it could trigger say an initialise event
// which would cause basic to be re-run in the middle of the init ( and remember RemoveVars is called from compile and we don't want code to run as part of the compile )
SbxVariableRef p = SbModule::Find( rModuleVariableName, SbxClassType::Property );
- if( p.Is() )
+ if( p.is() )
Remove( p.get() );
}
}
@@ -2122,7 +2122,7 @@ void SbMethod::Broadcast( SfxHintId nHintId )
pCst = nullptr;
SbMethod* pThisCopy = new SbMethod( *this );
SbMethodRef xHolder = pThisCopy;
- if( mpPar.Is() )
+ if( mpPar.is() )
{
// Enregister this as element 0, but don't reset the parent!
if( GetType() != SbxVOID ) {
@@ -2563,7 +2563,7 @@ void SbUserFormModule::Load()
{
SAL_INFO("basic", "** load() ");
// forces a load
- if ( !pDocObject.Is() )
+ if ( !pDocObject.is() )
InitObject();
}
@@ -2689,7 +2689,7 @@ void SbUserFormModule::InitObject()
SbxVariable*
SbUserFormModule::Find( const OUString& rName, SbxClassType t )
{
- if ( !pDocObject.Is() && !GetSbData()->bRunInit && GetSbData()->pInst )
+ if ( !pDocObject.is() && !GetSbData()->bRunInit && GetSbData()->pInst )
InitObject();
return SbObjModule::Find( rName, t );
}
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index ac4351c..1a4c12b 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -185,7 +185,7 @@ RTLFUNC(CreateObject)
OUString aClass( rPar.Get( 1 )->GetOUString() );
SbxObjectRef p = SbxBase::CreateObject( aClass );
- if( !p.Is() )
+ if( !p.is() )
StarBASIC::Error( ERRCODE_BASIC_CANNOT_LOAD );
else
{
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index bad68c5..eee8de4 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -214,7 +214,7 @@ RTLFUNC(CallByName)
// Call method
SbxVariableRef refVar = rPar.Get(0);
- if( xArray.Is() )
+ if( xArray.is() )
pMeth->SetParameters( xArray.get() );
pMeth->Call( refVar.get() );
pMeth->SetParameters( nullptr );
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 139d154..2f9284e 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -1069,7 +1069,7 @@ void SbiRuntime::PushArgv()
{
pArgvStk.emplace_back(refArgv, nArgc);
nArgc = 1;
- refArgv.Clear();
+ refArgv.clear();
}
void SbiRuntime::PopArgv()
@@ -1116,7 +1116,7 @@ void SbiRuntime::PushForEach()
pForStk = p;
SbxVariableRef xObjVar = PopVar();
- SbxBase* pObj = xObjVar.Is() ? xObjVar->GetObject() : nullptr;
+ SbxBase* pObj = xObjVar.is() ? xObjVar->GetObject() : nullptr;
if( pObj == nullptr )
{
Error( ERRCODE_BASIC_NO_OBJECT );
@@ -1221,7 +1221,7 @@ SbiForStack* SbiRuntime::FindForStackItemForCollection( class BasicCollection* p
{
for (SbiForStack *p = pForStk; p; p = p->pNext)
{
- SbxVariable* pVar = p->refEnd.Is() ? p->refEnd.get() : nullptr;
+ SbxVariable* pVar = p->refEnd.is() ? p->refEnd.get() : nullptr;
if( p->eForType == ForType::EachCollection
&& pVar != nullptr
&& dynamic_cast<BasicCollection*>( pVar) == pCollection )
@@ -1591,7 +1591,7 @@ inline bool checkUnoStructCopy( bool bVBA, SbxVariableRef& refVal, SbxVariableRe
return false;
SbxObjectRef xValObj = static_cast<SbxObject*>(refVal->GetObject());
- if( !xValObj.Is() || nullptr != dynamic_cast<const SbUnoAnyObject*>( xValObj.get() ) )
+ if( !xValObj.is() || nullptr != dynamic_cast<const SbUnoAnyObject*>( xValObj.get() ) )
return false;
SbUnoObject* pUnoVal = dynamic_cast<SbUnoObject*>( xValObj.get() );
@@ -1779,7 +1779,7 @@ void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, b
{
SbxVariableRef refObjVal = dynamic_cast<SbxObject*>( pObjVarObj );
- if( refObjVal.Is() )
+ if( refObjVal.is() )
{
refVal = refObjVal;
}
@@ -1793,7 +1793,7 @@ void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, b
// #52896 refVal can be invalid here, if uno-sequences - or more
// general arrays - are assigned to variables that are declared
// as an object!
- if( !refVal.Is() )
+ if( !refVal.is() )
{
Error( ERRCODE_BASIC_INVALID_USAGE_OBJECT );
}
@@ -1907,7 +1907,7 @@ void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, b
SbxBase* pValObjBase = refVal->GetObject();
if( pValObjBase == nullptr )
{
- if( xPrevVarObj.Is() )
+ if( xPrevVarObj.is() )
{
// Object is overwritten with NULL, instantiate init object
DimAsNewRecoverHash &rDimAsNewRecoverHash = GaDimAsNewRecoverHash::get();
@@ -1935,7 +1935,7 @@ void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, b
else
{
// Does old value exist?
- bool bFirstInit = !xPrevVarObj.Is();
+ bool bFirstInit = !xPrevVarObj.is();
if( bFirstInit )
{
// Store information to instantiate object later
@@ -2087,9 +2087,9 @@ void SbiRuntime::DimImpl( SbxVariableRef refVar )
// If refDim then this DIM statement is terminating a ReDIM and
// previous StepERASE_CLEAR for an array, the following actions have
// been delayed from ( StepERASE_CLEAR ) 'till here
- if ( refRedim.Is() )
+ if ( refRedim.is() )
{
- if ( !refRedimpArray.Is() ) // only erase the array not ReDim Preserve
+ if ( !refRedimpArray.is() ) // only erase the array not ReDim Preserve
{
lcl_eraseImpl( refVar, bVBAEnabled );
}
@@ -2189,7 +2189,7 @@ void SbiRuntime::StepREDIMP()
DimImpl( refVar );
// Now check, if we can copy from the old array
- if( refRedimpArray.Is() )
+ if( refRedimpArray.is() )
{
SbxBase* pElemObj = refVar->GetObject();
SbxDimArray* pNewArray = dynamic_cast<SbxDimArray*>( pElemObj );
@@ -2341,7 +2341,7 @@ void SbiRuntime::StepERASE_CLEAR()
void SbiRuntime::StepARRAYACCESS()
{
- if( !refArgv.Is() )
+ if( !refArgv.is() )
{
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
}
@@ -2378,7 +2378,7 @@ void SbiRuntime::StepARGC()
void SbiRuntime::StepARGV()
{
- if( !refArgv.Is() )
+ if( !refArgv.is() )
{
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
}
@@ -2561,7 +2561,7 @@ void SbiRuntime::StepNEXT()
void SbiRuntime::StepCASE()
{
- if( !refCaseStk.Is() )
+ if( !refCaseStk.is() )
{
refCaseStk = new SbxArray;
}
@@ -2573,7 +2573,7 @@ void SbiRuntime::StepCASE()
void SbiRuntime::StepENDCASE()
{
- if( !refCaseStk.Is() || !refCaseStk->Count() )
+ if( !refCaseStk.is() || !refCaseStk->Count() )
{
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
}
@@ -2790,7 +2790,7 @@ void SbiRuntime::StepLOADI( sal_uInt32 nOp1 )
void SbiRuntime::StepARGN( sal_uInt32 nOp1 )
{
- if( !refArgv.Is() )
+ if( !refArgv.is() )
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
else
{
@@ -2817,7 +2817,7 @@ void SbiRuntime::StepARGN( sal_uInt32 nOp1 )
void SbiRuntime::StepARGTYP( sal_uInt32 nOp1 )
{
- if( !refArgv.Is() )
+ if( !refArgv.is() )
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
else
{
@@ -3061,7 +3061,7 @@ void SbiRuntime::StepTESTFOR( sal_uInt32 nOp1 )
void SbiRuntime::StepCASETO( sal_uInt32 nOp1 )
{
- if( !refCaseStk.Is() || !refCaseStk->Count() )
+ if( !refCaseStk.is() || !refCaseStk->Count() )
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
else
{
@@ -3452,7 +3452,7 @@ SbxVariable* SbiRuntime::FindElement( SbxObject* pObj, sal_uInt32 nOp1, sal_uInt
if( bFatalError )
{
// #39108 use dummy variable instead of fatal error
- if( !xDummyVar.Is() )
+ if( !xDummyVar.is() )
{
xDummyVar = new SbxVariable( SbxVARIANT );
}
@@ -3555,7 +3555,7 @@ SbxBase* SbiRuntime::FindElementExtern( const OUString& rName )
{
return nullptr;
}
- if( refLocals.Is() )
+ if( refLocals.is() )
{
pElem = refLocals->Find( rName, SbxClassType::DontCare );
}
@@ -3570,7 +3570,7 @@ SbxBase* SbiRuntime::FindElementExtern( const OUString& rName )
if( !pElem && pMeth )
{
SbxInfo* pInfo = pMeth->GetInfo();
- if( pInfo && refParams.Is() )
+ if( pInfo && refParams.is() )
{
sal_uInt16 nParamCount = refParams->Count();
sal_uInt16 j = 1;
@@ -3612,7 +3612,7 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 )
{
if( nOp1 & 0x8000 )
{
- if( !refArgv.Is() )
+ if( !refArgv.is() )
{
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
}
@@ -3795,7 +3795,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
{
// is it an uno-object?
SbxBaseRef pObj = pElem->GetObject();
- if( pObj.Is() )
+ if( pObj.is() )
{
if (SbUnoObject* pUnoObj = dynamic_cast<SbUnoObject*>( pObj.get()))
{
@@ -3861,7 +3861,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
{
pDflt->Broadcast( SfxHintId::BasicDataWanted );
SbxBaseRef pDfltObj = pDflt->GetObject();
- if( pDfltObj.Is() )
+ if( pDfltObj.is() )
{
if (SbUnoObject* pSbObj = dynamic_cast<SbUnoObject*>(pDfltObj.get()))
{
@@ -3890,7 +3890,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
{
SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxClassType::Method );
SbxVariableRef refTemp = meth;
- if ( refTemp.Is() )
+ if ( refTemp.is() )
{
meth->SetParameters( pPar );
SbxVariable* pNew = new SbxMethod( *static_cast<SbxMethod*>(meth) );
@@ -3934,7 +3934,7 @@ void SbiRuntime::StepRTL( sal_uInt32 nOp1, sal_uInt32 nOp2 )
void SbiRuntime::StepFIND_Impl( SbxObject* pObj, sal_uInt32 nOp1, sal_uInt32 nOp2,
SbError nNotFound, bool bStatic )
{
- if( !refLocals.Is() )
+ if( !refLocals.is() )
{
refLocals = new SbxArray;
}
@@ -4085,7 +4085,7 @@ void SbiRuntime::StepPARAM( sal_uInt32 nOp1, sal_uInt32 nOp2 )
void SbiRuntime::StepCASEIS( sal_uInt32 nOp1, sal_uInt32 nOp2 )
{
- if( !refCaseStk.Is() || !refCaseStk->Count() )
+ if( !refCaseStk.is() || !refCaseStk->Count() )
{
StarBASIC::FatalError( ERRCODE_BASIC_INTERNAL_ERROR );
}
@@ -4154,7 +4154,7 @@ void SbiRuntime::StepSTMNT( sal_uInt32 nOp1, sal_uInt32 nOp2 )
{
SbxVariable* p = refExprStk->Get( 0 );
if( p->GetRefCount() > 1 &&
- refLocals.Is() && refLocals->Find( p->GetName(), p->GetClass() ) )
+ refLocals.is() && refLocals->Find( p->GetName(), p->GetClass() ) )
{
sUnknownMethodName = p->GetName();
bFatalExpr = true;
@@ -4314,7 +4314,7 @@ void SbiRuntime::StepDCREATE_IMPL( sal_uInt32 nOp1, sal_uInt32 nOp2 )
// fill the array with instances of the requested class
SbxBaseRef xObj = refVar->GetObject();
- if( !xObj.Is() )
+ if( !xObj.is() )
{
StarBASIC::Error( ERRCODE_BASIC_INVALID_OBJECT );
return;
@@ -4462,7 +4462,7 @@ void SbiRuntime::implHandleSbxFlags( SbxVariable* pVar, SbxDataType t, sal_uInt3
void SbiRuntime::StepLOCAL( sal_uInt32 nOp1, sal_uInt32 nOp2 )
{
- if( !refLocals.Is() )
+ if( !refLocals.is() )
{
refLocals = new SbxArray;
}
@@ -4486,7 +4486,7 @@ void SbiRuntime::StepPUBLIC_Impl( sal_uInt32 nOp1, sal_uInt32 nOp2, bool bUsedFo
bool bFlag = pMod->IsSet( SbxFlagBits::NoModify );
pMod->SetFlag( SbxFlagBits::NoModify );
SbxVariableRef p = pMod->Find( aName, SbxClassType::Property );
- if( p.Is() )
+ if( p.is() )
{
pMod->Remove (p.get());
}
@@ -4549,7 +4549,7 @@ void SbiRuntime::StepGLOBAL( sal_uInt32 nOp1, sal_uInt32 nOp2 )
bool bFlag = pStorage->IsSet( SbxFlagBits::NoModify );
rBasic.SetFlag( SbxFlagBits::NoModify );
SbxVariableRef p = pStorage->Find( aName, SbxClassType::Property );
- if( p.Is() )
+ if( p.is() )
{
pStorage->Remove (p.get());
}
@@ -4558,7 +4558,7 @@ void SbiRuntime::StepGLOBAL( sal_uInt32 nOp1, sal_uInt32 nOp2 )
{
pStorage->ResetFlag( SbxFlagBits::NoModify );
}
- if( p.Is() )
+ if( p.is() )
{
p->SetFlag( SbxFlagBits::DontStore );
// from 2.7.1996: HACK because of 'reference can't be saved'
diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx
index 8bf551a..5fc4775 100644
--- a/basic/source/sbx/sbxarray.cxx
+++ b/basic/source/sbx/sbxarray.cxx
@@ -61,7 +61,7 @@ SbxArray& SbxArray::operator=( const SbxArray& rArray )
for( const auto& rpSrcRef : rArray.mVarEntries )
{
SbxVariableRef pSrc_ = rpSrcRef.mpVar;
- if( !pSrc_.Is() )
+ if( !pSrc_.is() )
continue;
if( eType != SbxVARIANT )
@@ -150,7 +150,7 @@ SbxVariable* SbxArray::Get32( sal_uInt32 nIdx )
}
SbxVariableRef& rRef = GetRef32( nIdx );
- if ( !rRef.Is() )
+ if ( !rRef.is() )
rRef = new SbxVariable( eType );
return rRef.get();
@@ -165,7 +165,7 @@ SbxVariable* SbxArray::Get( sal_uInt16 nIdx )
}
SbxVariableRef& rRef = GetRef( nIdx );
- if ( !rRef.Is() )
+ if ( !rRef.is() )
rRef = new SbxVariable( eType );
return rRef.get();
@@ -311,7 +311,7 @@ void SbxArray::Merge( SbxArray* p )
for (auto& rEntry1: p->mVarEntries)
{
- if (!rEntry1.mpVar.Is())
+ if (!rEntry1.mpVar.is())
continue;
OUString aName = rEntry1.mpVar->GetName();
@@ -321,7 +321,7 @@ void SbxArray::Merge( SbxArray* p )
// Then overwrite!
for (auto& rEntry2: mVarEntries)
{
- if (!rEntry2.mpVar.Is())
+ if (!rEntry2.mpVar.is())
continue;
if (rEntry2.mpVar->GetHashCode() == nHash &&
@@ -329,12 +329,12 @@ void SbxArray::Merge( SbxArray* p )
{
// Take this element and clear the original.
rEntry2.mpVar = rEntry1.mpVar;
- rEntry1.mpVar.Clear();
+ rEntry1.mpVar.clear();
break;
}
}
- if (rEntry1.mpVar.Is())
+ if (rEntry1.mpVar.is())
{
// We don't have element with the same name. Add a new entry.
SbxVarEntry aNewEntry;
@@ -354,7 +354,7 @@ SbxVariable* SbxArray::FindUserData( sal_uInt32 nData )
SbxVariable* p = nullptr;
for (auto& rEntry : mVarEntries)
{
- if (!rEntry.mpVar.Is())
+ if (!rEntry.mpVar.is())
continue;
if (rEntry.mpVar->IsVisible() && rEntry.mpVar->GetUserData() == nData)
@@ -408,7 +408,7 @@ SbxVariable* SbxArray::Find( const OUString& rName, SbxClassType t )
sal_uInt16 nHash = SbxVariable::MakeHashCode( rName );
for (auto& rEntry : mVarEntries)
{
- if (!rEntry.mpVar.Is() || !rEntry.mpVar->IsVisible())
+ if (!rEntry.mpVar.is() || !rEntry.mpVar->IsVisible())
continue;
// The very secure search works as well, if there is no hashcode!
@@ -489,14 +489,14 @@ bool SbxArray::StoreData( SvStream& rStrm ) const
// Which elements are even defined?
for( auto& rEntry: mVarEntries )
{
- if (rEntry.mpVar.Is() && !(rEntry.mpVar->GetFlags() & SbxFlagBits::DontStore))
+ if (rEntry.mpVar.is() && !(rEntry.mpVar->GetFlags() & SbxFlagBits::DontStore))
nElem++;
}
rStrm.WriteUInt16( nElem );
for( size_t n = 0; n < mVarEntries.size(); n++ )
{
const SbxVarEntry& rEntry = mVarEntries[n];
- if (rEntry.mpVar.Is() && !(rEntry.mpVar->GetFlags() & SbxFlagBits::DontStore))
+ if (rEntry.mpVar.is() && !(rEntry.mpVar->GetFlags() & SbxFlagBits::DontStore))
{
rStrm.WriteUInt16( n );
if (!rEntry.mpVar->Store(rStrm))
diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx
index 24afd33..1a671a6 100644
--- a/basic/source/sbx/sbxexec.cxx
+++ b/basic/source/sbx/sbxexec.cxx
@@ -90,7 +90,7 @@ static SbxVariableRef QualifiedName
{
// Read in the element
refVar = Element( pObj, pGbl, &p, t );
- while( refVar.Is() && (*p == '.' || *p == '!') )
+ while( refVar.is() && (*p == '.' || *p == '!') )
{
// It follows still an objectelement. The current element
// had to be a SBX-Object or had to deliver such an object!
@@ -98,7 +98,7 @@ static SbxVariableRef QualifiedName
if( !pObj )
// Then it had to deliver an object
pObj = dynamic_cast<SbxObject*>( refVar->GetObject() );
- refVar.Clear();
+ refVar.clear();
if( !pObj )
break;
p++;
@@ -129,7 +129,7 @@ static SbxVariableRef Operand
sal_uInt16 nLen;
if( !refVar->Scan( OUString( p ), &nLen ) )
{
- refVar.Clear();
+ refVar.clear();
}
else
{
@@ -176,11 +176,11 @@ static SbxVariableRef MulDiv( SbxObject* pObj, SbxObject* pGbl, const sal_Unicod
const sal_Unicode* p = *ppBuf;
SbxVariableRef refVar( Operand( pObj, pGbl, &p, false ) );
p = SkipWhitespace( p );
- while( refVar.Is() && ( *p == '*' || *p == '/' ) )
+ while( refVar.is() && ( *p == '*' || *p == '/' ) )
{
sal_Unicode cOp = *p++;
SbxVariableRef refVar2( Operand( pObj, pGbl, &p, false ) );
- if( refVar2.Is() )
+ if( refVar2.is() )
{
// temporary variable!
SbxVariable* pVar = refVar.get();
@@ -193,7 +193,7 @@ static SbxVariableRef MulDiv( SbxObject* pObj, SbxObject* pGbl, const sal_Unicod
}
else
{
- refVar.Clear();
+ refVar.clear();
break;
}
}
@@ -206,11 +206,11 @@ static SbxVariableRef PlusMinus( SbxObject* pObj, SbxObject* pGbl, const sal_Uni
const sal_Unicode* p = *ppBuf;
SbxVariableRef refVar( MulDiv( pObj, pGbl, &p ) );
p = SkipWhitespace( p );
- while( refVar.Is() && ( *p == '+' || *p == '-' ) )
+ while( refVar.is() && ( *p == '+' || *p == '-' ) )
{
sal_Unicode cOp = *p++;
SbxVariableRef refVar2( MulDiv( pObj, pGbl, &p ) );
- if( refVar2.Is() )
+ if( refVar2.is() )
{
// temporaere Variable!
SbxVariable* pVar = refVar.get();
@@ -223,7 +223,7 @@ static SbxVariableRef PlusMinus( SbxObject* pObj, SbxObject* pGbl, const sal_Uni
}
else
{
- refVar.Clear();
+ refVar.clear();
break;
}
}
@@ -236,7 +236,7 @@ static SbxVariableRef Assign( SbxObject* pObj, SbxObject* pGbl, const sal_Unicod
const sal_Unicode* p = *ppBuf;
SbxVariableRef refVar( Operand( pObj, pGbl, &p, true ) );
p = SkipWhitespace( p );
- if( refVar.Is() )
+ if( refVar.is() )
{
if( *p == '=' )
{
@@ -244,13 +244,13 @@ static SbxVariableRef Assign( SbxObject* pObj, SbxObject* pGbl, const sal_Unicod
if( refVar->GetClass() != SbxClassType::Property )
{
SbxBase::SetError( ERRCODE_SBX_BAD_ACTION );
- refVar.Clear();
+ refVar.clear();
}
else
{
p++;
SbxVariableRef refVar2( PlusMinus( pObj, pGbl, &p ) );
- if( refVar2.Is() )
+ if( refVar2.is() )
{
SbxVariable* pVar = refVar.get();
SbxVariable* pVar2 = refVar2.get();
@@ -287,7 +287,7 @@ static SbxVariableRef Element
}
refVar = pObj->Find( aSym, t );
pObj->SetFlags( nOld );
- if( refVar.Is() )
+ if( refVar.is() )
{
refVar->SetParameters( nullptr );
// Follow still parameter?
@@ -303,10 +303,10 @@ static SbxVariableRef Element
while( *p && *p != ')' && *p != ']' )
{
SbxVariableRef refArg = PlusMinus( pGbl, pGbl, &p );
- if( !refArg.Is() )
+ if( !refArg.is() )
{
// Error during the parsing
- refVar.Clear(); break;
+ refVar.clear(); break;
}
else
{
@@ -321,7 +321,7 @@ static SbxVariableRef Element
}
if( *p == ')' )
p++;
- if( refVar.Is() )
+ if( refVar.is() )
refVar->SetParameters( refPar.get() );
}
}
@@ -350,7 +350,7 @@ SbxVariable* SbxObject::Execute( const OUString& rTxt )
SetError( ERRCODE_SBX_SYNTAX ); break;
}
pVar = Assign( this, this, &p );
- if( !pVar.Is() )
+ if( !pVar.is() )
{
break;
}
diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx
index e33e6b3..69533d9 100644
--- a/basic/source/sbx/sbxobj.cxx
+++ b/basic/source/sbx/sbxobj.cxx
@@ -564,7 +564,7 @@ void SbxObject::Remove( SbxVariable* pVar )
static bool LoadArray( SvStream& rStrm, SbxObject* pThis, SbxArray* pArray )
{
SbxArrayRef p = static_cast<SbxArray*>( SbxBase::Load( rStrm ) );
- if( !p.Is() )
+ if( !p.is() )
{
return false;
}
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index cf56cd7..097b04c 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -185,7 +185,7 @@ void SbxVariable::Broadcast( SfxHintId nHintId )
pCst = nullptr;
SbxFlagBits nSaveFlags = GetFlags();
SetFlag( SbxFlagBits::ReadWrite );
- if( mpPar.Is() )
+ if( mpPar.is() )
{
// Register this as element 0, but don't change over the parent!
mpPar->GetRef( 0 ) = this;
@@ -199,10 +199,10 @@ void SbxVariable::Broadcast( SfxHintId nHintId )
SbxInfo* SbxVariable::GetInfo()
{
- if( !pInfo.Is() )
+ if( !pInfo.is() )
{
Broadcast( SfxHintId::BasicInfoWanted );
- if( pInfo.Is() )
+ if( pInfo.is() )
{
SetModified( true );
}
@@ -239,7 +239,7 @@ const OUString& SbxVariable::GetName( SbxNameType t ) const
// Request parameter-information (not for objects)
const_cast<SbxVariable*>(this)->GetInfo();
// Append nothing, if it is a simple property (no empty brackets)
- if (!pInfo.Is() || (pInfo->m_Params.empty() && GetClass() == SbxClassType::Property))
+ if (!pInfo.is() || (pInfo->m_Params.empty() && GetClass() == SbxClassType::Property))
{
return maName;
}
@@ -619,7 +619,7 @@ bool SbxVariable::StoreData( SvStream& rStrm ) const
write_uInt16_lenPrefixed_uInt8s_FromOUString(rStrm, maName,
RTL_TEXTENCODING_ASCII_US);
rStrm.WriteUInt32( nUserData );
- if( pInfo.Is() )
+ if( pInfo.is() )
{
rStrm.WriteUChar( 2 ); // Version 2: with UserData!
pInfo->StoreData( rStrm );
@@ -656,7 +656,7 @@ SbxAlias& SbxAlias::operator=( const SbxAlias& r )
SbxAlias::~SbxAlias()
{
- if( xAlias.Is() )
+ if( xAlias.is() )
{
EndListening( xAlias->GetBroadcaster() );
}
@@ -664,7 +664,7 @@ SbxAlias::~SbxAlias()
void SbxAlias::Broadcast( SfxHintId nHt )
{
- if( xAlias.Is() )
+ if( xAlias.is() )
{
xAlias->SetParameters( GetParameters() );
if( nHt == SfxHintId::BasicDataWanted )
@@ -688,7 +688,7 @@ void SbxAlias::Notify( SfxBroadcaster&, const SfxHint& rHint )
const SbxHint* p = dynamic_cast<const SbxHint*>(&rHint);
if( p && p->GetId() == SfxHintId::BasicDying )
{
- xAlias.Clear();
+ xAlias.clear();
// delete the alias?
if( pParent )
{
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index f2161ec..5b671ad 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -421,7 +421,7 @@ IMPL_LINK_NOARG( SvBaseLinksDlg, BreakLinkClickHdl, Button*, void )
{
sal_uLong nPos;
tools::SvRef<SvBaseLink> xLink = GetSelEntry( &nPos );
- if( !xLink.Is() )
+ if( !xLink.is() )
return;
ScopedVclPtrInstance< QueryBox > aBox( this, WB_YES_NO | WB_DEF_YES, aStrCloselinkmsg );
@@ -437,7 +437,7 @@ IMPL_LINK_NOARG( SvBaseLinksDlg, BreakLinkClickHdl, Button*, void )
xLink->Closed();
// if somebody has forgotten to deregister himself
- if( xLink.Is() )
+ if( xLink.is() )
pLinkMgr->Remove( xLink.get() );
if( bNewLnkMgr )
@@ -508,7 +508,7 @@ IMPL_LINK_NOARG( SvBaseLinksDlg, UpdateWaitingHdl, Timer*, void )
{
SvTreeListEntry* pBox = m_pTbLinks->GetEntry( --nPos );
tools::SvRef<SvBaseLink> xLink( static_cast<SvBaseLink*>(pBox->GetUserData()) );
- if( xLink.Is() )
+ if( xLink.is() )
{
OUString sCur( ImplGetStateStr( *xLink ) ),
sOld( SvTabListBox::GetEntryText( pBox, 3 ) );
@@ -595,7 +595,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr )
for( size_t n = 0; n < rLnks.size(); ++n )
{
tools::SvRef<SvBaseLink>& rLinkRef = rLnks[ n ];
- if( !rLinkRef.Is() )
+ if( !rLinkRef.is() )
{
rLnks.erase( rLnks.begin() + n );
--n;
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index ab51cba..46d4429 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -1462,7 +1462,7 @@ FeatureState SbaXDataBrowserController::GetState(sal_uInt16 nId) const
case ID_BROWSER_CUT:
{
CellControllerRef xCurrentController = getBrowserView()->getVclControl()->Controller();
- if (xCurrentController.Is() && nullptr != dynamic_cast< const EditCellController* >(xCurrentController.get()))
+ if (xCurrentController.is() && nullptr != dynamic_cast< const EditCellController* >(xCurrentController.get()))
{
Edit& rEdit = static_cast<Edit&>(xCurrentController->GetWindow());
bool bHasLen = (rEdit.GetSelection().Len() != 0);
@@ -1941,7 +1941,7 @@ void SbaXDataBrowserController::Execute(sal_uInt16 nId, const Sequence< Property
case ID_BROWSER_PASTE:
{
CellControllerRef xCurrentController = getBrowserView()->getVclControl()->Controller();
- if (!xCurrentController.Is())
+ if (!xCurrentController.is())
// should be intercepted by GetState. Normally.
// Unfortunately ID_BROWSER_PASTE is a 'fast call' slot, which means it may be executed without checking if it is
// enabled. This would be really deadly herein if the current cell has no controller ...
diff --git a/dbaccess/source/ui/browser/dbexchange.cxx b/dbaccess/source/ui/browser/dbexchange.cxx
index 2edd7fd..3b32859 100644
--- a/dbaccess/source/ui/browser/dbexchange.cxx
+++ b/dbaccess/source/ui/browser/dbexchange.cxx
@@ -139,7 +139,7 @@ namespace dbaui
if (nUserObjectId == SotClipboardFormatId::RTF || nUserObjectId == SotClipboardFormatId::HTML )
{
ODatabaseImportExport* pExport = static_cast<ODatabaseImportExport*>(pUserObject);
- if ( pExport && rxOStm.Is() )
+ if ( pExport && rxOStm.is() )
{
pExport->setStream(rxOStm.get());
return pExport->Write();
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index 51f998e..a8e8ba2 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1248,7 +1248,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
if ( IsDropFormatSupported( SotClipboardFormatId::STRING ) ) do
{ // odd construction, but spares us a lot of (explicit ;) goto's
- if (!GetEmptyRow().Is())
+ if (!GetEmptyRow().is())
// without an empty row we're not in update mode
break;
@@ -1270,12 +1270,12 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
// not dropped within a cell (a cell isn't as wide as the column - the are small spaces)
break;
- if ((IsModified() || (GetCurrentRow().Is() && GetCurrentRow()->IsModified())) && (GetCurrentPos() != nRow))
+ if ((IsModified() || (GetCurrentRow().is() && GetCurrentRow()->IsModified())) && (GetCurrentPos() != nRow))
// there is a current and modified row or cell and he text is to be dropped into another one
break;
CellControllerRef xCurrentController = Controller();
- if (xCurrentController.Is() && xCurrentController->IsModified() && ((nRow != GetCurRow()) || (nCol != GetCurColumnId())))
+ if (xCurrentController.is() && xCurrentController->IsModified() && ((nRow != GetCurRow()) || (nCol != GetCurColumnId())))
// the current controller is modified and the user wants to drop in another cell -> no chance
// (when leaving the modified cell a error may occur - this is deadly while dragging)
break;
@@ -1323,7 +1323,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
} while (false);
- if(nAction != DND_ACTION_COPY && GetEmptyRow().Is())
+ if(nAction != DND_ACTION_COPY && GetEmptyRow().is())
{
const DataFlavorExVector& _rFlavors = GetDataFlavors();
if(::std::any_of(_rFlavors.begin(),_rFlavors.end(),SbaGridControlPrec()))
@@ -1366,7 +1366,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt )
ActivateCell();
CellControllerRef xCurrentController = Controller();
- if (!xCurrentController.Is() || nullptr == dynamic_cast< const EditCellController* >(xCurrentController.get()))
+ if (!xCurrentController.is() || nullptr == dynamic_cast< const EditCellController* >(xCurrentController.get()))
return DND_ACTION_NONE;
Edit& rEdit = static_cast<Edit&>(xCurrentController->GetWindow());
@@ -1384,7 +1384,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt )
return DND_ACTION_COPY;
}
- if(GetEmptyRow().Is())
+ if(GetEmptyRow().is())
{
const DataFlavorExVector& _rFlavors = GetDataFlavors();
if( ::std::any_of(_rFlavors.begin(),_rFlavors.end(), SbaGridControlPrec()) )
diff --git a/dbaccess/source/ui/control/TableGrantCtrl.cxx b/dbaccess/source/ui/control/TableGrantCtrl.cxx
index a077cda..58de1f2 100644
--- a/dbaccess/source/ui/control/TableGrantCtrl.cxx
+++ b/dbaccess/source/ui/control/TableGrantCtrl.cxx
@@ -244,7 +244,7 @@ bool OTableGrantControl::SaveModified()
bErg = false;
::dbaui::showError(::dbtools::SQLExceptionInfo(e),GetParent(),m_xContext);
}
- if(bErg && Controller().Is())
+ if(bErg && Controller().is())
Controller()->ClearModified();
if(!bErg)
UpdateTables();
diff --git a/dbaccess/source/ui/misc/TableCopyHelper.cxx b/dbaccess/source/ui/misc/TableCopyHelper.cxx
index 0b75d81..d5b0596 100644
--- a/dbaccess/source/ui/misc/TableCopyHelper.cxx
+++ b/dbaccess/source/ui/misc/TableCopyHelper.cxx
@@ -280,7 +280,7 @@ bool OTableCopyHelper::copyTagTable(const TransferableDataHelper& _aDroppedData
_rAsyncDrop.bHtml = bHtml;
_rAsyncDrop.bError = !copyTagTable(_rAsyncDrop,true,_xConnection);
- bRet = ( !_rAsyncDrop.bError && bOk && _rAsyncDrop.aHtmlRtfStorage.Is() );
+ bRet = ( !_rAsyncDrop.bError && bOk && _rAsyncDrop.aHtmlRtfStorage.is() );
if ( bRet )
{
// now we need to copy the stream
@@ -302,7 +302,7 @@ void OTableCopyHelper::asyncCopyTagTable( DropDescriptor& _rDesc
,const OUString& i_rDestDataSource
,const SharedConnection& _xConnection)
{
- if ( _rDesc.aHtmlRtfStorage.Is() )
+ if ( _rDesc.aHtmlRtfStorage.is() )
{
copyTagTable(_rDesc,false,_xConnection);
_rDesc.aHtmlRtfStorage = nullptr;
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 40ac617..b9fb548 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -895,7 +895,7 @@ bool OSelectionBrowseBox::SaveModified()
bool bError = false;
bool bListAction = false;
- if (pEntry.is() && Controller().Is() && Controller()->IsModified())
+ if (pEntry.is() && Controller().is() && Controller()->IsModified())
{
// for the Undo-action
OUString strOldCellContents,sNewValue;
@@ -1162,7 +1162,7 @@ bool OSelectionBrowseBox::SaveModified()
bAppendRow = true;
}
}
- if( !bError && Controller().Is() )
+ if( !bError && Controller().is() )
Controller()->ClearModified();
RowModified(GetCurRow(), GetCurColumnId());
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 80519ed..9d4c263 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -681,7 +681,7 @@ void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId )
GetUndoManager().LeaveListAction();
RowModified(nRow);
CellControllerRef xController(Controller());
- if(xController.Is())
+ if(xController.is())
xController->SetModified();
// Set the Modify flag
@@ -776,7 +776,7 @@ void OTableEditorCtrl::InsertRows( long nRow )
{
::tools::SvRef<SotStorageStream> aStreamRef;
bool bOk = aTransferData.GetSotStorageStream(SotClipboardFormatId::SBA_TABED,aStreamRef);
- if (bOk && aStreamRef.Is())
+ if (bOk && aStreamRef.is())
{
aStreamRef->Seek(STREAM_SEEK_TO_BEGIN);
aStreamRef->ResetError();
@@ -876,7 +876,7 @@ void OTableEditorCtrl::SetControlText( long nRow, sal_uInt16 nColId, const OUStr
GoToRow( nRow );
GoToColumnId( nColId );
CellControllerRef xController = Controller();
- if(xController.Is())
+ if(xController.is())
xController->GetWindow().SetText( rText );
else
RowModified(nRow,nColId);
diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx
index cec3d53..bd97f06 100644
--- a/dbaccess/source/ui/tabledesign/TableUndo.cxx
+++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx
@@ -90,7 +90,7 @@ void OTableDesignCellUndoAct::Undo()
if (m_pTabDgnCtrl->GetCurUndoActId() == 1)
{
CellControllerRef xController = m_pTabDgnCtrl->Controller();
- if ( xController.Is() )
+ if ( xController.is() )
xController->ClearModified();
m_pTabDgnCtrl->GetView()->getController().setModified(false);
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 57186eb..998b0b3 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1994,14 +1994,14 @@ void SvxAutoCorrectLanguageLists::LoadXMLExceptList_Imp(
{
const OUString sStrmName( pStrmName, strlen(pStrmName), RTL_TEXTENCODING_MS_1252 );
- if( rStg.Is() && rStg->IsStream( sStrmName ) )
+ if( rStg.is() && rStg->IsStream( sStrmName ) )
{
tools::SvRef<SotStorageStream> xStrm = rStg->OpenSotStream( sStrmName,
( StreamMode::READ | StreamMode::SHARE_DENYWRITE | StreamMode::NOCREATE ) );
if( SVSTREAM_OK != xStrm->GetError())
{
- xStrm.Clear();
- rStg.Clear();
+ xStrm.clear();
+ rStg.clear();
RemoveStream_Imp( sStrmName );
}
else
@@ -2060,7 +2060,7 @@ void SvxAutoCorrectLanguageLists::SaveExceptList_Imp(
tools::SvRef<SotStorage> &rStg,
bool bConvert )
{
- if( rStg.Is() )
+ if( rStg.is() )
{
OUString sStrmName( pStrmName, strlen(pStrmName), RTL_TEXTENCODING_MS_1252 );
if( rLst.empty() )
@@ -2072,7 +2072,7 @@ void SvxAutoCorrectLanguageLists::SaveExceptList_Imp(
{
tools::SvRef<SotStorageStream> xStrm = rStg->OpenSotStream( sStrmName,
( StreamMode::READ | StreamMode::WRITE | StreamMode::SHARE_DENYWRITE ) );
- if( xStrm.Is() )
+ if( xStrm.is() )
{
xStrm->SetSize( 0 );
xStrm->SetBufferSize( 8192 );
@@ -2095,7 +2095,7 @@ void SvxAutoCorrectLanguageLists::SaveExceptList_Imp(
xStrm->Commit();
if( xStrm->GetError() == SVSTREAM_OK )
{
- xStrm.Clear();
+ xStrm.clear();
if (!bConvert)
{
rStg->Commit();
@@ -2229,7 +2229,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadCplSttExceptList()
{
tools::SvRef<SotStorage> xStg = new SotStorage( sShareAutoCorrFile, StreamMode::READ | StreamMode::SHARE_DENYNONE );
OUString sTemp ( pXMLImplCplStt_ExcptLstStr );
- if( xStg.Is() && xStg->IsContained( sTemp ) )
+ if( xStg.is() && xStg->IsContained( sTemp ) )
LoadXMLExceptList_Imp( pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, xStg );
}
catch (const css::ucb::ContentCreationException&)
@@ -2273,7 +2273,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadWrdSttExceptList()
{
tools::SvRef<SotStorage> xStg = new SotStorage( sShareAutoCorrFile, StreamMode::READ | StreamMode::SHARE_DENYNONE );
OUString sTemp ( pXMLImplWrdStt_ExcptLstStr );
- if( xStg.Is() && xStg->IsContained( sTemp ) )
+ if( xStg.is() && xStg->IsContained( sTemp ) )
LoadXMLExceptList_Imp( pWrdStt_ExcptLst, pXMLImplWrdStt_ExcptLstStr, xStg );
}
catch (const css::ucb::ContentCreationException &e)
@@ -2322,7 +2322,7 @@ void SvxAutoCorrectLanguageLists::RemoveStream_Imp( const OUString& rName )
if( sShareAutoCorrFile != sUserAutoCorrFile )
{
tools::SvRef<SotStorage> xStg = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE );
- if( xStg.Is() && SVSTREAM_OK == xStg->GetError() &&
+ if( xStg.is() && SVSTREAM_OK == xStg->GetError() &&
xStg->IsStream( rName ) )
{
xStg->Remove( rName );
@@ -2387,7 +2387,7 @@ void SvxAutoCorrectLanguageLists::MakeUserStorage_Impl()
tools::SvRef<SotStorage> xSrcStg = new SotStorage( aDest.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ), StreamMode::READ );
tools::SvRef<SotStorage> xDstStg = new SotStorage( sUserAutoCorrFile, StreamMode::WRITE );
- if( xSrcStg.Is() && xDstStg.Is() )
+ if( xSrcStg.is() && xDstStg.is() )
{
OUString sXMLWord ( pXMLImplWrdStt_ExcptLstStr );
OUString sXMLSentence ( pXMLImplCplStt_ExcptLstStr );
@@ -2439,7 +2439,7 @@ bool SvxAutoCorrectLanguageLists::MakeBlocklist_Imp( SotStorage& rStg )
{
tools::SvRef<SotStorageStream> refList = rStg.OpenSotStream( sStrmName,
( StreamMode::READ | StreamMode::WRITE | StreamMode::SHARE_DENYWRITE ) );
- if( refList.Is() )
+ if( refList.is() )
{
refList->SetSize( 0 );
refList->SetBufferSize( 8192 );
@@ -2463,7 +2463,7 @@ bool SvxAutoCorrectLanguageLists::MakeBlocklist_Imp( SotStorage& rStg )
bRet = SVSTREAM_OK == refList->GetError();
if( bRet )
{
- refList.Clear();
+ refList.clear();
rStg.Commit();
if( SVSTREAM_OK != rStg.GetError() )
{
@@ -2493,7 +2493,7 @@ bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector<SvxAutocorrWo
MakeUserStorage_Impl();
tools::SvRef<SotStorage> xStorage = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE );
- bool bRet = xStorage.Is() && SVSTREAM_OK == xStorage->GetError();
+ bool bRet = xStorage.is() && SVSTREAM_OK == xStorage->GetError();
if( bRet )
{
@@ -2565,7 +2565,7 @@ bool SvxAutoCorrectLanguageLists::PutText( const OUString& rShort, const OUStrin
MakeUserStorage_Impl();
tools::SvRef<SotStorage> xStg = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE );
- bool bRet = xStg.Is() && SVSTREAM_OK == xStg->GetError();
+ bool bRet = xStg.is() && SVSTREAM_OK == xStg->GetError();
// Update the word list
if( bRet )
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 5e45f5b..7bbc0e3 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6752,7 +6752,7 @@ bool SvxMSDffManager::ConvertToOle2( SvStream& rStm, sal_uInt32 nReadLen,
if( !rStm.IsEof() && nReadLen > nBytesRead && nDataLen )
{
- if( xOle10Stm.Is() )
+ if( xOle10Stm.is() )
{
std::unique_ptr<sal_uInt8[]> pData(new sal_uInt8[ nDataLen ]);
if( !pData )
@@ -6952,7 +6952,7 @@ css::uno::Reference < css::embed::XEmbeddedObject > SvxMSDffManager::CheckForCo
tools::SvRef<SotStorage> xStorage = new SotStorage( false, *xMemStream );
rSrcStg.CopyTo( xStorage.get() );
xStorage->Commit();
- xStorage.Clear();
+ xStorage.clear();
OUString aType = SfxFilter::GetTypeFromStorage( rSrcStg );
if ( aType.getLength() )
pFilter = aMatch.GetFilter4EA( aType );
@@ -7073,7 +7073,7 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
{
sal_Int64 nAspect = nRecommendedAspect;
SdrOle2Obj* pRet = nullptr;
- if( rSrcStorage.Is() && xDestStorage.is() && rStorageName.getLength() )
+ if( rSrcStorage.is() && xDestStorage.is() && rStorageName.getLength() )
{
comphelper::EmbeddedObjectContainer aCnt( xDestStorage );
// does the 01Ole-Stream exist at all?
@@ -7086,18 +7086,18 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
{
tools::SvRef<SotStorage> xObjStg = rSrcStorage->OpenSotStorage( rStorageName );
- if( xObjStg.Is() )
+ if( xObjStg.is() )
{
{
sal_uInt8 aTestA[10]; // exist the \1CompObj-Stream ?
tools::SvRef<SotStorageStream> xSrcTst = xObjStg->OpenSotStream( "\1CompObj" );
- bValidStorage = xSrcTst.Is() && sizeof( aTestA ) ==
+ bValidStorage = xSrcTst.is() && sizeof( aTestA ) ==
xSrcTst->ReadBytes(aTestA, sizeof(aTestA));
if( !bValidStorage )
{
// or the \1Ole-Stream ?
xSrcTst = xObjStg->OpenSotStream( "\1Ole" );
- bValidStorage = xSrcTst.Is() && sizeof(aTestA) ==
+ bValidStorage = xSrcTst.is() && sizeof(aTestA) ==
xSrcTst->ReadBytes(aTestA, sizeof(aTestA));
}
}
@@ -7113,7 +7113,7 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
tools::SvRef<SotStorageStream> xObjInfoSrc = xObjStg->OpenSotStream(
"\3ObjInfo", StreamMode::STD_READ );
- if ( xObjInfoSrc.Is() && !xObjInfoSrc->GetError() )
+ if ( xObjInfoSrc.is() && !xObjInfoSrc->GetError() )
{
sal_uInt8 nByte = 0;
xObjInfoSrc->ReadUChar( nByte );
@@ -7146,7 +7146,7 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
// object is not an own object
tools::SvRef<SotStorage> xObjStor = SotStorage::OpenOLEStorage( xDestStorage, aDstStgName, StreamMode::READWRITE );
- if ( xObjStor.Is() )
+ if ( xObjStor.is() )
{
tools::SvRef<SotStorage> xSrcStor = rSrcStorage->OpenSotStorage( rStorageName, StreamMode::READ );
xSrcStor->CopyTo( xObjStor.get() );
@@ -7159,7 +7159,7 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
rError = xObjStor->GetError();
bValidStorage = false;
}
- else if( !xObjStor.Is() )
+ else if( !xObjStor.is() )
bValidStorage = false;
}
}
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 0c06194..9d32fc1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -1848,21 +1848,21 @@ SdrObject* SdrPowerPointImport::ImportOLE( long nOLEId,
if ( pObjStor )
{
tools::SvRef<SotStorage> xObjStor( new SotStorage( pObjStor ) );
- if ( xObjStor.Is() && !xObjStor->GetError() )
+ if ( xObjStor.is() && !xObjStor->GetError() )
{
if ( xObjStor->GetClassName() == SvGlobalName() )
{
xObjStor->SetClass( SvGlobalName( pObjStor->GetClassId() ), pObjStor->GetFormat(), pObjStor->GetUserName() );
}
tools::SvRef<SotStorageStream> xSrcTst = xObjStor->OpenSotStream( "\1Ole" );
- if ( xSrcTst.Is() )
+ if ( xSrcTst.is() )
{
sal_uInt8 aTestA[ 10 ];
bool bGetItAsOle = (sizeof(aTestA) == xSrcTst->ReadBytes(aTestA, sizeof(aTestA)));
if ( !bGetItAsOle )
{ // maybe there is a contents stream in here
xSrcTst = xObjStor->OpenSotStream( "Contents", StreamMode::READWRITE | StreamMode::NOCREATE );
- bGetItAsOle = (xSrcTst.Is() &&
+ bGetItAsOle = (xSrcTst.is() &&
sizeof(aTestA) == xSrcTst->ReadBytes(aTestA, sizeof(aTestA)));
}
if ( bGetItAsOle )
@@ -1899,13 +1899,13 @@ SdrObject* SdrPowerPointImport::ImportOLE( long nOLEId,
// object is not an own object
tools::SvRef<SotStorage> xTarget = SotStorage::OpenOLEStorage( pOe->pShell->GetStorage(), aNm, StreamMode::READWRITE );
- if ( xObjStor.Is() && xTarget.Is() )
+ if ( xObjStor.is() && xTarget.is() )
{
xObjStor->CopyTo( xTarget.get() );
if( !xTarget->GetError() )
xTarget->Commit();
}
- xTarget.Clear();
+ xTarget.clear();
uno::Reference < embed::XEmbeddedObject > xObj =
pOe->pShell->getEmbeddedObjectContainer().GetEmbeddedObject( aNm );
@@ -2016,15 +2016,15 @@ void SdrPowerPointImport::SeekOle( SfxObjectShell* pShell, sal_uInt32 nFilterOpt
{
tools::SvRef<SotStorage> xSource( new SotStorage( pBas, true ) );
tools::SvRef<SotStorage> xDest( new SotStorage( new SvMemoryStream(), true ) );
- if ( xSource.Is() && xDest.Is() )
+ if ( xSource.is() && xDest.is() )
{
// is this a visual basic storage ?
tools::SvRef<SotStorage> xSubStorage = xSource->OpenSotStorage( "VBA",
StreamMode::READWRITE | StreamMode::NOCREATE | StreamMode::SHARE_DENYALL );
- if( xSubStorage.Is() && ( SVSTREAM_OK == xSubStorage->GetError() ) )
+ if( xSubStorage.is() && ( SVSTREAM_OK == xSubStorage->GetError() ) )
{
tools::SvRef<SotStorage> xMacros = xDest->OpenSotStorage( "MACROS" );
- if ( xMacros.Is() )
+ if ( xMacros.is() )
{
SvStorageInfoList aList;
xSource->FillInfoList( &aList );
@@ -2043,13 +2043,13 @@ void SdrPowerPointImport::SeekOle( SfxObjectShell* pShell, sal_uInt32 nFilterOpt
if ( xDoc.is() )
{
tools::SvRef<SotStorage> xVBA = SotStorage::OpenOLEStorage( xDoc, SvxImportMSVBasic::GetMSBasicStorageName() );
- if ( xVBA.Is() && ( xVBA->GetError() == SVSTREAM_OK ) )
+ if ( xVBA.is() && ( xVBA->GetError() == SVSTREAM_OK ) )
{
tools::SvRef<SotStorage> xSubVBA = xVBA->OpenSotStorage( "_MS_VBA_Overhead" );
- if ( xSubVBA.Is() && ( xSubVBA->GetError() == SVSTREAM_OK ) )
+ if ( xSubVBA.is() && ( xSubVBA->GetError() == SVSTREAM_OK ) )
{
tools::SvRef<SotStorageStream> xOriginal = xSubVBA->OpenSotStream( "_MS_VBA_Overhead2" );
- if ( xOriginal.Is() && ( xOriginal->GetError() == SVSTREAM_OK ) )
+ if ( xOriginal.is() && ( xOriginal->GetError() == SVSTREAM_OK ) )
{
if ( nPersistPtr && ( nPersistPtr < nPersistPtrAnz ) )
{
diff --git a/filter/source/msfilter/svxmsbas2.cxx b/filter/source/msfilter/svxmsbas2.cxx
index 1ea178a..6eb7b99 100644
--- a/filter/source/msfilter/svxmsbas2.cxx
+++ b/filter/source/msfilter/svxmsbas2.cxx
@@ -35,7 +35,7 @@ ErrCode SvxImportMSVBasic::SaveOrDelMSVBAStorage( bool bSaveInto,
OUString aDstStgName( GetMSBasicStorageName() );
tools::SvRef<SotStorage> xVBAStg( SotStorage::OpenOLEStorage( xSrcRoot, aDstStgName,
StreamMode::READWRITE | StreamMode::NOCREATE | StreamMode::SHARE_DENYALL ) );
- if( xVBAStg.Is() && !xVBAStg->GetError() )
+ if( xVBAStg.is() && !xVBAStg->GetError() )
{
xVBAStg = nullptr;
if( bSaveInto )
@@ -67,7 +67,7 @@ ErrCode SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocSh)
uno::Reference < embed::XStorage > xSrcRoot( rDocSh.GetStorage() );
tools::SvRef<SotStorage> xVBAStg( SotStorage::OpenOLEStorage( xSrcRoot, GetMSBasicStorageName(),
StreamMode::READ | StreamMode::NOCREATE | StreamMode::SHARE_DENYALL ));
- return ( xVBAStg.Is() && !xVBAStg->GetError() )
+ return ( xVBAStg.is() && !xVBAStg->GetError() )
? ERRCODE_SVX_VBASIC_STORAGE_EXIST
: ERRCODE_NONE;
}
diff --git a/idl/inc/basobj.hxx b/idl/inc/basobj.hxx
index 44de027..cf20564 100644
--- a/idl/inc/basobj.hxx
+++ b/idl/inc/basobj.hxx
@@ -115,7 +115,7 @@ public:
const OString & GetName() const override
{
- return ( !aRef.Is()
+ return ( !aRef.is()
|| !SvMetaObject::GetName().isEmpty() )
? SvMetaObject::GetName()
: aRef->GetName();
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index 7b0e648..8e5e177 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -201,7 +201,7 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>&
// written any more.
// It is prohibited that Shell and SuperShell directly import the same
//class.
- if( GetMetaTypeType() == MetaTypeType::Shell && aSuperClass.Is() )
+ if( GetMetaTypeType() == MetaTypeType::Shell && aSuperClass.is() )
aSuperClass->FillClasses( rClassList );
// Write all attributes of the imported classes, as long as they have
@@ -221,7 +221,7 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>&
}
// only write superclass if no shell and not in the list
- if( GetMetaTypeType() != MetaTypeType::Shell && aSuperClass.Is() )
+ if( GetMetaTypeType() != MetaTypeType::Shell && aSuperClass.is() )
{
aSuperClass->InsertSlots( rList, rSuperList, rClassList, rPrefix, rBase );
}
@@ -245,7 +245,7 @@ void SvMetaClass::FillClasses( SvMetaClassList & rList )
}
// my superclass
- if( aSuperClass.Is() )
+ if( aSuperClass.is() )
aSuperClass->FillClasses( rList );
}
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 9ae31d4..f5ac534 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -105,12 +105,12 @@ OString SvMetaSlot::GetMangleName() const
/** reference disbandment **/
SvMetaType * SvMetaSlot::GetSlotType() const
{
- if( aSlotType.Is() || !GetRef() ) return aSlotType.get();
+ if( aSlotType.is() || !GetRef() ) return aSlotType.get();
return static_cast<SvMetaSlot *>(GetRef())->GetSlotType();
}
SvMetaAttribute * SvMetaSlot::GetMethod() const
{
- if( aMethod.Is() || !GetRef() ) return aMethod.get();
+ if( aMethod.is() || !GetRef() ) return aMethod.get();
return static_cast<SvMetaSlot *>(GetRef())->GetMethod();
}
const OString& SvMetaSlot::GetGroupId() const
@@ -272,7 +272,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
if( !bOk )
{
- if( !aSlotType.Is() )
+ if( !aSlotType.is() )
{
sal_uInt32 nTokPos = rInStm.Tell();
SvToken& rTok = rInStm.GetToken_Next();
@@ -281,7 +281,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
if( rInStm.ReadIf( '=' ) )
{
aSlotType = rBase.ReadKnownType( rInStm );
- if( !aSlotType.Is() )
+ if( !aSlotType.is() )
throw SvParseException( rInStm, "SlotType with unknown item type" );
if( !aSlotType->IsItem() )
throw SvParseException( rInStm, "the SlotType is not a item" );
@@ -291,7 +291,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
rInStm.Seek( nTokPos );
}
- if( !aMethod.Is() )
+ if( !aMethod.is() )
{
SvToken& rTok = rInStm.GetToken();
if( rTok.IsIdentifier() )
@@ -308,7 +308,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
}
rInStm.Seek( nTokPos );
}
- aMethod.Clear();
+ aMethod.clear();
}
}
}
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index a7b913d..6f3042b 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -39,7 +39,7 @@ SvMetaAttribute::SvMetaAttribute( SvMetaType * pType )
SvMetaType * SvMetaAttribute::GetType() const
{
- if( aType.Is() || !GetRef() ) return aType.get();
+ if( aType.is() || !GetRef() ) return aType.get();
return static_cast<SvMetaAttribute *>(GetRef())->GetType();
}
diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx
index d21e334..2172fb8 100644
--- a/idl/source/prj/parser.cxx
+++ b/idl/source/prj/parser.cxx
@@ -428,7 +428,7 @@ void SvIdlParser::ReadSlotAttribute( SvMetaSlot& rSlot )
if( bOk )
return;
- if( !rSlot.aSlotType.Is() )
+ if( !rSlot.aSlotType.is() )
{
sal_uInt32 nTokPos = rInStm.Tell();
SvToken& rTok = rInStm.GetToken_Next();
@@ -437,7 +437,7 @@ void SvIdlParser::ReadSlotAttribute( SvMetaSlot& rSlot )
if( rInStm.ReadIf( '=' ) )
{
rSlot.aSlotType = rBase.ReadKnownType( rInStm );
- if( !rSlot.aSlotType.Is() )
+ if( !rSlot.aSlotType.is() )
throw SvParseException( rInStm, "SlotType with unknown item type" );
if( !rSlot.aSlotType->IsItem() )
throw SvParseException( rInStm, "the SlotType is not a item" );
@@ -447,7 +447,7 @@ void SvIdlParser::ReadSlotAttribute( SvMetaSlot& rSlot )
rInStm.Seek( nTokPos );
}
- if( !rSlot.aMethod.Is() )
+ if( !rSlot.aMethod.is() )
{
SvToken& rTok = rInStm.GetToken();
if( rTok.IsIdentifier() )
@@ -464,7 +464,7 @@ void SvIdlParser::ReadSlotAttribute( SvMetaSlot& rSlot )
}
rInStm.Seek( nTokPos );
}
- rSlot.aMethod.Clear();
+ rSlot.aMethod.clear();
}
}
}
diff --git a/include/sfx2/lnkbase.hxx b/include/sfx2/lnkbase.hxx
index 5ad5729..ceca0fd 100644
--- a/include/sfx2/lnkbase.hxx
+++ b/include/sfx2/lnkbase.hxx
@@ -103,7 +103,7 @@ protected:
SvLinkSource* GetRealObject()
{
- if( !xObj.Is() )
+ if( !xObj.is() )
GetRealObject_();
return xObj.get();
}
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx
index c3d54e6..d11dcafb 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -555,7 +555,7 @@ namespace svt
// return sal_False prevents leaving the cell
virtual bool SaveRow(); // commit the current row
- virtual bool IsModified() const {return aController.Is() && aController->IsModified();}
+ virtual bool IsModified() const {return aController.is() && aController->IsModified();}
virtual CellController* GetController(long nRow, sal_uInt16 nCol);
virtual void InitController(CellControllerRef& rController, long nRow, sal_uInt16 nCol);
@@ -588,7 +588,7 @@ namespace svt
virtual ~EditBrowseBox() override;
virtual void dispose() override;
- bool IsEditing() const {return aController.Is();}
+ bool IsEditing() const {return aController.is();}
void InvalidateStatusCell(long nRow) {RowModified(nRow, 0);}
void InvalidateHandleColumn();
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index 51c3525..9a06bdd 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -564,7 +564,7 @@ protected:
OUString GetCurrentRowCellText(DbGridColumn* pCol,const DbGridRowRef& _rRow) const;
virtual void DeleteSelectedRows();
- static bool IsValid(const DbGridRowRef& _xRow) { return _xRow.Is() && _xRow->IsValid(); }
+ static bool IsValid(const DbGridRowRef& _xRow) { return _xRow.is() && _xRow->IsValid(); }
// row which is currently being appended
bool IsCurrentAppending() const;
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 97a5b36..2ec345c 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -56,7 +56,7 @@ public:
if (pObj != nullptr) pObj->ReleaseRef();
}
- void Clear()
+ void clear()
{
if (pObj != nullptr) {
T * pRefObj = pObj;
@@ -88,9 +88,9 @@ public:
return *this;
}
- bool Is() const { return pObj != nullptr; }
+ bool is() const { return pObj != nullptr; }
- explicit operator bool() const { return Is(); }
+ explicit operator bool() const { return is(); }
T * get() const { return pObj; }
@@ -219,12 +219,13 @@ public:
{ if( pObj ) _xHdl = pObj->GetHdl(); }
inline SvCompatWeakRef& operator = ( T * pObj )
{ _xHdl = pObj ? pObj->GetHdl() : nullptr; return *this; }
- inline bool Is() const
- { return _xHdl.Is() && _xHdl->GetObj(); }
+ inline bool is() const
+ { return _xHdl.is() && _xHdl->GetObj(); }
+ explicit operator bool() const { return is(); }
inline T* operator -> () const
- { return _xHdl.Is() ? _xHdl->GetObj() : nullptr; }
+ { return _xHdl.is() ? _xHdl->GetObj() : nullptr; }
inline operator T* () const
- { return _xHdl.Is() ? _xHdl->GetObj() : nullptr; }
+ { return _xHdl.is() ? _xHdl->GetObj() : nullptr; }
};
#endif
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx
index bb1ed9c..b32e696 100644
--- a/oox/source/ole/olehelper.cxx
+++ b/oox/source/ole/olehelper.cxx
@@ -468,7 +468,7 @@ MSConvertOCXControls::ReadOCXCtlsStream( tools::SvRef<SotStorageStream>& rSrc1,
sal_Int32 nPos,
sal_Int32 nStreamSize)
{
- if ( rSrc1.Is() )
+ if ( rSrc1.is() )
{
BinaryXInputStream aCtlsStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *rSrc1 ) ), true );
aCtlsStrm.seek( nPos );
@@ -516,7 +516,7 @@ bool MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rI
bool MSConvertOCXControls::ReadOCXStorage( tools::SvRef<SotStorage>& xOleStg,
Reference< XFormComponent > & rxFormComp )
{
- if ( xOleStg.Is() )
+ if ( xOleStg.is() )
{
tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream( "\3OCXNAME");
BinaryXInputStream aNameStream( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pNameStream ) ), true );
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index d315e80..ff0ea2d 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -443,7 +443,7 @@ bool ORptFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
tools::SvRef<SfxMedium> pMedium = new SfxMedium(
sFileName, ( StreamMode::READ | StreamMode::NOCREATE ) );
- if( pMedium.Is() )
+ if( pMedium.is() )
{
try
{
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index 695e2f2..1922e67 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -486,7 +486,7 @@ bool OFieldExpressionControl::SaveModified()
m_pParent->m_pController->getUndoManager().LeaveListAction();
}
- if ( Controller().Is() )
+ if ( Controller().is() )
Controller()->ClearModified();
if ( GetRowCount() == m_pParent->getGroups()->getCount() )
{
diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx
index 1be7cf6..04e7c59 100644
--- a/sc/qa/unit/bugfix-test.cxx
+++ b/sc/qa/unit/bugfix-test.cxx
@@ -61,7 +61,7 @@ void ScFiltersTest::testTdf64229()
xDocSh->DoHardRecalc(true);
- CPPUNIT_ASSERT_MESSAGE("Failed to load fdo64229b.*", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo64229b.*", xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
OUString aCSVFileName;
@@ -79,7 +79,7 @@ void ScFiltersTest::testTdf36933()
xDocSh->DoHardRecalc(true);
- CPPUNIT_ASSERT_MESSAGE("Failed to load fdo36933test.*", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo36933test.*", xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
OUString aCSVFileName;
@@ -97,7 +97,7 @@ void ScFiltersTest::testTdf43700()
xDocSh->DoHardRecalc(true);
- CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43700test.*", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43700test.*", xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
OUString aCSVFileName;
@@ -115,7 +115,7 @@ void ScFiltersTest::testTdf43534()
xDocSh->DoHardRecalc(true);
- CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43534test.*", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43534test.*", xDocSh.is());
// ScDocument& rDoc = xDocSh->GetDocument();
OUString aCSVFileName;
diff --git a/sc/qa/unit/copy_paste_test.cxx b/sc/qa/unit/copy_paste_test.cxx
index 1a27357..9420421 100644
--- a/sc/qa/unit/copy_paste_test.cxx
+++ b/sc/qa/unit/copy_paste_test.cxx
@@ -56,7 +56,7 @@ void ScCopyPasteTest::testCopyPasteXLS()
// 1. Open the document
ScDocShellRef xDocSh = loadDoc("chartx2.", FORMAT_XLS);
- CPPUNIT_ASSERT_MESSAGE("Failed to load chartx2.xls.", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load chartx2.xls.", xDocSh.is());
uno::Reference< frame::XModel2 > xModel2 ( xDocSh->GetModel(), UNO_QUERY );
CPPUNIT_ASSERT( xModel2.is() );
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 13b3239..4354cc4 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -118,7 +118,7 @@ bool ScFiltersTest::load(const OUString &rFilter, const OUString &rURL,
{
ScDocShellRef xDocShRef = ScBootstrapFixture::load(rURL, rFilter, rUserData,
OUString(), nFilterFlags, nClipboardID, nFilterVersion );
- bool bLoaded = xDocShRef.Is();
+ bool bLoaded = xDocShRef.is();
//reference counting of ScDocShellRef is very confused.
if (bLoaded)
xDocShRef->DoClose();
@@ -187,7 +187,7 @@ void ScFiltersTest::testRangeNameODS()
{
ScDocShellRef xDocSh = loadDoc("named-ranges-global.", FORMAT_ODS);
- CPPUNIT_ASSERT_MESSAGE("Failed to load named-ranges-global.*", xDocSh.Is());
+ CPPUNIT_ASSERT_MESSAGE("Failed to load named-ranges-global.*", xDocSh.is());
xDocSh->DoHardRecalc(true);
@@ -320,7 +320,7 @@ void ScFiltersTest::testContentXLSB()
void ScFiltersTest::testContentXLS_XML()
{
ScDocShellRef xDocSh = loadDoc("universal-content.", FORMAT_XLS_XML);
- CPPUNIT_ASSERT(xDocSh.Is());
+ CPPUNIT_ASSERT(xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
testContentImpl(rDoc, FORMAT_XLS_XML);
@@ -330,7 +330,7 @@ void ScFiltersTest::testContentXLS_XML()
void ScFiltersTest::testSharedFormulaXLS()
{
ScDocShellRef xDocSh = loadDoc("shared-formula/basic.", FORMAT_XLS);
- CPPUNIT_ASSERT(xDocSh.Is());
+ CPPUNIT_ASSERT(xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
xDocSh->DoHardRecalc(true);
// Check the results of formula cells in the shared formula range.
@@ -354,7 +354,7 @@ void ScFiltersTest::testSharedFormulaXLS()
// to handle these wrong ranges that Excel stores.
xDocSh = loadDoc("shared-formula/gap.", FORMAT_XLS);
- CPPUNIT_ASSERT(xDocSh.Is());
+ CPPUNIT_ASSERT(xDocSh.is());
ScDocument& rDoc2 = xDocSh->GetDocument();
rDoc2.CalcAll();
@@ -556,7 +556,7 @@ void testEnhancedProtectionImpl( ScDocument& rDoc )
void ScFiltersTest::testEnhancedProtectionXLS()
{
ScDocShellRef xDocSh = loadDoc("enhanced-protection.", FORMAT_XLS);
- CPPUNIT_ASSERT(xDocSh.Is());
+ CPPUNIT_ASSERT(xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
testEnhancedProtectionImpl( rDoc);
@@ -567,7 +567,7 @@ void ScFiltersTest::testEnhancedProtectionXLS()
void ScFiltersTest::testEnhancedProtectionXLSX()
{
ScDocShellRef xDocSh = loadDoc("enhanced-protection.", FORMAT_XLSX);
- CPPUNIT_ASSERT(xDocSh.Is());
+ CPPUNIT_ASSERT(xDocSh.is());
ScDocument& rDoc = xDocSh->GetDocument();
testEnhancedProtectionImpl( rDoc);
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list