1. mst
  2. ooo340

Commits

npower Developer  committed 73fa462

vbasupportdev300_HG: warning removal filter/source/msfilter sw/source/ui/vba

  • Participants
  • Parent commits c0127c9
  • Branches default

Comments (0)

Files changed (12)

File filter/source/msfilter/msocximex.cxx

View file
  • Ignore whitespace
         return sal_False;
     
     uno::Any aTmp;
-    sal_Int32 nFactor = 3528; 
 
     if ( !bVBA  )
     {
     catch( uno::Exception& e )
     {
     }
-    sal_Int32 nFactor( 3528 );
     if ( !bVBA )
     {
         aTmp <<= sal_Int32((nWidth * 2) / 100); 

File sw/source/filter/ww8/ww8par.cxx

View file
  • Ignore whitespace
 
         String s1(CREATE_CONST_ASC("Macros"));
         String s2(CREATE_CONST_ASC("VBA"));
-        int nRet = aVBasic.Import( s1, s2, ! pVBAFlags->IsLoadWordBasicCode() );
+        aVBasic.Import( s1, s2, ! pVBAFlags->IsLoadWordBasicCode() );
         lcl_createTemplateToProjectEntry( xPrjNameCache, aURL, aVBasic.GetVBAProjectName() );
         // Read toolbars & menus
         SvStorageStreamRef refMainStream = rRoot->OpenSotStream( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("WordDocument") ) );

File sw/source/filter/ww8/ww8toolbar.cxx

View file
  • Ignore whitespace
 
 Customization* CTBWrapper::GetCustomizaton( sal_Int16 index )
 {
-    if ( index < 0 || index >= rCustomizations.size() )
+    if ( index < 0 || index >= static_cast<sal_Int16>( rCustomizations.size() ) )
         return NULL;
     return &rCustomizations[ index ]; 
 }
             bytesToRead = cbDTBC - ( pS->Tell() - nStart ); 
         } while ( bytesToRead > 0 );
     }
-    if ( pS->Tell() != nExpectedPos )
+    if ( static_cast< long >( pS->Tell() ) != nExpectedPos )
     {
         // Strange error condition, shouldn't happen ( but does in at least
         // one test document ) In the case where it happens the TBC & 

File sw/source/ui/vba/vbacell.cxx

View file
  • Ignore whitespace
     xRow->setHeightRule( _heightrule );
 }
 
