diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-22 14:25:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-23 11:11:51 +0200 |
commit | e32da7783686f088fa83cdae209bcf1c81d82f1e (patch) | |
tree | e1ee63bcb91bcbce5bcfa27c9244407377a57f11 /oox/source/ole/olehelper.cxx | |
parent | lotuswordpro: sal_Bool->bool (diff) | |
download | core-e32da7783686f088fa83cdae209bcf1c81d82f1e.tar.gz core-e32da7783686f088fa83cdae209bcf1c81d82f1e.zip |
oox: sal_Bool->bool
Change-Id: Icddec34e91305cfc3f9d852472bb86eab4d8cb26
Diffstat (limited to 'oox/source/ole/olehelper.cxx')
-rw-r--r-- | oox/source/ole/olehelper.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 24d6e430229d..8b393ea0dc91 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -487,7 +487,7 @@ MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rInStrm return rxFormComp.is(); } -sal_Bool +bool MSConvertOCXControls::ReadOCXCtlsStream( SotStorageStreamRef& rSrc1, Reference< XFormComponent > & rxFormComp, sal_Int32 nPos, sal_Int32 nStreamSize) @@ -499,7 +499,7 @@ MSConvertOCXControls::ReadOCXCtlsStream( SotStorageStreamRef& rSrc1, Reference< OUString aStrmClassId = ::oox::ole::OleHelper::importGuid( aCtlsStrm ); return importControlFromStream( aCtlsStrm, rxFormComp, aStrmClassId, nStreamSize ); } - return sal_False; + return false; } bool MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rInStrm, Reference< XFormComponent >& rxFormComp, const OUString& rStrmClassId, @@ -537,7 +537,7 @@ bool MSConvertOCXControls::importControlFromStream( ::oox::BinaryInputStream& rI return rxFormComp.is(); } -sal_Bool MSConvertOCXControls::ReadOCXStorage( SotStorageRef& xOleStg, +bool MSConvertOCXControls::ReadOCXStorage( SotStorageRef& xOleStg, Reference< XFormComponent > & rxFormComp ) { if ( xOleStg.Is() ) @@ -568,14 +568,14 @@ sal_Bool MSConvertOCXControls::ReadOCXStorage( SotStorageRef& xOleStg, return rxFormComp.is(); } } - return sal_False; + return false; } -sal_Bool MSConvertOCXControls::WriteOCXExcelKludgeStream( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& rxModel, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutStrm, const com::sun::star::uno::Reference< com::sun::star::awt::XControlModel > &rxControlModel, const com::sun::star::awt::Size& rSize,OUString &rName ) +bool MSConvertOCXControls::WriteOCXExcelKludgeStream( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& rxModel, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutStrm, const com::sun::star::uno::Reference< com::sun::star::awt::XControlModel > &rxControlModel, const com::sun::star::awt::Size& rSize,OUString &rName ) { OleFormCtrlExportHelper exportHelper( comphelper::getProcessComponentContext(), rxModel, rxControlModel ); if ( !exportHelper.isValid() ) - return sal_False; + return false; rName = exportHelper.getTypeName(); SvGlobalName aName; OUString sId = exportHelper.getGUID(); @@ -583,10 +583,10 @@ sal_Bool MSConvertOCXControls::WriteOCXExcelKludgeStream( const ::com::sun::star BinaryXOutputStream xOut( xOutStrm, false ); OleHelper::exportGuid( xOut, aName ); exportHelper.exportControl( xOutStrm, rSize ); - return sal_True; + return true; } -sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxModel, SotStorageRef &xOleStg, +bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxModel, SotStorageRef &xOleStg, const Reference< XControlModel > &rxControlModel, const com::sun::star::awt::Size& rSize, OUString &rName) { @@ -595,7 +595,7 @@ sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxMode OleFormCtrlExportHelper exportHelper( comphelper::getProcessComponentContext(), rxModel, rxControlModel ); if ( !exportHelper.isValid() ) - return sal_False; + return false; OUString sId = exportHelper.getGUID(); aName.MakeId(sId); @@ -618,7 +618,7 @@ sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxMode Reference< XOutputStream > xOut = new utl::OSeekableOutputStreamWrapper( *pContents ); exportHelper.exportControl( xOut, rSize ); } - return sal_True; + return true; } } // namespace ole |