[Libreoffice-commits] .: vcl/source

Joseph Powers jpowers at kemper.freedesktop.org
Wed Feb 23 19:02:45 PST 2011


 vcl/source/app/svdata.cxx |   44 +++++++++++++++++++++++---------------------
 1 file changed, 23 insertions(+), 21 deletions(-)

New commits:
commit bc99bf60638c286922b09ba5f33166be96c21472
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Wed Feb 23 19:02:41 2011 -0800

    Add missing #include <boost/ptr_container/ptr_vector.hpp>

diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index a3ed198..9b5c380 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -30,6 +30,8 @@
 #include "precompiled_vcl.hxx"
 #include <string.h>
 
+#include <boost/ptr_container/ptr_vector.hpp>
+
 #include <svsys.h>
 #include <vcl/salinst.hxx>
 #include <vcl/salframe.hxx>
@@ -75,7 +77,7 @@ using namespace rtl;
 
 namespace
 {
-    struct private_aImplSVData : 
+    struct private_aImplSVData :
         public rtl::Static<ImplSVData, private_aImplSVData> {};
 }
 
@@ -178,7 +180,7 @@ Window* ImplGetDefaultWindow()
 
     // First test if we already have a default window.
     // Don't only place a single if..else inside solar mutex lockframe
-    // because then we might have to wait for the solar mutex what is not neccessary 
+    // because then we might have to wait for the solar mutex what is not neccessary
     // if we already have a default window.
 
     if ( !pSVData->mpDefaultWin )
@@ -211,7 +213,7 @@ ResMgr* ImplGetResMgr()
     {
         ::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale();
         pSVData->mpResMgr = ResMgr::SearchCreateResMgr( VCL_CREATERESMGR_NAME( vcl ), aLocale );
-        
+
         static bool bMessageOnce = false;
         if( !pSVData->mpResMgr && ! bMessageOnce )
         {
@@ -232,7 +234,7 @@ ResId VclResId( sal_Int32 nId )
     ResMgr* pMgr = ImplGetResMgr();
     if( ! pMgr )
         throw std::bad_alloc();
-    
+
     return ResId( nId, *pMgr );
 }
 
@@ -251,7 +253,7 @@ public:
     AccessBridgeCurrentContext(
         const com::sun::star::uno::Reference< com::sun::star::uno::XCurrentContext > &context ) :
         m_prevContext( context ) {}
-    
+
     // XCurrentContext
     virtual com::sun::star::uno::Any SAL_CALL getValueByName( const rtl::OUString& Name )
         throw (com::sun::star::uno::RuntimeException);
@@ -307,7 +309,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
 
             if( xFactory.is() )
             {
-                Reference< XExtendedToolkit > xToolkit = 
+                Reference< XExtendedToolkit > xToolkit =
                     Reference< XExtendedToolkit >(Application::GetVCLToolkit(), UNO_QUERY);
 
                 Sequence< Any > arguments(1);
@@ -317,7 +319,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
                 // for a disabled user. Use native message boxes which are accessible without java support.
                 // No need to do this when activated by Tools-Options dialog ..
                 if( bAllowCancel )
-                { 
+                {
                     // customize the java-not-available-interaction-handler entry within the
                     // current context when called at startup.
                     com::sun::star::uno::ContextLayer layer(
@@ -325,22 +327,22 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
 
                     pSVData->mxAccessBridge = xFactory->createInstanceWithArguments(
                             OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.accessibility.AccessBridge")),
-                            arguments 
+                            arguments
                         );
                 }
                 else
                 {
                     pSVData->mxAccessBridge = xFactory->createInstanceWithArguments(
                             OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.accessibility.AccessBridge")),
-                            arguments 
+                            arguments
                         );
                 }
-                    
+
                 if( !pSVData->mxAccessBridge.is() )
                     bSuccess = false;
             }
         }
-        
+
         return bSuccess;
     }
 
@@ -365,7 +367,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
             if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
                 rCancelled = TRUE;
         }
-        
+
         return false;
     }
 
@@ -390,7 +392,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
             if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
                 rCancelled = TRUE;
         }
-        
+
         return false;
     }
 
@@ -415,7 +417,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
             if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
                 rCancelled = TRUE;
         }
-        
+
         return false;
     }
 
@@ -440,7 +442,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
             if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
                 rCancelled = TRUE;
         }
-        
+
         return false;
     }
 
@@ -473,8 +475,8 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
                     aMessage += String(ResId(SV_ACCESSERROR_OK_CANCEL_MSG, *pResMgr));
 
                     int ret = ImplGetSalSystem()->ShowNativeMessageBox(
-                        aTitle, 
-                        ReplaceJavaErrorMessages(aMessage), 
+                        aTitle,
+                        ReplaceJavaErrorMessages(aMessage),
                         SALSYSTEM_SHOWNATIVEMSGBOX_BTNCOMBI_OK_CANCEL,
                         SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL);
 
@@ -487,14 +489,14 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
                     // The user tried to activate accessibility support using Tools-Options dialog,
                     // so we don't offer to terminate here !
                     ImplGetSalSystem()->ShowNativeMessageBox(
-                        aTitle, 
-                        ReplaceJavaErrorMessages(aMessage), 
+                        aTitle,
+                        ReplaceJavaErrorMessages(aMessage),
                         SALSYSTEM_SHOWNATIVEMSGBOX_BTNCOMBI_OK,
                         SALSYSTEM_SHOWNATIVEMSGBOX_BTN_OK);
                 }
             }
         }
-        
+
         return false;
     }
 


More information about the Libreoffice-commits mailing list