-void SAL_CALL SwVbaCell::SetWidth( float width, sal_Int32 rulestyle ) throw (css::uno::RuntimeException)
+void SAL_CALL SwVbaCell::SetWidth( float width, sal_Int32 /*rulestyle*/ ) throw (css::uno::RuntimeException)
 {
     // FIXME: handle the argument: rulestyle
     setWidth( width );

File sw/source/ui/vba/vbacolumns.cxx

View file
  • Ignore whitespace
 
 class ColumnsEnumWrapper : public EnumerationHelper_BASE
 {
+    uno::WeakReference< XHelperInterface > mxParent;
+    uno::Reference< uno::XComponentContext > mxContext;
     uno::Reference< text::XTextTable > mxTextTable;
     uno::Reference< container::XIndexAccess > mxIndexAccess;
-    uno::WeakReference< XHelperInterface > mxParent;
-    uno::Reference< uno::XComponentContext > mxContext;
 	sal_Int32 nIndex;
 
 public:

File sw/source/ui/vba/vbadocument.cxx

View file
  • Ignore whitespace
     return uno::makeAny( xCol );
 }
 
+#ifdef FIELDPATCH
 uno::Any SAL_CALL
 SwVbaDocument::FormFields( const uno::Any& index ) throw (uno::RuntimeException)
 {
-#ifdef FIELDPATCH
     uno::Reference< XCollection > xCol( new SwVbaFormFields( this, mxContext, getModel() ) );
     if ( index.hasValue() )
         return xCol->Item( index, uno::Any() );
 #else
+uno::Any SAL_CALL
+SwVbaDocument::FormFields( const uno::Any& /*index*/ ) throw (uno::RuntimeException)
+{
     uno::Reference< XCollection > xCol;
 #endif
     return uno::makeAny( xCol );
     else
         osl::FileBase::getFileURLFromSystemPath( sTemplate, aURL );
 
-    SwDocShell* pDocShell = word::getDocShell( getModel() );
     uno::Reference< word::XTemplate > xTemplate;
     uno::Reference< document::XDocumentInfoSupplier > xDocInfoSupp( getModel(), uno::UNO_QUERY_THROW );
     uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSupp( xDocInfoSupp->getDocumentInfo(), uno::UNO_QUERY_THROW );
     return word::WdProtectionType::wdNoProtection;
 }
 
-void SAL_CALL SwVbaDocument::setProtectionType( ::sal_Int32 _protectiontype ) throw (css::uno::RuntimeException)
+void SAL_CALL SwVbaDocument::setProtectionType( ::sal_Int32 /*_protectiontype*/ ) throw (css::uno::RuntimeException)
 {
     //TODO
 }
     return sal_False;
 }
 
-void SAL_CALL SwVbaDocument::setUpdateStylesOnOpen( ::sal_Bool _updatestylesonopen ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaDocument::setUpdateStylesOnOpen( ::sal_Bool /*_updatestylesonopen*/ ) throw (uno::RuntimeException)
 {
     //TODO
 }
     return 0;
 }
 
-void SAL_CALL SwVbaDocument::setHyphenationZone( ::sal_Int32 _hyphenationzone ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaDocument::setHyphenationZone( ::sal_Int32 /*_hyphenationzone*/ ) throw (uno::RuntimeException)
 {
     //TODO
 }
     xParaProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ParaHyphenationMaxHyphens")), uno::makeAny( nHyphensLimit ) );
 }
 
-void SAL_CALL SwVbaDocument::Protect( ::sal_Int32 Type, const uno::Any& NOReset, const uno::Any& Password, const uno::Any& UseIRM, const uno::Any& EnforceStyleLock ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaDocument::Protect( ::sal_Int32 /*Type*/, const uno::Any& /*NOReset*/, const uno::Any& /*Password*/, const uno::Any& /*UseIRM*/, const uno::Any& /*EnforceStyleLock*/ ) throw (uno::RuntimeException)
 {
     // Seems not support in Writer
     // VbaDocumentBase::Protect( Password );
 }
 
-void SAL_CALL SwVbaDocument::PrintOut( const uno::Any& Background, const uno::Any& Append, const uno::Any& Range, const uno::Any& OutputFileName, const uno::Any& From, const uno::Any& To, const uno::Any& Item, const uno::Any& Copies, const uno::Any& Pages, const uno::Any& PageType, const uno::Any& PrintToFile, const uno::Any& Collate, const uno::Any& FileName, const uno::Any& ActivePrinterMacGX, const uno::Any& ManualDuplexPrint, const uno::Any& PrintZoomColumn, const uno::Any& PrintZoomRow, const uno::Any& PrintZoomPaperWidth, const uno::Any& PrintZoomPaperHeight ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaDocument::PrintOut( const uno::Any& /*Background*/, const uno::Any& /*Append*/, const uno::Any& /*Range*/, const uno::Any& /*OutputFileName*/, const uno::Any& /*From*/, const uno::Any& /*To*/, const uno::Any& /*Item*/, const uno::Any& /*Copies*/, const uno::Any& /*Pages*/, const uno::Any& /*PageType*/, const uno::Any& /*PrintToFile*/, const uno::Any& /*Collate*/, const uno::Any& /*FileName*/, const uno::Any& /*ActivePrinterMacGX*/, const uno::Any& /*ManualDuplexPrint*/, const uno::Any& /*PrintZoomColumn*/, const uno::Any& /*PrintZoomRow*/, const uno::Any& /*PrintZoomPaperWidth*/, const uno::Any& /*PrintZoomPaperHeight*/ ) throw (uno::RuntimeException)
 {
     //TODO
 }

File sw/source/ui/vba/vbaeventshelper.cxx

View file
  • Ignore whitespace
     return sMacroResolvedInfo.ResolvedMacro();
 }
 
-sal_Bool SwVbaEventsHelper::processVbaEvent( const sal_Int32 nEventId, const uno::Sequence< uno::Any >& rArgs )
+sal_Bool SwVbaEventsHelper::processVbaEvent( const sal_Int32 nEventId, const uno::Sequence< uno::Any >& /*rArgs*/ )
 {
 	sal_Bool result = sal_False;
 	uno::Sequence< uno::Any > aArgs;

File sw/source/ui/vba/vbalistlevel.cxx

View file
  • Ignore whitespace
     return rtl::OUString();
 }
 
-void SAL_CALL SwVbaListLevel::setLinkedStyle( const ::rtl::OUString& _linkedstyle ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaListLevel::setLinkedStyle( const ::rtl::OUString& /*_linkedstyle*/ ) throw (uno::RuntimeException)
 {
     // TODO: 
 }
     return rtl::OUString();
 }
 
-void SAL_CALL SwVbaListLevel::setNumberFormat( const ::rtl::OUString& _numberformat ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaListLevel::setNumberFormat( const ::rtl::OUString& /*_numberformat*/ ) throw (uno::RuntimeException)
 {
     // TODO::
 }
     return 0;
 }
 
-void SAL_CALL SwVbaListLevel::setResetOnHigher( ::sal_Int32 _resetonhigher ) throw (uno::RuntimeException)
+void SAL_CALL SwVbaListLevel::setResetOnHigher( ::sal_Int32 /*_resetonhigher*/ ) throw (uno::RuntimeException)
 {
     //seems not support?
 }

File sw/source/ui/vba/vbarows.cxx

View file
  • Ignore whitespace
 
 class RowsEnumWrapper : public EnumerationHelper_BASE
 {
+    uno::WeakReference< XHelperInterface > mxParent;
+    uno::Reference< uno::XComponentContext > mxContext;
     uno::Reference< text::XTextTable > mxTextTable;
     uno::Reference< container::XIndexAccess > mxIndexAccess;
-    uno::WeakReference< XHelperInterface > mxParent;
-    uno::Reference< uno::XComponentContext > mxContext;
 	sal_Int32 nIndex;
 
 public:

File sw/source/ui/vba/vbastyles.cxx

View file
  • Ignore whitespace
     { 0, 0, 0 }
 };
 
+#ifdef FUTURE // seems this isn't used
 static uno::Sequence< rtl::OUString > getStyleTypes()
 {
     uno::Sequence< rtl::OUString > aRet(3);
     pArray[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("NumberingStyles") );
     return aRet;
 }
+#endif
 
 typedef ::cppu::WeakImplHelper1< container::XEnumeration > StyleEnumeration_BASE;
 typedef ::cppu::WeakImplHelper3< container::XNameAccess, container::XIndexAccess, container::XEnumerationAccess > StyleCollectionHelper_BASE;

File sw/source/ui/vba/vbatablehelper.cxx

View file
  • Ignore whitespace
     return pStart;
 }
 
-void SwVbaTableHelper::InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, BOOL bCurRowOnly )
+void SwVbaTableHelper::InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, BOOL /*bCurRowOnly*/ )
 {
 	rCols.SetLeftMin ( 0 );
 	rCols.SetLeft    ( 0 );

File sw/source/ui/vba/vbatablesofcontents.cxx

View file
  • Ignore whitespace
 }
 
 uno::Reference< word::XTableOfContents > SAL_CALL 
