diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-03-18 15:55:08 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-03-18 15:55:08 +0100 |
commit | 4fdd55226d2972e3a256426db3122ac23b0615c6 (patch) | |
tree | 23f5b3a68382d6d3b8db0cb5e2537ed74a228d7c /vcl/workben | |
parent | c3d5444d84e18fa82235bb9d419861ac5e54f544 (diff) | |
parent | e1028d9225bc47922c387aa462887c7643bc6c40 (diff) |
Merge remote-tracking branch 'origin/integration/dev300_m101'
Conflicts:
comphelper/source/misc/servicedecl.cxx
i18npool/source/breakiterator/breakiteratorImpl.cxx
l10ntools/scripts/localize.pl
svl/source/items/itemset.cxx
svl/source/memtools/svarray.cxx
svl/source/numbers/zformat.cxx
svtools/source/brwbox/brwbox1.cxx
tools/source/stream/strmwnt.cxx
vcl/inc/vcl/graphite_adaptors.hxx
vcl/inc/vcl/graphite_layout.hxx
vcl/inc/vcl/graphite_serverfont.hxx
vcl/source/control/imgctrl.cxx
vcl/source/gdi/outdev.cxx
vcl/source/gdi/outdev3.cxx
vcl/source/glyphs/gcach_ftyp.cxx
vcl/source/glyphs/graphite_adaptors.cxx
vcl/source/glyphs/graphite_layout.cxx
vcl/source/window/winproc.cxx
vcl/unx/source/fontmanager/fontconfig.cxx
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/makefile.mk | 24 | ||||
-rw-r--r-- | vcl/workben/outdevgrind.cxx | 44 | ||||
-rw-r--r-- | vcl/workben/svdem.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/svpclient.cxx | 10 | ||||
-rw-r--r-- | vcl/workben/svptest.cxx | 4 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 2 |
6 files changed, 45 insertions, 41 deletions
diff --git a/vcl/workben/makefile.mk b/vcl/workben/makefile.mk index 66bca942f74c..d52737507a20 100644 --- a/vcl/workben/makefile.mk +++ b/vcl/workben/makefile.mk @@ -34,6 +34,8 @@ TARGETTYPE=GUI ENABLE_EXCEPTIONS=TRUE +my_components = i18npool i18nsearch + # --- Settings ----------------------------------------------------- .INCLUDE : settings.mk @@ -132,16 +134,18 @@ APP5STDLIBS+=-lsocket .ENDIF .INCLUDE : target.mk -.IF "$(L10N_framework)"=="" -ALLTAR : $(BIN)$/applicat.rdb +ALLTAR : $(BIN)/applicat.rdb $(BIN)/types.rdb +$(BIN)/applicat.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ + $(MISC)/applicat.input $(my_components:^"$(SOLARXMLDIR)/":+".component") + $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ + $(SOLARENV)/bin/packcomponents.xslt $(MISC)/applicat.input -$(BIN)$/applicat.rdb : makefile.mk $(UNOUCRRDB) - rm -f $@ - $(GNUCOPY) $(UNOUCRRDB) $@ - cd $(BIN) && \ - $(REGCOMP) -register -r applicat.rdb \ - -c i18nsearch.uno$(DLLPOST) \ - -c i18npool.uno$(DLLPOST) -.ENDIF +$(MISC)/applicat.input : + echo \ + '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ + > $@ + +$(BIN)/types.rdb : $(SOLARBINDIR)/types.rdb + $(COPY) $< $@ diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index 0d38ff519987..e86db3ed7821 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -75,7 +75,7 @@ class GrindApp : public Application { public: virtual int Main(); - virtual USHORT Exception( USHORT nError ); + virtual sal_uInt16 Exception( sal_uInt16 nError ); }; class TestWindow : public Dialog @@ -154,7 +154,7 @@ void setupMethodStubs( functor_vector_type& res ) const Wallpaper aWallpaper( aWhiteColor ); GDIMetaFile aMtf; - aMtf.AddAction( new MetaFillColorAction(Color(COL_RED),TRUE) ); + aMtf.AddAction( new MetaFillColorAction(Color(COL_RED),sal_True) ); aMtf.AddAction( new MetaRectAction(aRect) ); /* void DrawText( const Point& rStartPt, const XubString& rStr, @@ -166,7 +166,7 @@ void setupMethodStubs( functor_vector_type& res ) // boost::bind( // &OutputDevice::DrawText, // _1, -// aPt1, aString, (USHORT)0, aString.Len(), (MetricVector*)0, (String*)0, (vcl::ITextLayout*)0 )); +// aPt1, aString, (sal_uInt16)0, aString.Len(), (MetricVector*)0, (String*)0, (vcl::ITextLayout*)0 )); /* void DrawTextArray( const Point& rStartPt, const XubString& rStr, const sal_Int32* pDXAry = NULL, @@ -178,7 +178,7 @@ void setupMethodStubs( functor_vector_type& res ) boost::bind( &OutputDevice::DrawTextArray, _1, - aPt1, aString, (const sal_Int32*)0, (USHORT)0, aString.Len() )); + aPt1, aString, (const sal_Int32*)0, (sal_uInt16)0, aString.Len() )); /* void DrawPixel( const Point& rPt, const Color& rColor ); */ add(res, @@ -257,12 +257,12 @@ void setupMethodStubs( functor_vector_type& res ) aRect )); /* void DrawRect( const Rectangle& rRect, - ULONG nHorzRount, ULONG nVertRound ); + sal_uLong nHorzRount, sal_uLong nVertRound ); */ add(res, "DrawRect(round corners)", boost::bind( - (void (OutputDevice::*)( const Rectangle&, ULONG nHorzRount, ULONG nVertRound ))( + (void (OutputDevice::*)( const Rectangle&, sal_uLong nHorzRount, sal_uLong nVertRound ))( &OutputDevice::DrawRect), _1, aRect2, @@ -353,14 +353,14 @@ void setupMethodStubs( functor_vector_type& res ) /* void CopyArea( const Point& rDestPt, const Point& rSrcPt, const Size& rSrcSize, - USHORT nFlags = 0 ); + sal_uInt16 nFlags = 0 ); */ add(res, "CopyArea", boost::bind( &OutputDevice::CopyArea, _1, - aPt1,aPt3,aRect2.GetSize(),(USHORT)0 )); + aPt1,aPt3,aRect2.GetSize(),(sal_uInt16)0 )); /* void DrawBitmap( const Point& rDestPt, const Bitmap& rBitmap ); @@ -697,20 +697,20 @@ void setupMethodStubs( functor_vector_type& res ) aPt1,aRect.GetSize(),aPt3,aRect2.GetSize(),aBitmap,aBlackColor )); /* void DrawImage( const Point& rPos, - const Image& rImage, USHORT nStyle = 0 ); + const Image& rImage, sal_uInt16 nStyle = 0 ); */ add(res, "DrawImage", boost::bind( (void (OutputDevice::*)( const Point&, const Image&, - USHORT nStyle ))( + sal_uInt16 nStyle ))( &OutputDevice::DrawImage), _1, - aPt1,aImage,(USHORT)0 )); + aPt1,aImage,(sal_uInt16)0 )); /* void DrawImage( const Point& rPos, const Size& rSize, - const Image& rImage, USHORT nStyle = 0 ); + const Image& rImage, sal_uInt16 nStyle = 0 ); */ add(res, "DrawImage(scaled)", @@ -718,10 +718,10 @@ void setupMethodStubs( functor_vector_type& res ) (void (OutputDevice::*)( const Point&, const Size&, const Image&, - USHORT nStyle ))( + sal_uInt16 nStyle ))( &OutputDevice::DrawImage), _1, - aPt1,aRect.GetSize(),aImage,(USHORT)0 )); + aPt1,aRect.GetSize(),aImage,(sal_uInt16)0 )); /* void DrawGradient( const Rectangle& rRect, const Gradient& rGradient ); */ add(res, @@ -757,15 +757,15 @@ void setupMethodStubs( functor_vector_type& res ) _1, aRect2,aWallpaper )); - /* void DrawWaveLine( const Point& rStartPos, const Point& rEndPos, USHORT nStyle ); */ + /* void DrawWaveLine( const Point& rStartPos, const Point& rEndPos, sal_uInt16 nStyle ); */ add(res, "DrawWaveLine", boost::bind( &OutputDevice::DrawWaveLine, _1, - aPt1,aPt2,(USHORT)WAVE_NORMAL )); + aPt1,aPt2,(sal_uInt16)WAVE_NORMAL )); - /* void DrawGrid( const Rectangle& rRect, const Size& rDist, ULONG nFlags ); */ + /* void DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLong nFlags ); */ add(res, "DrawGrid", boost::bind( @@ -774,15 +774,15 @@ void setupMethodStubs( functor_vector_type& res ) aRect,Size(10,20),GRID_HORZLINES|GRID_VERTLINES )); /* void DrawTransparent( const PolyPolygon& rPolyPoly, - USHORT nTransparencePercent ); + sal_uInt16 nTransparencePercent ); */ add(res, "DrawTransparent", boost::bind( - (void (OutputDevice::*)( const PolyPolygon&, USHORT ))( + (void (OutputDevice::*)( const PolyPolygon&, sal_uInt16 ))( &OutputDevice::DrawTransparent), _1, - aPoly3,(USHORT)50 )); + aPoly3,(sal_uInt16)50 )); /* void DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, const Size& rSize, @@ -903,7 +903,7 @@ void TestWindow::Paint( const Rectangle& ) fflush( stdout ); } -USHORT GrindApp::Exception( USHORT nError ) +sal_uInt16 GrindApp::Exception( sal_uInt16 nError ) { switch( nError & EXC_MAJORTYPE ) { @@ -919,7 +919,7 @@ int GrindApp::Main() { bool bHelp = false; - for( USHORT i = 0; i < GetCommandLineParamCount(); i++ ) + for( sal_uInt16 i = 0; i < GetCommandLineParamCount(); i++ ) { ::rtl::OUString aParam = GetCommandLineParam( i ); diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx index 2067fbe696ce..4898aed1a995 100644 --- a/vcl/workben/svdem.cxx +++ b/vcl/workben/svdem.cxx @@ -56,7 +56,7 @@ SAL_IMPLEMENT_MAIN() tools::extendApplicationEnvironment(); Reference< XMultiServiceFactory > xMS; - xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); + xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "types.rdb" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); InitVCL( xMS ); ::Main(); diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index 39f97c476051..47af3aaa8e30 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -147,7 +147,7 @@ public: void Paint( const Rectangle& rRect ); void Resize(); - BOOL Close(); + sal_Bool Close(); void parseList( const rtl::OString& rList ); rtl::OString processCommand( const rtl::OString& rCommand ); @@ -196,9 +196,9 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) : m_aQuitButton.Show(); } -BOOL MyWin::Close() +sal_Bool MyWin::Close() { - BOOL bRet = WorkWindow::Close(); + sal_Bool bRet = WorkWindow::Close(); if( bRet ) Application::Quit(); return bRet; @@ -279,7 +279,7 @@ IMPL_LINK( MyWin, QuitHdl, Button*, ) IMPL_LINK( MyWin, SelectHdl, ListBox*, ) { String aEntry = m_aSvpBitmaps.GetSelectEntry(); - USHORT nPos = aEntry.SearchAscii( ": " ); + sal_uInt16 nPos = aEntry.SearchAscii( ": " ); if( nPos != STRING_NOTFOUND ) { OStringBuffer aCommand( 64 ); @@ -298,7 +298,7 @@ IMPL_LINK( MyWin, SelectHdl, ListBox*, ) aFixedSize.Width() += 10; aFixedSize.Height() += 10; m_aImage.SetSizePixel( aFixedSize ); - m_aImage.SetBitmap( BitmapEx( aBitmap ) ); + m_aImage.SetImage( Image( BitmapEx( aBitmap ) ) ); } return 0; } diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index d5c736b74450..545c2aedf6ee 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -64,7 +64,7 @@ SAL_IMPLEMENT_MAIN() tools::extendApplicationEnvironment(); Reference< XMultiServiceFactory > xMS; - xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); + xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "types.rdb" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); InitVCL( xMS ); ::Main(); @@ -191,7 +191,7 @@ static Point project( const Point& rPoint ) static Color approachColor( const Color& rFrom, const Color& rTo ) { Color aColor; - UINT8 nDiff; + sal_uInt8 nDiff; // approach red if( rFrom.GetRed() < rTo.GetRed() ) { diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index a4da3f11c966..547660fa1e1e 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -61,7 +61,7 @@ SAL_IMPLEMENT_MAIN() tools::extendApplicationEnvironment(); Reference< XMultiServiceFactory > xMS; - xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); + xMS = cppu::createRegistryServiceFactory( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "types.rdb" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ), sal_True ); InitVCL( xMS ); ::Main(); |