[ooo-build-commit] .: patches/dev300

René Engelhard rene at kemper.freedesktop.org
Wed Sep 15 05:45:38 PDT 2010


 patches/dev300/about-dialog-cleanup.diff |  187 -------------------------------
 patches/dev300/apply                     |    6 
 2 files changed, 1 insertion(+), 192 deletions(-)

New commits:
commit 1d24ae859708efedaa8437be16f81a0d65a99092
Author: Rene Engelhard <rene at debian.org>
Date:   Wed Sep 15 14:40:44 2010 +0200

    move about-dialog-cleanup.diff to the repos

diff --git a/patches/dev300/about-dialog-cleanup.diff b/patches/dev300/about-dialog-cleanup.diff
deleted file mode 100644
index 69dd7f4..0000000
--- a/patches/dev300/about-dialog-cleanup.diff
+++ /dev/null
@@ -1,187 +0,0 @@
----
- sfx2/inc/about.hxx           |    3 +-
- sfx2/inc/sfx2/sfx.hrc        |    3 +-
- sfx2/source/dialog/about.cxx |   54 +++++++++++++++++++++---------------------
- svx/source/intro/ooo.src     |   14 +++++++---
- 4 files changed, 41 insertions(+), 33 deletions(-)
-
-diff --git sfx2/inc/about.hxx sfx2/inc/about.hxx
-index 7a4d1c5..2d6960c 100644
---- sfx2/inc/about.hxx
-+++ sfx2/inc/about.hxx
-@@ -47,7 +47,7 @@ private:
-     OKButton    	aOKButton;
-     Image			aAppLogo;
- 
--    FixedInfo   	aVersionText;
-+    MultiLineEdit   	aVersionText;
-     MultiLineEdit  	aCopyrightText;
-     FixedInfo   	aBuildData;
- 
-@@ -55,6 +55,7 @@ private:
-     String			aDevVersionStr;
-     String 			aAccelStr;
-     String			aVersionData;
-+    String          aVersionTextStr;
-     String          aCopyrightTextStr;
- 
-     AccelList 		aAccelList;
-diff --git sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfx.hrc
-index b0d91fa..0c9e962 100644
---- sfx2/inc/sfx2/sfx.hrc
-+++ sfx2/inc/sfx2/sfx.hrc
-@@ -216,7 +216,8 @@
- #define ABOUT_STR_DEVELOPER_ARY             1
- #define ABOUT_STR_FRENCH_COPYRIGHT          2
- #define ABOUT_STR_ACCEL                     3
--#define ABOUT_STR_COPYRIGHT					4
-+#define ABOUT_STR_VERSION					4
-+#define ABOUT_STR_COPYRIGHT					5
- 
- #define RID_APPTITLE                        (RID_SFX_START+4)
- #define RID_BUILDVERSION                    (RID_SFX_START+5)
-diff --git sfx2/source/dialog/about.cxx sfx2/source/dialog/about.cxx
-index 77b60b7..a2677e0 100644
---- sfx2/source/dialog/about.cxx
-+++ sfx2/source/dialog/about.cxx
-@@ -67,22 +67,6 @@
- #define WELCOME_URL     DEFINE_CONST_UNICODE( "http://www.openoffice.org/welcome/credits.html" )
- 
- // class AboutDialog -----------------------------------------------------
--static void layoutText( FixedInfo &rText, long &nY, long nTextWidth, Size a6Size )
--{
--    Point aTextPos = rText.GetPosPixel();
--    aTextPos.X() = a6Size.Width() * 2;
--    aTextPos.Y() = nY;
--    rText.SetPosPixel( aTextPos );
--
--    Size aTxtSiz = rText.GetSizePixel();
--    aTxtSiz.Width() = nTextWidth;
--    Size aCalcSize = rText.CalcMinimumSize( nTextWidth );
--    aTxtSiz.Height() = aCalcSize.Height();
--    rText.SetSizePixel( aTxtSiz );
--
--    nY += aTxtSiz.Height();
--}
--
- static bool impl_loadBitmap(
-     const rtl::OUString &rPath, const rtl::OUString &rBmpFileName,
-     Image &rLogo )
-@@ -158,10 +142,12 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS
-     aOKButton      	( this,		ResId( ABOUT_BTN_OK, *rId.GetResMgr() ) ),
-     aVersionText 	( this, 	ResId( ABOUT_FTXT_VERSION, *rId.GetResMgr() ) ),
-     aCopyrightText	( this, 	ResId( ABOUT_FTXT_COPYRIGHT, *rId.GetResMgr() ) ),
-+    // FIXME: What is the purpose of the aBuildData when it is not connected to any widget?
-     aBuildData      ( this ),
-     aDeveloperAry	( 			ResId( ABOUT_STR_DEVELOPER_ARY, *rId.GetResMgr() ) ),
-     aDevVersionStr	( rVerStr ),
-     aAccelStr		( 			ResId( ABOUT_STR_ACCEL, *rId.GetResMgr() ) ),
-+    aVersionTextStr(          ResId( ABOUT_STR_VERSION, *rId.GetResMgr() ) ),
-     aCopyrightTextStr(          ResId( ABOUT_STR_COPYRIGHT, *rId.GetResMgr() ) ),
-     aTimer          (),
-     nOff            ( 0 ),
-@@ -195,10 +181,15 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS
-     SetFont( aFont );
- 
-     // if necessary more info
--    String sVersion = aVersionText.GetText();
-+    String sVersion = aVersionTextStr;
-     sVersion.SearchAndReplaceAscii( "$(VER)", Application::GetDisplayName() );
-     sVersion += '\n';
-     sVersion += rVerStr;
-+#ifdef BUILD_VER_STRING
-+    String aBuildString( DEFINE_CONST_UNICODE( BUILD_VER_STRING ) );
-+    sVersion += '\n';
-+    sVersion += aBuildString;
-+#endif
-     aVersionText.SetText( sVersion );
- 
-     // Initialisierung fuer Aufruf Entwickler
-@@ -249,28 +240,37 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS
-     aNewFont.SetSize( aSmaller );
-     aBuildData.SetFont( aNewFont );
-     aBuildData.SetBackground( aWall );
--#ifdef BUILD_VER_STRING
--    String aBuildString( DEFINE_CONST_UNICODE( BUILD_VER_STRING ) );
--#else
--    String aBuildString;
--#endif
--    aBuildData.SetText( aBuildString );
-+    // FIXME: What is the purpose of the build data?
-+    // they are not showed even when set, so???
-+    String aBuildDataString;
-+    aBuildData.SetText( aBuildDataString );
-     aBuildData.Show();
- 
-+    aCopyrightText.SetText( aCopyrightTextStr );
-+
-     // determine size and position of the dialog & elements
-     Size aAppLogoSiz = aAppLogo.GetSizePixel();
-     Size aOutSiz     = GetOutputSizePixel();
-     aOutSiz.Width()  = aAppLogoSiz.Width();
- 
-+    // analyze size of the aVersionText widget
-+    // character size
-     Size a6Size      = aVersionText.LogicToPixel( Size( 6, 6 ), MAP_APPFONT );
-+    // preferred Version widget size
-+    Size aVTSize = aVersionText.CalcMinimumSize();
-     long nY          = aAppLogoSiz.Height() + ( a6Size.Height() * 2 );
--    long nDlgMargin  = a6Size.Width() * 4 ;
--    long nCtrlMargin = a6Size.Height() * 2;
-+    long nDlgMargin  = a6Size.Width() * 3 ;
-+    long nCtrlMargin = aVTSize.Height() + ( a6Size.Height() * 2 );
-     long nTextWidth  = aOutSiz.Width() - nDlgMargin;
- 
--    aCopyrightText.SetText( aCopyrightTextStr );
-+    // finally set the aVersionText widget position and size
-+    Size aVTCopySize = aVTSize;
-+    Point aVTCopyPnt;
-+    aVTCopySize.Width()  = nTextWidth;
-+    aVTCopyPnt.X() = ( aOutSiz.Width() - aVTCopySize.Width() ) / 2;
-+    aVTCopyPnt.Y() = nY;
-+    aVersionText.SetPosSizePixel( aVTCopyPnt, aVTCopySize );
-     
--    layoutText( aVersionText, nY, nTextWidth, a6Size );
-     nY += nCtrlMargin;
-     
-     // OK-Button-Position (at the bottom and centered)
-diff --git svx/source/intro/ooo.src svx/source/intro/ooo.src
-index b63a0f1..008c55b 100644
---- svx/source/intro/ooo.src
-+++ svx/source/intro/ooo.src
-@@ -75,22 +75,28 @@ ModalDialog RID_DEFAULTABOUT
-         Pos = MAP_APPFONT ( 174 , 6 ) ;
-         Size = MAP_APPFONT ( 50 , 14 ) ;
-     };
--    FixedText ABOUT_FTXT_VERSION
-+    MultiLineEdit ABOUT_FTXT_VERSION
-     {
-+        Border = FALSE ;
-         Pos = MAP_APPFONT ( 54 , 6 ) ;
-         Size = MAP_APPFONT ( 118 , 16 ) ;
--        WordBreak = TRUE ;
--        Text = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION" ;
-+        IgnoreTab = TRUE ;
-+        ReadOnly = TRUE ;
-+        AutoVScroll = TRUE ;
-     };
-     MultiLineEdit ABOUT_FTXT_COPYRIGHT
-     {
--        Border = TRUE ;
-+        Border = FALSE ;
-         Pos = MAP_APPFONT ( 54 , 25 ) ;
-         Size = MAP_APPFONT ( 168 , 51 ) ;
-         IgnoreTab = TRUE ;
-         ReadOnly = TRUE ;
-         AutoVScroll = TRUE ;
-     };
-+    String ABOUT_STR_VERSION
-+    {
-+        Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION";
-+    };
-     String ABOUT_STR_COPYRIGHT
-     {
-         Text[ en-US ] = "Copyright © 2000, 2010 Oracle and/or its affiliates. All rights reserved.\nThis product was created by %OOOVENDOR, based on OpenOffice.org.\nOpenOffice.org acknowledges all community members, especially those mentioned at\n http://www.openoffice.org/welcome/credits.html.";	
--- 
-1.7.0.1
-
diff --git a/patches/dev300/apply b/patches/dev300/apply
index b401924..99a97a6 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -12,7 +12,7 @@ OLDEST_SUPPORTED=ooo330-m7 ooo-build-3.2.98.0
 # -------- Functional sub-sets --------
 Common : PreprocessPatches, BuildBits, TemporaryHacks, FixesNotForUpstream, \
 	 Fixes, DefaultSettings, Features, VCL, Misc, HelpContent, \
-	 Icons, Branding, CalcFixes, WriterFixes, EasterEgg, \
+	 Icons, CalcFixes, WriterFixes, EasterEgg, \
 	 GStreamer, CWSBackports, Cleanups, WMF, GnomeVFS, WebDAV, \
 	 Layout, VBABits, VBAObjects, CalcErrors, GCJ, Lwp, \
 	 OOXML, OOXMLExportDevel, OOXMLExport, FrameworkFeature, UnitTesting, \
@@ -415,10 +415,6 @@ vcl-outputdevice-lost-mpGraphics.diff, i#108914, n#575698, pmladek
 # buried in cws-vbasupportdev300
 #fix-uiconfiguration-insert.diff, i#105154, noelpwer
 
-[ Branding ]
-# put back the ooo-build version; allow to cut&paste the versions; remove the strange border around the license
-about-dialog-cleanup.diff, i#111425, pmladek
-
 [ RadioButtons ]
 forms-radio-button-group-names.diff, n#310052, i#30823, jonp
 # depends on forms-radio-button-group-names.diff,


More information about the ooo-build-commit mailing list