ooo-build r14100 - in branches/ooo-build-3-0: . patches/dev300
- From: pflin svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14100 - in branches/ooo-build-3-0: . patches/dev300
- Date: Fri, 26 Sep 2008 10:34:06 +0000 (UTC)
Author: pflin
Date: Fri Sep 26 10:34:06 2008
New Revision: 14100
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14100&view=rev
Log:
2008-09-26 Fong Lin <pflin novell com>
* patches/dev300/apply,
* patches/dev300/controls-with-images-import-m7-fix.diff: fix the build
issue in ooo300-m7.
Added:
branches/ooo-build-3-0/patches/dev300/controls-with-images-import-m7-fix.diff
Modified:
branches/ooo-build-3-0/ChangeLog
branches/ooo-build-3-0/patches/dev300/apply
Modified: branches/ooo-build-3-0/patches/dev300/apply
==============================================================================
--- branches/ooo-build-3-0/patches/dev300/apply (original)
+++ branches/ooo-build-3-0/patches/dev300/apply Fri Sep 26 10:34:06 2008
@@ -1586,6 +1586,9 @@
controls-with-images-in-document.diff, i#38215, noelpwer
# import graphic for image control
controls-with-images-import.diff, Fong
+[ VBAObjects >= ooo300-m7 ]
+controls-with-images-import-m7-fix.diff, Fong
+[ VBAObjects ]
#use of form control models in userforms/dialogs, additionally
#enables use of document embedded images in image control for
#userforms/dialogs ( note: depends on controls-with-images-in-document.diff )
Added: branches/ooo-build-3-0/patches/dev300/controls-with-images-import-m7-fix.diff
==============================================================================
--- (empty file)
+++ branches/ooo-build-3-0/patches/dev300/controls-with-images-import-m7-fix.diff Fri Sep 26 10:34:06 2008
@@ -0,0 +1,93 @@
+--- svx/source/msfilter/msocximex.cxx.orig 2008-09-26 18:15:14.000000000 +0800
++++ svx/source/msfilter/msocximex.cxx 2008-09-26 18:18:50.000000000 +0800
+@@ -1644,7 +1644,15 @@ sal_Bool OCX_OptionButton::Import(com::s
+ aTmp <<= ::com::sun::star::style::VerticalAlignment_MIDDLE;
+ rPropSet->setPropertyValue( WW8_ASCII2STR("VerticalAlign"), aTmp );
+
++ uno::Reference< frame::XModel > xModel ( pDocSh ? pDocSh->GetModel() : NULL );
++ lcl_ApplyListSourceAndBindableStuff( xModel, rPropSet, msCtrlSource, msRowSource );
+ aFontData.Import(rPropSet);
++
++ if ( sImageUrl.getLength() )
++ {
++ aTmp <<= sImageUrl;
++ rPropSet->setPropertyValue( WW8_ASCII2STR("ImageURL"), aTmp);
++ }
+ return sal_True;
+ }
+
+@@ -1897,12 +1905,6 @@ sal_Bool OCX_TextBox::Import(com::sun::s
+ }
+
+ aFontData.Import(rPropSet);
+-
+- if ( sImageUrl.getLength() )
+- {
+- aTmp <<= sImageUrl;
+- rPropSet->setPropertyValue( WW8_ASCII2STR("ImageURL"), aTmp);
+- }
+ return sal_True;
+ }
+
+@@ -2285,6 +2287,12 @@ sal_Bool OCX_ToggleButton::Import(com::s
+ }
+
+ aFontData.Import(rPropSet);
++
++ if ( sImageUrl.getLength() )
++ {
++ aTmp <<= sImageUrl;
++ rPropSet->setPropertyValue( WW8_ASCII2STR("ImageURL"), aTmp);
++ }
+ return sal_True;
+ }
+
+@@ -2489,12 +2497,6 @@ sal_Bool OCX_Label::Import(uno::Referenc
+ }
+
+ aFontData.Import(rPropSet);
+-
+- if ( sImageUrl.getLength() )
+- {
+- aTmp <<= sImageUrl;
+- rPropSet->setPropertyValue( WW8_ASCII2STR("ImageURL"), aTmp);
+- }
+ return sal_True;
+ }
+
+@@ -3144,8 +3146,15 @@ sal_Bool OCX_ModernControl::Read(SvStora
+ {
+ pS->Read(pPictureHeader,20);
+ *pS >> nPictureLen;
+- pPicture = new sal_uInt8[nPictureLen];
+- pS->Read(pPicture,nPictureLen);
++ long imagePos = pS->Tell();
++ mxGrfObj = lcl_readGraphicObject( pS );
++ if( mxGrfObj.is() )
++ {
++ sImageUrl = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( GRAPHOBJ_URLPREFIX ) );
++ sImageUrl = sImageUrl + mxGrfObj->getUniqueID();
++ }
++ // make sure the stream position should be pointing after the image
++ pS->Seek( imagePos + nPictureLen );
+ }
+
+ return sal_True;
+@@ -3961,15 +3970,8 @@ sal_Bool OCX_Frame::Read(SvStorageStream
+ {
+ pS->Read(pPictureHeader,20);
+ *pS >> nPictureLen;
+- long imagePos = pS->Tell();
+- mxGrfObj = lcl_readGraphicObject( pS );
+- if( mxGrfObj.is() )
+- {
+- sImageUrl = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( GRAPHOBJ_URLPREFIX ) );
+- sImageUrl = sImageUrl + mxGrfObj->getUniqueID();
+- }
+- // make sure the stream position should be pointing after the image
+- pS->Seek( imagePos + nPictureLen );
++ pPicture = new sal_uInt8[nPictureLen];
++ pS->Read(pPicture,nPictureLen);
+ }
+
+ ReadAlign( pS, pS->Tell() - nStart, 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]