-SwVbaTablesOfContents::Add( const uno::Reference< word::XRange >& Range, const uno::Any& UseHeadingStyles, const uno::Any& UpperHeadingLevel, const uno::Any& LowerHeadingLevel, const uno::Any& UseFields, const uno::Any& TableID, const uno::Any& RightAlignPageNumbers, const uno::Any& IncludePageNumbers, const uno::Any& AddedStyles, const uno::Any& UseHyperlinks, const uno::Any& HidePageNumbersInWeb, const uno::Any& UseOutlineLevels ) throw (uno::RuntimeException)
+SwVbaTablesOfContents::Add( const uno::Reference< word::XRange >& Range, const uno::Any& /*UseHeadingStyles*/, const uno::Any& /*UpperHeadingLevel*/, const uno::Any& LowerHeadingLevel, const uno::Any& UseFields, const uno::Any& /*TableID*/, const uno::Any& /*RightAlignPageNumbers*/, const uno::Any& /*IncludePageNumbers*/, const uno::Any& /*AddedStyles*/, const uno::Any& /*UseHyperlinks*/, const uno::Any& /*HidePageNumbersInWeb*/, const uno::Any& /*UseOutlineLevels*/ ) throw (uno::RuntimeException)
 {
     uno::Reference< lang::XMultiServiceFactory > xDocMSF( mxTextDocument, uno::UNO_QUERY_THROW );
     uno::Reference< text::XDocumentIndex > xDocumentIndex( xDocMSF->createInstance(  rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.ContentIndex")) ), uno::UNO_QUERY_THROW );