You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by st...@apache.org on 2013/04/23 11:51:53 UTC

svn commit: r1470868 [24/40] - in /openoffice/branches/ia2: ./ ext_libraries/coinmp/ ext_libraries/serf/ ext_libraries/serf/win/ extras/l10n/source/fi/ main/ main/animations/source/animcore/ main/automation/source/communi/ main/basctl/source/basicide/ ...

Modified: openoffice/branches/ia2/main/svx/source/dialog/_bmpmask.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/_bmpmask.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/_bmpmask.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/_bmpmask.cxx Tue Apr 23 09:51:15 2013
@@ -634,7 +634,7 @@ sal_Bool SvxBmpMask::NeedsColorTable() c
 
 //-------------------------------------------------------------------------
 
-void SvxBmpMask::SetColorTable( const XColorTable* pTable )
+void SvxBmpMask::SetColorTable( const XColorList* pTable )
 {
 	if ( pTable && ( pTable != pColTab ) )
 	{

Modified: openoffice/branches/ia2/main/svx/source/dialog/dialcontrol.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/dialcontrol.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/dialcontrol.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/dialcontrol.cxx Tue Apr 23 09:51:15 2013
@@ -24,7 +24,9 @@
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_svx.hxx"
 #include "svx/dialcontrol.hxx"
-
+#include "bmpmask.hrc"
+#include <svx/dialmgr.hxx>
+#include <tools/rcid.h>
 #include <math.h>
 #include <vcl/virdev.hxx>
 #include <vcl/svapp.hxx>
@@ -40,39 +42,13 @@ const long DIAL_OUTER_WIDTH = 8;
 
 // ============================================================================
 
-class DialControlBmp : public VirtualDevice
-{
-public:
-    explicit            DialControlBmp( Window& rParent );
-
-    void                InitBitmap( const Size& rSize, const Font& rFont );
-    void                CopyBackground( const DialControlBmp& rSrc );
-    void                DrawBackground( const Size& rSize, bool bEnabled );
-    void                DrawElements( const String& rText, sal_Int32 nAngle );
-
-private:
-    const Color&        GetBackgroundColor() const;
-    const Color&        GetTextColor() const;
-    const Color&        GetScaleLineColor() const;
-    const Color&        GetButtonLineColor() const;
-    const Color&        GetButtonFillColor( bool bMain ) const;
-
-    void                Init( const Size& rSize );
-    void                DrawBackground();
-
-    Window&             mrParent;
-    Rectangle           maRect;
-    long                mnCenterX;
-    long                mnCenterY;
-    bool                mbEnabled;
-};
 
 // ----------------------------------------------------------------------------
 
 DialControlBmp::DialControlBmp( Window& rParent ) :
     VirtualDevice( rParent, 0, 0 ),
-    mrParent( rParent ),
-    mbEnabled( true )
+    mbEnabled( true ),
+    mrParent( rParent )
 {
     EnableRTL( sal_False );
 }
@@ -232,40 +208,23 @@ void DialControlBmp::DrawBackground()
         maRect.Right() - DIAL_OUTER_WIDTH, maRect.Bottom() - DIAL_OUTER_WIDTH ) );
 }
 
-// ============================================================================
 
-struct DialControl_Impl
-{
-    DialControlBmp      maBmpEnabled;
-    DialControlBmp      maBmpDisabled;
-    DialControlBmp      maBmpBuffered;
-    Link                maModifyHdl;
-    NumericField*       mpLinkField;
-    Size                maWinSize;
-    Font                maWinFont;
-    sal_Int32           mnAngle;
-    sal_Int32           mnOldAngle;
-    long                mnCenterX;
-    long                mnCenterY;
-    bool                mbNoRot;
-
-    explicit            DialControl_Impl( Window& rParent );
-    void                Init( const Size& rWinSize, const Font& rWinFont );
-};
+
 
 // ----------------------------------------------------------------------------
 
-DialControl_Impl::DialControl_Impl( Window& rParent ) :
-    maBmpEnabled( rParent ),
-    maBmpDisabled( rParent ),
-    maBmpBuffered( rParent ),
+DialControl::DialControl_Impl::DialControl_Impl (
+    Window& rParent ) :
+    mpBmpEnabled(new DialControlBmp(rParent)),
+    mpBmpDisabled(new DialControlBmp(rParent)),
+    mpBmpBuffered(new DialControlBmp(rParent)),
     mpLinkField( 0 ),
     mnAngle( 0 ),
     mbNoRot( false )
 {
 }
 
-void DialControl_Impl::Init( const Size& rWinSize, const Font& rWinFont )
+void DialControl::DialControl_Impl::Init( const Size& rWinSize, const Font& rWinFont )
 {
     // "(x - 1) | 1" creates odd value <= x, to have a well-defined center pixel position
     maWinSize = Size( (rWinSize.Width() - 1) | 1, (rWinSize.Height() - 1) | 1 );
@@ -275,9 +234,9 @@ void DialControl_Impl::Init( const Size&
     mnCenterY = maWinSize.Height() / 2;
     maWinFont.SetTransparent( sal_True );
 
-    maBmpEnabled.DrawBackground( maWinSize, true );
-    maBmpDisabled.DrawBackground( maWinSize, false );
-    maBmpBuffered.InitBitmap( maWinSize, maWinFont );
+    mpBmpEnabled->DrawBackground( maWinSize, true );
+    mpBmpDisabled->DrawBackground( maWinSize, false );
+    mpBmpBuffered->InitBitmap( maWinSize, maWinFont );
 }
 
 // ============================================================================
@@ -313,7 +272,7 @@ DialControl::~DialControl()
 void DialControl::Paint( const Rectangle&  )
 {
     Point aPos;
-    DrawBitmapEx( aPos, mpImpl->maBmpBuffered.GetBitmapEx( aPos, mpImpl->maWinSize ) );
+    DrawBitmapEx( aPos, mpImpl->mpBmpBuffered->GetBitmapEx( aPos, mpImpl->maWinSize ) );
 }
 
 void DialControl::StateChanged( StateChangedType nStateChange )
@@ -414,7 +373,7 @@ sal_Int32 DialControl::GetRotation() con
 
 void DialControl::SetRotation( sal_Int32 nAngle )
 {
-    ImplSetRotation( nAngle, false );
+    SetRotation( nAngle, false );
 }
 
 void DialControl::SetLinkedField( NumericField* pField )
@@ -461,13 +420,13 @@ void DialControl::Init( const Size& rWin
 
 void DialControl::InvalidateControl()
 {
-    mpImpl->maBmpBuffered.CopyBackground( IsEnabled() ? mpImpl->maBmpEnabled : mpImpl->maBmpDisabled );
+    mpImpl->mpBmpBuffered->CopyBackground( IsEnabled() ? *mpImpl->mpBmpEnabled : *mpImpl->mpBmpDisabled );
     if( !mpImpl->mbNoRot )
-        mpImpl->maBmpBuffered.DrawElements( GetText(), mpImpl->mnAngle );
+        mpImpl->mpBmpBuffered->DrawElements( GetText(), mpImpl->mnAngle );
     Invalidate();
 }
 
-void DialControl::ImplSetRotation( sal_Int32 nAngle, bool bBroadcast )
+void DialControl::SetRotation( sal_Int32 nAngle, bool bBroadcast )
 {
     bool bOldSel = mpImpl->mbNoRot;
     mpImpl->mbNoRot = false;
@@ -512,7 +471,7 @@ void DialControl::HandleMouseEvent( cons
             nAngle = 36000 - nAngle;
         if( bInitial )  // round to entire 15 degrees
             nAngle = ((nAngle + 750) / 1500) * 1500;
-        ImplSetRotation( nAngle, true );
+        SetRotation( nAngle, true );
     }
 }
 
@@ -521,7 +480,7 @@ void DialControl::HandleEscapeEvent()
     if( IsMouseCaptured() )
     {
         ReleaseMouse();
-        ImplSetRotation( mpImpl->mnOldAngle, true );
+        SetRotation( mpImpl->mnOldAngle, true );
         if( mpImpl->mpLinkField )
             mpImpl->mpLinkField->GrabFocus();
     }
@@ -530,7 +489,7 @@ void DialControl::HandleEscapeEvent()
 IMPL_LINK( DialControl, LinkedFieldModifyHdl, NumericField*, pField )
 {
     if( pField )
-        ImplSetRotation( static_cast< sal_Int32 >( pField->GetValue() * 100 ), false );
+        SetRotation( static_cast< sal_Int32 >( pField->GetValue() * 100 ), false );
     return 0;
 }
 

Modified: openoffice/branches/ia2/main/svx/source/dialog/dlgctrl.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/dlgctrl.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/dlgctrl.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/dlgctrl.cxx Tue Apr 23 09:51:15 2013
@@ -59,7 +59,6 @@
 #include <svx/svdopath.hxx>
 #include <svx/sdr/contact/objectcontactofobjlistpainter.hxx>
 #include <svx/sdr/contact/displayinfo.hxx>
-#include <linectrl.hrc>
 #include <vcl/bmpacc.hxx>
 #include <svx/xbtmpit.hxx>
 
@@ -1326,7 +1325,7 @@ BitmapEx SvxBitmapCtl::GetBitmapEx()
 |*
 \************************************************************************/
 
-void ColorLB::Fill( const XColorTable* pColorTab )
+void ColorLB::Fill( const XColorList* pColorTab )
 {
 	long nCount = pColorTab->Count();
 	XColorEntry* pEntry;
@@ -1361,7 +1360,7 @@ void ColorLB::Modify( XColorEntry* pEntr
 |*
 \************************************************************************/
 
-void FillAttrLB::Fill( const XColorTable* pColorTab )
+void FillAttrLB::Fill( const XColorList* pColorTab )
 {
 	long nCount = pColorTab->Count();
 	XColorEntry* pEntry;
@@ -1415,9 +1414,9 @@ void HatchingLB::Fill( const XHatchList*
 		for( long i = 0; i < nCount; i++ )
 		{
             pEntry = pList->GetHatch( i );
-			Bitmap* pBitmap = pList->GetBitmap( i );
-			if( pBitmap )
-				InsertEntry( pEntry->GetName(), *pBitmap );
+			const Bitmap aBitmap = pList->GetUiBitmap( i );
+			if( !aBitmap.IsEmpty() )
+				InsertEntry( pEntry->GetName(), aBitmap );
 			else
 				InsertEntry( pEntry->GetName() );
 		}
@@ -1442,7 +1441,7 @@ void HatchingLB::UserDraw( const UserDra
 			sal_uIntPtr nOldDrawMode = pDevice->GetDrawMode();
 		    pDevice->SetDrawMode( GetSettings().GetStyleSettings().GetHighContrastMode() ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR );
 
-            XHatch& rXHatch = mpList->GetHatch( rUDEvt.GetItemId() )->GetHatch();
+            const XHatch& rXHatch = mpList->GetHatch( rUDEvt.GetItemId() )->GetHatch();
 			MapMode aMode( MAP_100TH_MM );
 			Hatch aHatch( (HatchStyle) rXHatch.GetHatchStyle(),
 						  rXHatch.GetColor(),
@@ -1525,9 +1524,9 @@ void FillAttrLB::Fill( const XHatchList*
 	for( long i = 0; i < nCount; i++ )
 	{
         pEntry = pList->GetHatch( i );
-		Bitmap* pBitmap = pList->GetBitmap( i );
-		if( pBitmap )
-			ListBox::InsertEntry( pEntry->GetName(), *pBitmap );
+		const Bitmap aBitmap = pList->GetUiBitmap( i );
+		if( !aBitmap.IsEmpty() )
+			ListBox::InsertEntry( pEntry->GetName(), aBitmap );
 		else
 			InsertEntry( pEntry->GetName() );
 	}
@@ -1574,9 +1573,9 @@ void GradientLB::Fill( const XGradientLi
 		for( long i = 0; i < nCount; i++ )
 		{
             pEntry = pList->GetGradient( i );
-			Bitmap* pBitmap = pList->GetBitmap( i );
-			if( pBitmap )
-				InsertEntry( pEntry->GetName(), *pBitmap );
+			const Bitmap aBitmap = pList->GetUiBitmap( i );
+			if( !aBitmap.IsEmpty() )
+				InsertEntry( pEntry->GetName(), aBitmap );
 			else
 				InsertEntry( pEntry->GetName() );
 		}
@@ -1598,7 +1597,7 @@ void GradientLB::UserDraw( const UserDra
 		{
 			OutputDevice* pDevice = rUDEvt.GetDevice();
 
-            XGradient& rXGrad = mpList->GetGradient( rUDEvt.GetItemId() )->GetGradient();
+            const XGradient& rXGrad = mpList->GetGradient( rUDEvt.GetItemId() )->GetGradient();
 			Gradient aGradient( (GradientStyle) rXGrad.GetGradientStyle(), rXGrad.GetStartColor(), rXGrad.GetEndColor() );
 			aGradient.SetAngle( (sal_uInt16)rXGrad.GetAngle() );
 			aGradient.SetBorder( rXGrad.GetBorder() );
@@ -1697,9 +1696,9 @@ void FillAttrLB::Fill( const XGradientLi
 	for( long i = 0; i < nCount; i++ )
 	{
         pEntry = pList->GetGradient( i );
-		Bitmap* pBitmap = pList->GetBitmap( i );
-		if( pBitmap )
-			ListBox::InsertEntry( pEntry->GetName(), *pBitmap );
+		const Bitmap aBitmap = pList->GetUiBitmap( i );
+		if( !aBitmap.IsEmpty() )
+			ListBox::InsertEntry( pEntry->GetName(), aBitmap );
 		else
 			InsertEntry( pEntry->GetName() );
 	}
@@ -1719,28 +1718,32 @@ BitmapLB::BitmapLB(Window* pParent, ResI
     mpList(NULL),
     mbUserDraw(bUserDraw)
 {
-	maVD.SetOutputSizePixel(Size(32, 16));
 	EnableUserDraw(mbUserDraw);
 }
 
 /************************************************************************/
 
-void BitmapLB::SetVirtualDevice()
+void BitmapLB::SetVirtualDevice(const Size& rSize)
 {
+	maVD.SetOutputSizePixel(rSize);
+
 	if(maBitmapEx.GetSizePixel().Width() > 8 || maBitmapEx.GetSizePixel().Height() > 8)
 	{
-		maVD.DrawBitmapEx(Point(0, 0), Size(32, 16), maBitmapEx);
+		maVD.DrawBitmapEx(Point(0, 0), rSize, maBitmapEx);
 	}
 	else
 	{
-		maVD.DrawBitmapEx(Point(0,  0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(8,  0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(16, 0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(24, 0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(0,  8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(8,  8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(16, 8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(24, 8), maBitmapEx);
+        const Size aBitmapSize(maBitmapEx.GetSizePixel());
+
+        for(sal_Int32 y(0); y < rSize.Height(); y += aBitmapSize.Height())
+        {
+            for(sal_Int32 x(0); x < rSize.Width(); x += aBitmapSize.Width())
+            {
+                maVD.DrawBitmapEx(
+                    Point(x, y),
+                    maBitmapEx);
+            }
+        }
 	}
 }
 
@@ -1767,8 +1770,12 @@ void BitmapLB::Fill(const XBitmapList* p
 		{
             pEntry = pList->GetBitmap(i);
 			maBitmapEx = pEntry->GetGraphicObject().GetGraphic().GetBitmapEx();
-			SetVirtualDevice();
-			InsertEntry(pEntry->GetName(), maVD.GetBitmap(Point(0, 2), Size(32, 12)));
+            const Size aSize(pList->getUiBitmapWidth(), pList->getUiBitmapHeight());
+			SetVirtualDevice(aSize);
+			InsertEntry(
+                pEntry->GetName(), 
+                maVD.GetBitmap(Point(0, 0), 
+                aSize));
 		}
 	}
 
@@ -1819,35 +1826,41 @@ void BitmapLB::UserDraw(const UserDrawEv
 
 /************************************************************************/
 
-void BitmapLB::Append(XBitmapEntry* pEntry, BitmapEx* pBmpEx)
+void BitmapLB::Append(const Size& rSize, const XBitmapEntry& rEntry, BitmapEx* pBmpEx)
 {
 	if(pBmpEx)
 	{
-		maBitmapEx = pEntry->GetGraphicObject().GetGraphic().GetBitmapEx();
-		SetVirtualDevice();
-		InsertEntry(pEntry->GetName(), maVD.GetBitmap(Point(0, 2), Size(32, 12)));
+		maBitmapEx = rEntry.GetGraphicObject().GetGraphic().GetBitmapEx();
+		SetVirtualDevice(rSize);
+		InsertEntry(
+            rEntry.GetName(), 
+            maVD.GetBitmap(Point(0, 0), 
+            rSize));
 	}
 	else
     {
-		InsertEntry(pEntry->GetName());
+		InsertEntry(rEntry.GetName());
     }
 }
 
 /************************************************************************/
 
-void BitmapLB::Modify(XBitmapEntry* pEntry, sal_uInt16 nPos, BitmapEx* pBmpEx)
+void BitmapLB::Modify(const Size& rSize, const XBitmapEntry& rEntry, sal_uInt16 nPos, BitmapEx* pBmpEx)
 {
 	RemoveEntry(nPos);
 
 	if(pBmpEx)
 	{
-		maBitmapEx = pEntry->GetGraphicObject().GetGraphic().GetBitmapEx();
-		SetVirtualDevice();
-		InsertEntry(pEntry->GetName(), maVD.GetBitmap(Point(0, 2), Size(32, 12)), nPos);
+		maBitmapEx = rEntry.GetGraphicObject().GetGraphic().GetBitmapEx();
+		SetVirtualDevice(rSize);
+		InsertEntry(
+            rEntry.GetName(), 
+            maVD.GetBitmap(Point(0, 0), rSize), 
+            nPos);
 	}
 	else
     {
-		InsertEntry(pEntry->GetName());
+		InsertEntry(rEntry.GetName());
     }
 }
 
@@ -1888,7 +1901,6 @@ FillAttrLB::FillAttrLB( Window* pParent,
     maVD(),
     maBitmapEx()
 {
-	maVD.SetOutputSizePixel(Size(32, 16));
 }
 
 /************************************************************************/
@@ -1896,29 +1908,32 @@ FillAttrLB::FillAttrLB( Window* pParent,
 FillAttrLB::FillAttrLB(Window* pParent, WinBits aWB) 
 :   ColorListBox(pParent, aWB)
 {
-	maVD.SetOutputSizePixel(Size(32, 16));
 }
 
 /************************************************************************/
 
-void FillAttrLB::SetVirtualDevice()
+void FillAttrLB::SetVirtualDevice(const Size& rSize)
 {
+	maVD.SetOutputSizePixel(rSize);
     maVD.Erase();
 
     if(maBitmapEx.GetSizePixel().Width() > 8 || maBitmapEx.GetSizePixel().Height() > 8)
 	{
-		maVD.DrawBitmapEx(Point(0, 0), Size(32, 16), maBitmapEx);
+		maVD.DrawBitmapEx(Point(0, 0), rSize, maBitmapEx);
 	}
 	else
 	{
-		maVD.DrawBitmapEx(Point(0,  0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(8,  0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(16, 0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(24, 0), maBitmapEx);
-		maVD.DrawBitmapEx(Point(0,  8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(8,  8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(16, 8), maBitmapEx);
-		maVD.DrawBitmapEx(Point(24, 8), maBitmapEx);
+        const Size aBitmapSize(maBitmapEx.GetSizePixel());
+
+        for(sal_Int32 y(0); y < rSize.Height(); y += aBitmapSize.Height())
+        {
+            for(sal_Int32 x(0); x < rSize.Width(); x += aBitmapSize.Width())
+            {
+                maVD.DrawBitmapEx(
+                    Point(x, y),
+                    maBitmapEx);
+            }
+        }
 	}
 }
 
@@ -1935,8 +1950,12 @@ void FillAttrLB::Fill(const XBitmapList*
 	{
         pEntry = pList->GetBitmap( i );
 		maBitmapEx = pEntry->GetGraphicObject().GetGraphic().GetBitmapEx();
-		SetVirtualDevice();
-		ListBox::InsertEntry(pEntry->GetName(), maVD.GetBitmap(Point(0, 2), Size(32, 12)));
+        const Size aSize(pList->getUiBitmapWidth(), pList->getUiBitmapHeight());
+		SetVirtualDevice(aSize);
+		ListBox::InsertEntry(
+            pEntry->GetName(), 
+            maVD.GetBitmap(Point(0, 0), 
+            aSize));
 	}
 
     ListBox::SetUpdateMode(true);
@@ -1990,9 +2009,44 @@ void FillTypeLB::Fill()
 |*	Fuellt die Listbox (vorlaeufig) mit Strings
 |*
 \************************************************************************/
+LineLB::LineLB(Window* pParent, ResId Id) 
+:   ListBox(pParent, Id),
+    mbAddStandardFields(true)
+{
+}
+
+LineLB::LineLB(Window* pParent, WinBits aWB) 
+:   ListBox(pParent, aWB),
+    mbAddStandardFields(true)
+{
+}
+
+LineLB::~LineLB()
+{
+}
+
+void LineLB::setAddStandardFields(bool bNew)
+{
+    if(getAddStandardFields() != bNew)
+    {
+        mbAddStandardFields = bNew;
+    }
+}
 
 void LineLB::Fill( const XDashList* pList )
 {
+	Clear();
+
+    if(getAddStandardFields())
+    {
+        // entry for 'none'
+        InsertEntry(pList->GetStringForUiNoLine());
+
+        // entry for solid line
+        InsertEntry(pList->GetStringForUiSolidLine(), pList->GetBitmapForUISolidLine());
+    }
+
+    // entries for dashed lines
 	long nCount = pList->Count();
 	XDashEntry* pEntry;
 	SetUpdateMode( sal_False );
@@ -2000,11 +2054,11 @@ void LineLB::Fill( const XDashList* pLis
 	for( long i = 0; i < nCount; i++ )
 	{
         pEntry = pList->GetDash( i );
-		Bitmap* pBitmap = const_cast<XDashList*>(pList)->CreateBitmapForUI( i );
-		if( pBitmap )
+		const Bitmap aBitmap = const_cast< XDashList* >(pList)->GetUiBitmap( i );
+		if( !aBitmap.IsEmpty() )
 		{
-			InsertEntry( pEntry->GetName(), *pBitmap );
-			delete pBitmap;
+			InsertEntry( pEntry->GetName(), aBitmap );
+			//delete pBitmap;
 		}
 		else
 			InsertEntry( pEntry->GetName() );
@@ -2012,33 +2066,9 @@ void LineLB::Fill( const XDashList* pLis
 	SetUpdateMode( sal_True );
 }
 
-void LineLB::FillStyles()
-{
-	ResMgr& rMgr = DIALOG_MGR();
-
-	// Linienstile
-	Clear();
-	InsertEntry( String( ResId( RID_SVXSTR_INVISIBLE, rMgr ) ) );
-
-	const StyleSettings& rStyles = Application::GetSettings().GetStyleSettings();
-	Bitmap aBitmap ( SVX_RES ( RID_SVXCTRL_LINECTRL ) );
-	Color aSourceColors[2];
-	Color aDestColors[2];
-
-	aSourceColors[0] = Color( COL_WHITE );
-	aSourceColors[1] = Color( COL_BLACK );
-
-	aDestColors[0] = rStyles.GetFieldColor();
-	aDestColors[1] = rStyles.GetFieldTextColor();
-
-	aBitmap.Replace ( aSourceColors, aDestColors, 2 );
-	Image aSolidLine ( aBitmap );
-	InsertEntry( String( ResId( RID_SVXSTR_SOLID, rMgr ) ), aSolidLine );
-}
-
 /************************************************************************/
 
-void LineLB::Append( XDashEntry* pEntry, Bitmap* pBmp )
+void LineLB::Append( XDashEntry* pEntry, const Bitmap* pBmp )
 {
 	if( pBmp )
 		InsertEntry( pEntry->GetName(), *pBmp );
@@ -2048,7 +2078,7 @@ void LineLB::Append( XDashEntry* pEntry,
 
 /************************************************************************/
 
-void LineLB::Modify( XDashEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp )
+void LineLB::Modify( XDashEntry* pEntry, sal_uInt16 nPos, const Bitmap* pBmp )
 {
 	RemoveEntry( nPos );
 
@@ -2089,6 +2119,20 @@ void LineLB::SelectEntryByList( const XD
 |*	Fuellt die Listbox (vorlaeufig) mit Strings
 |*
 \************************************************************************/
+LineEndLB::LineEndLB( Window* pParent, ResId Id )
+    : ListBox( pParent, Id )
+{
+}
+
+LineEndLB::LineEndLB( Window* pParent, WinBits aWB )
+    : ListBox( pParent, aWB )
+{
+}
+
+LineEndLB::~LineEndLB(void)
+{
+}
+
 
 void LineEndLB::Fill( const XLineEndList* pList, sal_Bool bStart )
 {
@@ -2100,17 +2144,16 @@ void LineEndLB::Fill( const XLineEndList
 	for( long i = 0; i < nCount; i++ )
 	{
         pEntry = pList->GetLineEnd( i );
-		Bitmap* pBitmap = const_cast<XLineEndList*>(pList)->CreateBitmapForUI( i );
-		if( pBitmap )
+		const Bitmap aBitmap = const_cast< XLineEndList* >(pList)->GetUiBitmap( i );
+		if( !aBitmap.IsEmpty() )
 		{
-			Size aBmpSize( pBitmap->GetSizePixel() );
+			Size aBmpSize( aBitmap.GetSizePixel() );
 			aVD.SetOutputSizePixel( aBmpSize, sal_False );
-			aVD.DrawBitmap( Point(), *pBitmap );
+			aVD.DrawBitmap( Point(), aBitmap );
 			InsertEntry( pEntry->GetName(),
 				aVD.GetBitmap( bStart ? Point() : Point( aBmpSize.Width() / 2, 0 ),
 					Size( aBmpSize.Width() / 2, aBmpSize.Height() ) ) );
-
-			delete pBitmap;
+			//delete pBitmap;
 		}
 		else
 			InsertEntry( pEntry->GetName() );
@@ -2120,8 +2163,7 @@ void LineEndLB::Fill( const XLineEndList
 
 /************************************************************************/
 
-void LineEndLB::Append( XLineEndEntry* pEntry, Bitmap* pBmp,
-						sal_Bool bStart )
+void LineEndLB::Append( XLineEndEntry* pEntry, const Bitmap* pBmp, sal_Bool bStart )
 {
 	if( pBmp )
 	{
@@ -2140,8 +2182,7 @@ void LineEndLB::Append( XLineEndEntry* p
 
 /************************************************************************/
 
-void LineEndLB::Modify( XLineEndEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp,
-						sal_Bool bStart )
+void LineEndLB::Modify( XLineEndEntry* pEntry, sal_uInt16 nPos, const Bitmap* pBmp, sal_Bool bStart )
 {
 	RemoveEntry( nPos );
 

Modified: openoffice/branches/ia2/main/svx/source/dialog/dlgutil.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/dlgutil.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/dlgutil.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/dlgutil.cxx Tue Apr 23 09:51:15 2013
@@ -48,3 +48,12 @@ FieldUnit GetModuleFieldUnit( const SfxI
 	return eUnit;
 }
 
+// -----------------------------------------------------------------------
+
+FieldUnit GetModuleFieldUnit()
+{
+    return SfxModule::GetCurrentFieldUnit();
+}
+
+// -----------------------------------------------------------------------
+// eof

Modified: openoffice/branches/ia2/main/svx/source/dialog/docrecovery.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/docrecovery.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/docrecovery.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/docrecovery.cxx Tue Apr 23 09:51:15 2013
@@ -2032,7 +2032,7 @@ void BrokenRecoveryDialog::impl_askForSa
 		{
 
 #if defined(WNT) || defined(OS2)
-			OUString	ustrValue = OUString::createFromAscii("${$BRAND_BASE_DIR/program/bootstrap.ini:UserInstallation}");
+			OUString	ustrValue = OUString::createFromAscii("${$OOO_BASE_DIR/program/bootstrap.ini:UserInstallation}");
 #elif defined( MACOSX )
 			OUString	ustrValue = OUString::createFromAscii("~");
 #else

Modified: openoffice/branches/ia2/main/svx/source/dialog/fontwork.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/fontwork.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/fontwork.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/fontwork.cxx Tue Apr 23 09:51:15 2013
@@ -118,14 +118,6 @@ void SvxFontWorkControllerItem::StateCha
 			rFontWorkDlg.SetMirror_Impl(pStateItem);
 			break;
 		}
-		case SID_FORMTEXT_STDFORM:
-		{
-			const XFormTextStdFormItem* pStateItem =
-								PTR_CAST(XFormTextStdFormItem, pItem);
-			DBG_ASSERT(pStateItem || pItem == 0, "XFormTextStdFormItem erwartet");
-			rFontWorkDlg.SetStdForm_Impl(pStateItem);
-			break;
-		}
 		case SID_FORMTEXT_HIDEFORM:
 		{
 			const XFormTextHideFormItem* pStateItem =
@@ -215,8 +207,6 @@ SvxFontWorkDialog::SvxFontWorkDialog( Sf
 									  const ResId& rResId ) :
     SfxDockingWindow( pBindinx, pCW, _pParent, rResId ),
 
-	aFormSet		(this, ResId(VS_FORMS,*rResId.GetResMgr())),
-
 	aTbxStyle		(this, ResId(TBX_STYLE,*rResId.GetResMgr())),
 	aTbxAdjust		(this, ResId(TBX_ADJUST,*rResId.GetResMgr())),
 
@@ -257,16 +247,12 @@ SvxFontWorkDialog::SvxFontWorkDialog( Sf
 	pCtrlItems[2] = new SvxFontWorkControllerItem(SID_FORMTEXT_DISTANCE, *this, rBindings);
 	pCtrlItems[3] = new SvxFontWorkControllerItem(SID_FORMTEXT_START, *this, rBindings);
 	pCtrlItems[4] = new SvxFontWorkControllerItem(SID_FORMTEXT_MIRROR, *this, rBindings);
-	pCtrlItems[5] = new SvxFontWorkControllerItem(SID_FORMTEXT_STDFORM, *this, rBindings);
-	pCtrlItems[6] = new SvxFontWorkControllerItem(SID_FORMTEXT_HIDEFORM, *this, rBindings);
-	pCtrlItems[7] = new SvxFontWorkControllerItem(SID_FORMTEXT_OUTLINE, *this, rBindings);
-	pCtrlItems[8] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHADOW, *this, rBindings);
-	pCtrlItems[9] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWCOLOR, *this, rBindings);
-	pCtrlItems[10] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWXVAL, *this, rBindings);
-	pCtrlItems[11] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWYVAL, *this, rBindings);
-
-	WinBits aNewStyle = ( aFormSet.GetStyle() | WB_VSCROLL | WB_ITEMBORDER | WB_DOUBLEBORDER );
-	aFormSet.SetStyle( aNewStyle );
+	pCtrlItems[5] = new SvxFontWorkControllerItem(SID_FORMTEXT_HIDEFORM, *this, rBindings);
+	pCtrlItems[6] = new SvxFontWorkControllerItem(SID_FORMTEXT_OUTLINE, *this, rBindings);
+	pCtrlItems[7] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHADOW, *this, rBindings);
+	pCtrlItems[8] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWCOLOR, *this, rBindings);
+	pCtrlItems[9] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWXVAL, *this, rBindings);
+	pCtrlItems[10] = new SvxFontWorkControllerItem(SID_FORMTEXT_SHDWYVAL, *this, rBindings);
 
 	Size aSize = aTbxStyle.CalcWindowSizePixel();
 	aTbxStyle.SetSizePixel(aSize);
@@ -278,9 +264,6 @@ SvxFontWorkDialog::SvxFontWorkDialog( Sf
 	aTbxShadow.SetSizePixel(aSize);
 	aTbxShadow.SetSelectHdl( LINK(this, SvxFontWorkDialog, SelectShadowHdl_Impl) );
 
-//	aFbShadowX.SetBitmap(Bitmap(FW_RESID(RID_SVXBMP_SHADOW_XDIST)));
-//	aFbShadowY.SetBitmap(Bitmap(FW_RESID(RID_SVXBMP_SHADOW_YDIST)));
-
 	Link aLink = LINK(this, SvxFontWorkDialog, ModifyInputHdl_Impl);
 	aMtrFldDistance.SetModifyHdl( aLink );
 	aMtrFldTextStart.SetModifyHdl( aLink );
@@ -312,14 +295,6 @@ SvxFontWorkDialog::SvxFontWorkDialog( Sf
 
 	aInputTimer.SetTimeout(500);
 	aInputTimer.SetTimeoutHdl(LINK(this, SvxFontWorkDialog, InputTimoutHdl_Impl));
-
-	aFormSet.SetSelectHdl( LINK(this, SvxFontWorkDialog, FormSelectHdl_Impl) );
-	aFormSet.SetColCount(4);
-	aFormSet.SetLineCount(2);
-
-    Bitmap aBmp(SVX_RES(RID_SVXBMP_FONTWORK_FORM1));
-	aSize.Height() = aFormSet.CalcWindowSizePixel(aBmp.GetSizePixel()).Height() + 2;
-	aFormSet.SetSizePixel(aSize);
 }
 
 /*************************************************************************
@@ -520,27 +495,6 @@ void SvxFontWorkDialog::SetMirror_Impl(c
 
 /*************************************************************************
 |*
-|* Standardform im ValueSet anzeigen
-|*
-\************************************************************************/
-
-void SvxFontWorkDialog::SetStdForm_Impl(const XFormTextStdFormItem* pItem)
-{
-	if ( pItem )
-	{
-		aFormSet.Enable();
-		aFormSet.SetNoSelection();
-
-		if ( pItem->GetValue() != XFTFORM_NONE )
-			aFormSet.SelectItem(
-                sal::static_int_cast< sal_uInt16 >(pItem->GetValue()));
-	}
-	else
-		aFormSet.Disable();
-}
-
-/*************************************************************************
-|*
 |* Button fuer Konturanzeige setzen
 |*
 \************************************************************************/
@@ -934,23 +888,6 @@ IMPL_LINK( SvxFontWorkDialog, InputTimou
 |*
 \************************************************************************/
 
-IMPL_LINK( SvxFontWorkDialog, FormSelectHdl_Impl, void *, EMPTYARG )
-{
-	XFormTextStdFormItem aItem;
-
-	if ( aFormSet.IsNoSelection() )
-		aItem.SetValue(XFTFORM_NONE);
-	else
-		aItem.SetValue(aFormSet.GetSelectItemId());
-	GetBindings().GetDispatcher()->Execute( SID_FORMTEXT_STDFORM, SFX_CALLMODE_RECORD, &aItem, 0L );
-	aFormSet.SetNoSelection();
-	return 0;
-}
-
-/*************************************************************************
-|*
-\************************************************************************/
-
 IMPL_LINK( SvxFontWorkDialog, ColorSelectHdl_Impl, void *, EMPTYARG )
 {
 // Changed by obo. Linux-Compiler can't parse commented lines
@@ -966,7 +903,7 @@ IMPL_LINK( SvxFontWorkDialog, ColorSelec
 |*
 \************************************************************************/
 
-void SvxFontWorkDialog::SetColorTable(const XColorTable* pTable)
+void SvxFontWorkDialog::SetColorTable(const XColorList* pTable)
 {
 	if ( pTable && pTable != pColorTable )
 	{
@@ -984,231 +921,6 @@ void SvxFontWorkDialog::SetActive(sal_Bo
 {
 }
 
-/*************************************************************************
-|*
-|* Standard-FontWork-Objekt erzeugen
-|*
-\************************************************************************/
-
-void SvxFontWorkDialog::CreateStdFormObj(SdrView& rView, SdrPageView& rPV,
-										 const SfxItemSet& rAttr,
-										 SdrObject& rOldObj,
-										 XFormTextStdForm eForm)
-{
-	SfxItemSet	aAttr(*rAttr.GetPool(), XATTR_FORMTXTSTYLE,
-										XATTR_FORMTXTHIDEFORM);
-	SdrObject*	pNewObj = NULL;
-	Rectangle	aRect;
-	XFormTextAdjust eAdjust = XFT_AUTOSIZE;
-
-//-/	rOldObj.TakeAttributes(aAttr, sal_True, sal_False);
-	aAttr.Put(rOldObj.GetMergedItemSet());
-	
-	const XFormTextStdFormItem& rOldForm = (const XFormTextStdFormItem&)
-											aAttr.Get(XATTR_FORMTXTSTDFORM);
-
-	aRect = rOldObj.GetSnapRect();
-
-	if ( !rOldObj.ISA(SdrPathObj) )
-	{
-		Point aPos = aRect.TopLeft();
-		aRect = rOldObj.GetLogicRect();
-		aRect.SetPos(aPos);
-	}
-
-	aAttr.Put(rAttr);
-
-	if ( rOldForm.GetValue() == XFTFORM_NONE )
-	{
-		long nW = aRect.GetWidth();
-		aRect.SetSize(Size(nW, nW));
-		aAttr.Put(XFormTextStyleItem(XFT_ROTATE));
-	}
-
-	Point aCenter = aRect.Center();
-
-	switch ( eForm )
-	{
-		case XFTFORM_TOPCIRC:
-		case XFTFORM_BOTCIRC:
-		case XFTFORM_LFTCIRC:
-		case XFTFORM_RGTCIRC:
-		case XFTFORM_TOPARC:
-		case XFTFORM_BOTARC:
-		case XFTFORM_LFTARC:
-		case XFTFORM_RGTARC:
-		{
-			long nBeg, nEnd;
-
-			switch ( eForm )
-			{
-				default: ; //prevent warning
-				case XFTFORM_TOPCIRC:
-					nBeg = 0;
-					nEnd = 18000;
-					break;
-				case XFTFORM_BOTCIRC:
-					nBeg = 18000;
-					nEnd = 36000;
-					break;
-				case XFTFORM_LFTCIRC:
-					nBeg =	9000;
-					nEnd = 27000;
-					break;
-				case XFTFORM_RGTCIRC:
-					nBeg = 27000;
-					nEnd =	9000;
-					break;
-				case XFTFORM_TOPARC:
-					nBeg =	4500;
-					nEnd = 13500;
-					break;
-				case XFTFORM_BOTARC:
-					nBeg = 22500;
-					nEnd = 31500;
-					break;
-				case XFTFORM_LFTARC:
-					nBeg = 13500;
-					nEnd = 22500;
-					break;
-				case XFTFORM_RGTARC:
-					nBeg = 31500;
-					nEnd =	4500;
-					break;
-			}
-			pNewObj = new SdrCircObj(OBJ_CARC, aRect, nBeg, nEnd);
-			break;
-		}
-		case XFTFORM_BUTTON1:
-		{
-			basegfx::B2DPolyPolygon aPolyPolygon;
-			basegfx::B2DPolygon aLine;
-			long nR = aRect.GetWidth() / 2;
-			basegfx::B2DPolygon aTopArc(XPolygon(aCenter, -nR, nR, 50, 1750, sal_False).getB2DPolygon());
-			basegfx::B2DPolygon aBottomArc(XPolygon(aCenter, -nR, nR, 1850, 3550, sal_False).getB2DPolygon());
-
-			// Polygone schliessen
-			aTopArc.setClosed(true);
-			aBottomArc.setClosed(true);
-			aPolyPolygon.append(aTopArc);
-
-			aLine.append(aBottomArc.getB2DPoint(aBottomArc.count() - 1L));
-			aLine.append(aBottomArc.getB2DPoint(0L));
-			aLine.setClosed(true);
-
-			aPolyPolygon.append(aLine);
-			aPolyPolygon.append(aBottomArc);
-
-			pNewObj = new SdrPathObj(OBJ_PATHFILL, aPolyPolygon);
-			eAdjust = XFT_CENTER;
-			break;
-		}
-		case XFTFORM_BUTTON2:
-		case XFTFORM_BUTTON3:
-		case XFTFORM_BUTTON4:
-		{
-			basegfx::B2DPolyPolygon aPolyPolygon;
-			basegfx::B2DPolygon aLine;
-			long nR = aRect.GetWidth() / 2;
-			long nWDiff = nR / 5;
-			long nHDiff;
-
-			if ( eForm == XFTFORM_BUTTON4 )
-			{
-				basegfx::B2DPolygon aNewArc(XPolygon(aCenter, -nR, nR, 950, 2650, sal_False).getB2DPolygon());
-				aNewArc.setClosed(true);
-				aPolyPolygon.append(aNewArc);
-				eAdjust = XFT_CENTER;
-			}
-			else
-			{
-				basegfx::B2DPolygon aNewArc(XPolygon(aCenter, -nR, nR, 2700, 2700).getB2DPolygon());
-				aPolyPolygon.append(aNewArc);
-			}
-
-			if ( eForm == XFTFORM_BUTTON3 )
-				nHDiff = -aRect.GetHeight() / 10;
-			else
-				nHDiff = aRect.GetHeight() / 20;
-
-			aLine.append(basegfx::B2DPoint(aRect.Left() + nWDiff, aRect.Center().Y() + nHDiff));
-			aLine.append(basegfx::B2DPoint(aRect.Right() - nWDiff, aRect.Center().Y() + nHDiff));
-			aLine.setClosed(true);
-			aPolyPolygon.append(aLine);
-
-			if ( eForm == XFTFORM_BUTTON4 )
-			{
-				basegfx::B2DPolygon aNewArc(XPolygon(aCenter, -nR, nR, 2750, 850, sal_False).getB2DPolygon());
-				aNewArc.setClosed(true);
-				aPolyPolygon.append(aNewArc);
-			}
-
-			if ( eForm == XFTFORM_BUTTON3 )
-			{
-				nHDiff += nHDiff;
-				aLine.setB2DPoint(0L, basegfx::B2DPoint(aLine.getB2DPoint(0L).getX(), aLine.getB2DPoint(0L).getY() - nHDiff));
-				aLine.setB2DPoint(1L, basegfx::B2DPoint(aLine.getB2DPoint(1L).getX(), aLine.getB2DPoint(1L).getY() - nHDiff));
-				aPolyPolygon.append(aLine);
-			}
-
-			pNewObj = new SdrPathObj(OBJ_PATHFILL, aPolyPolygon);
-			break;
-        }
-        default: ; //prevent warning
-    }
-	if ( pNewObj )
-	{
-		// #78478# due to DLs changes in Outliner the object needs
-		// a model to get an outliner for later calls to
-		// pNewObj->SetOutlinerParaObject(pPara) (see below).
-		pNewObj->SetModel(rOldObj.GetModel());
-
-		Size aSize;
-		Rectangle aSnap = pNewObj->GetSnapRect();
-
-		aSize.Width() = aRect.Left() - aSnap.Left();
-		aSize.Height() = aRect.Top() - aSnap.Top();
-		pNewObj->NbcMove(aSize);
-
-		rView.BegUndo( SVX_RESSTR( RID_SVXSTR_FONTWORK_UNDOCREATE ) );
-		OutlinerParaObject* pPara = rOldObj.GetOutlinerParaObject();
-		sal_Bool bHide = sal_True;
-
-		if ( pPara != NULL )
-		{
-			pPara = new OutlinerParaObject(*pPara);
-			pNewObj->SetOutlinerParaObject(pPara);
-		}
-		else
-			bHide = sal_False;
-
-		rView.ReplaceObjectAtView(&rOldObj, rPV, pNewObj, sal_True);
-		pNewObj->SetLayer(rOldObj.GetLayer());
-		aAttr.Put(XFormTextHideFormItem(bHide));
-		aAttr.Put(XFormTextAdjustItem(eAdjust));
-
-		XFormTextShadow eShadow = XFTSHADOW_NONE;
-
-		if ( nLastShadowTbxId == TBI_SHADOW_NORMAL )
-		{
-			eShadow = XFTSHADOW_NORMAL;
-			aAttr.Put(XFormTextShadowXValItem(nSaveShadowX));
-			aAttr.Put(XFormTextShadowYValItem(nSaveShadowY));
-		}
-		else if ( nLastShadowTbxId == TBI_SHADOW_SLANT )
-		{
-			eShadow = XFTSHADOW_SLANT;
-			aAttr.Put(XFormTextShadowXValItem(nSaveShadowAngle));
-			aAttr.Put(XFormTextShadowYValItem(nSaveShadowSize));
-		}
-
-		aAttr.Put(XFormTextShadowItem(eShadow));
-
-		rView.SetAttributes(aAttr);
-		rView.EndUndo();
-	}
-}
-
 void SvxFontWorkDialog::DataChanged( const DataChangedEvent& rDCEvt )
 {
 	if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
@@ -1223,37 +935,6 @@ void SvxFontWorkDialog::ApplyImageList()
 {
 	bool bHighContrast = GetSettings().GetStyleSettings().GetHighContrastMode();
 
-    ResMgr* _pMgr = &DIALOG_MGR();
-
-	sal_uInt16 nBitmapResId = bHighContrast ? RID_SVXBMP_FONTWORK_FORM1_H : RID_SVXBMP_FONTWORK_FORM1;
-	sal_uInt16 nTextResId = RID_SVXSTR_FONTWORK_FORM1;
-
-	bool bInit = aFormSet.GetItemCount() == 0;
-
-	if( bInit )
-	{
-/*
-		Size aSize( aTbxStyle.CalcWindowSizePixel() );
-        Bitmap aBmp(ResId(RID_SVXBMP_FONTWORK_FORM1,_pMgr));
-		aSize.Height() = aFormSet.CalcWindowSizePixel(aBmp.GetSizePixel()).Height() + 2;
-		aFormSet.SetSizePixel(aSize);
-*/
-	}
-
-	sal_uInt16 i;
-	for( i = 1; i < 13; i++, nTextResId++, nBitmapResId++ )
-	{
-		if( bInit )
-		{
-            aFormSet.InsertItem( i, Bitmap(ResId(nBitmapResId,*_pMgr)),
-                                    String(ResId(nTextResId,*_pMgr)));
-		}
-		else
-		{
-            aFormSet.SetItemImage( i, Bitmap(ResId(nBitmapResId,*_pMgr)) );
-		}
-	}
-
     ImageList& rImgLst = bHighContrast ? maImageListH : maImageList;
 
 	aTbxStyle.SetImageList( rImgLst );

Modified: openoffice/branches/ia2/main/svx/source/dialog/fontwork.hrc
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/fontwork.hrc?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/fontwork.hrc (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/fontwork.hrc Tue Apr 23 09:51:15 2013
@@ -20,7 +20,6 @@
  *************************************************************/
 
 
-#define VS_FORMS 1
 #define TBX_STYLE 1
 #define TBX_ADJUST 2
 #define TBX_SHADOW 3

Modified: openoffice/branches/ia2/main/svx/source/dialog/fontwork.src
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/fontwork.src?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/fontwork.src (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/fontwork.src Tue Apr 23 09:51:15 2013
@@ -25,7 +25,10 @@
 #include <svx/dialogs.hrc>
 #include "fontwork.hrc"
 #include "helpid.hrc"
+
  // pragma ----------------------------------------------------------------
+#define REDUCED_WIDTH               6
+#define REMOVED_VS_FORMS_HEIGHT     (30 + 6)
 
  // RID_SVXDLG_FONTWORK ---------------------------------------------------
 DockingWindow RID_SVXDLG_FONTWORK
@@ -35,25 +38,17 @@ DockingWindow RID_SVXDLG_FONTWORK
 	SVLook = TRUE ;
 	Hide = TRUE ;
 	Pos = MAP_APPFONT ( 0 , 0 ) ;
-	Size = MAP_APPFONT ( 89 , 193 ) ;
+	Size = MAP_APPFONT ( 89 - REDUCED_WIDTH , 193 - REMOVED_VS_FORMS_HEIGHT ) ;
 	Text [ en-US ] = "Fontwork" ;
 	Moveable = TRUE ;
 	Zoomable = TRUE ;
 	Closeable = TRUE ;
 	Dockable = TRUE ;
 	EnableResizing = TRUE ;
-	Control VS_FORMS
-	{
-		HelpId = HID_FONTWORK_CTL_FORMS ;
-		Pos = MAP_APPFONT ( 6 , 4 ) ;
-		Size = MAP_APPFONT ( 71 , 30 ) ;
-		Border = TRUE ;
-		TabStop = TRUE ;
-	};
 	ToolBox TBX_STYLE
 	{
 		SVLook = TRUE ;
-		Pos = MAP_APPFONT ( 6 , 41 ) ;
+		Pos = MAP_APPFONT ( 6 , 41 - REMOVED_VS_FORMS_HEIGHT ) ;
 		ItemList  =
 		{
 			ToolBoxItem
@@ -104,7 +99,7 @@ DockingWindow RID_SVXDLG_FONTWORK
 	ToolBox TBX_ADJUST
 	{
 		SVLook = TRUE ;
-		Pos = MAP_APPFONT ( 6 , 63 ) ;
+		Pos = MAP_APPFONT ( 6 , 63 - REMOVED_VS_FORMS_HEIGHT ) ;
 		ItemList  =
 		{
 			ToolBoxItem
@@ -155,14 +150,14 @@ DockingWindow RID_SVXDLG_FONTWORK
 	};
 	FixedImage FB_DISTANCE
 	{
-		Pos = MAP_APPFONT ( 10 , 84 ) ;
+		Pos = MAP_APPFONT ( 10 , 84 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 14 , 15 ) ;
 	};
 	MetricField MTR_FLD_DISTANCE
 	{
 	    HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_DISTANCE";
 		Border = TRUE ;
-		Pos = MAP_APPFONT ( 29 , 85 ) ;
+		Pos = MAP_APPFONT ( 29 , 85 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 48 , 12 ) ;
 		TabStop = TRUE ;
 		Repeat = TRUE ;
@@ -180,14 +175,14 @@ DockingWindow RID_SVXDLG_FONTWORK
 	};
 	FixedImage FB_TEXTSTART
 	{
-		Pos = MAP_APPFONT ( 10 , 99 ) ;
+		Pos = MAP_APPFONT ( 10 , 99 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 14 , 15 ) ;
 	};
 	MetricField MTR_FLD_TEXTSTART
 	{
 	    HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_TEXTSTART";
 		Border = TRUE ;
-		Pos = MAP_APPFONT ( 29 , 100 ) ;
+		Pos = MAP_APPFONT ( 29 , 100 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 48 , 12 ) ;
 		TabStop = TRUE ;
 		Repeat = TRUE ;
@@ -203,7 +198,7 @@ DockingWindow RID_SVXDLG_FONTWORK
 	ToolBox TBX_SHADOW
 	{
 		SVLook = TRUE ;
-		Pos = MAP_APPFONT ( 6 , 122 ) ;
+		Pos = MAP_APPFONT ( 6 , 122 - REMOVED_VS_FORMS_HEIGHT ) ;
 		ItemList  =
 		{
 			ToolBoxItem
@@ -254,14 +249,14 @@ DockingWindow RID_SVXDLG_FONTWORK
 	};
 	FixedImage FB_SHADOW_X
 	{
-		Pos = MAP_APPFONT ( 10 , 143 ) ;
+		Pos = MAP_APPFONT ( 10 , 143 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 14 , 15 ) ;
 	};
 	MetricField MTR_FLD_SHADOW_X
 	{
 	    HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_X";
 		Border = TRUE ;
-		Pos = MAP_APPFONT ( 29 , 144 ) ;
+		Pos = MAP_APPFONT ( 29 , 144 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 48 , 12 ) ;
 		TabStop = TRUE ;
 		Repeat = TRUE ;
@@ -279,14 +274,14 @@ DockingWindow RID_SVXDLG_FONTWORK
 	};
 	FixedImage FB_SHADOW_Y
 	{
-		Pos = MAP_APPFONT ( 10 , 158 ) ;
+		Pos = MAP_APPFONT ( 10 , 158 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 14 , 15 ) ;
 	};
 	MetricField MTR_FLD_SHADOW_Y
 	{
 	    HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_Y";
 		Border = TRUE ;
-		Pos = MAP_APPFONT ( 29 , 159 ) ;
+		Pos = MAP_APPFONT ( 29 , 159 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 48 , 12 ) ;
 		TabStop = TRUE ;
 		Repeat = TRUE ;
@@ -304,7 +299,7 @@ DockingWindow RID_SVXDLG_FONTWORK
 	{
 	    HelpID = "svx:ListBox:RID_SVXDLG_FONTWORK:CLB_SHADOW_COLOR";
 		Border = TRUE ;
-		Pos = MAP_APPFONT ( 6 , 174 ) ;
+		Pos = MAP_APPFONT ( 6 , 174 - REMOVED_VS_FORMS_HEIGHT ) ;
 		Size = MAP_APPFONT ( 71 , 60 ) ;
 		DropDown = TRUE ;
 		QuickHelpText [ en-US ] = "Shadow Color" ;
@@ -353,204 +348,6 @@ DockingWindow RID_SVXDLG_FONTWORK
         FONTWORK_IDLIST
     };
 };
- // Bitmaps ---------------------------------------------------------------
-Bitmap RID_SVXBMP_FONTWORK_FORM1
-{
-	File = "fwthcirc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM2
-{
-	File = "fwbhcirc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM3
-{
-	File = "fwlhcirc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM4
-{
-	File = "fwrhcirc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM5
-{
-	File = "fwtoparc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM6
-{
-	File = "fwbotarc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM7
-{
-	File = "fwlftarc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM8
-{
-	File = "fwrgtarc.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM9
-{
-	File = "fwbuttn1.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM10
-{
-	File = "fwbuttn2.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM11
-{
-	File = "fwbuttn3.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM12
-{
-	File = "fwbuttn4.bmp" ;
-};
-
-Bitmap RID_SVXBMP_FONTWORK_FORM1_H
-{
-	File = "fwthcirc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM2_H
-{
-	File = "fwbhcirc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM3_H
-{
-	File = "fwlhcirc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM4_H
-{
-	File = "fwrhcirc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM5_H
-{
-	File = "fwtoparc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM6_H
-{
-	File = "fwbotarc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM7_H
-{
-	File = "fwlftarc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM8_H
-{
-	File = "fwrgtarc_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM9_H
-{
-	File = "fwbuttn1_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM10_H
-{
-	File = "fwbuttn2_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM11_H
-{
-	File = "fwbuttn3_h.bmp" ;
-};
-Bitmap RID_SVXBMP_FONTWORK_FORM12_H
-{
-	File = "fwbuttn4_h.bmp" ;
-};
-
- // Strings ---------------------------------------------------------------
-String RID_SVXSTR_FONTWORK_FORM1
-{
-	Text [ en-US ] = "Upper Semicircle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM2
-{
-	Text [ en-US ] = "Lower Semicircle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM3
-{
-	Text [ en-US ] = "Left Semicircle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM4
-{
-	Text [ en-US ] = "Right Semicircle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM5
-{
-	Text [ en-US ] = "Upper Arc" ;
-};
-String RID_SVXSTR_FONTWORK_FORM6
-{
-	Text [ en-US ] = "Lower Arc" ;
-};
-String RID_SVXSTR_FONTWORK_FORM7
-{
-	Text [ en-US ] = "Left Arc" ;
-};
-String RID_SVXSTR_FONTWORK_FORM8
-{
-	Text [ en-US ] = "Right Arc" ;
-};
-String RID_SVXSTR_FONTWORK_FORM9
-{
-	Text [ en-US ] = "Open Circle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM10
-{
-	Text [ en-US ] = "Closed Circle" ;
-};
-String RID_SVXSTR_FONTWORK_FORM11
-{
-	Text [ en-US ] = "Closed Circle II" ;
-};
-String RID_SVXSTR_FONTWORK_FORM12
-{
-	Text [ en-US ] = "Open Circle Vertical" ;
-};
-String RID_SVXSTR_FONTWORK_UNDOCREATE
-{
-	Text [ en-US ] = "Create Fontwork object" ;
-};
- // ********************************************************************** EOF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 
+// ********************************************************************** 
+// EOF

Modified: openoffice/branches/ia2/main/svx/source/dialog/hdft.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/hdft.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/hdft.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/hdft.cxx Tue Apr 23 09:51:15 2013
@@ -406,7 +406,7 @@ void SvxHFPage::Reset( const SfxItemSet&
 					0 != (pItem = pShell->GetItem(SID_HTML_MODE))))
 	{
 		nHtmlMode = ((SfxUInt16Item*)pItem)->GetValue();
-		if(nHtmlMode && HTMLMODE_ON)
+		if(nHtmlMode & HTMLMODE_ON)
 		{
 			aCntSharedBox.Hide();
 			aBackgroundBtn.Hide();

Modified: openoffice/branches/ia2/main/svx/source/dialog/sdstring.src
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/sdstring.src?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/sdstring.src (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/sdstring.src Tue Apr 23 09:51:15 2013
@@ -45,7 +45,7 @@ String RID_SVXSTR_LINESTYLE
 };
 String RID_SVXSTR_INVISIBLE
 {
-	Text [ en-US ] = "Invisible" ;
+	Text [ en-US ] = "None" ;
 };
 String RID_SVXSTR_COLOR
 {
@@ -992,47 +992,47 @@ String RID_SVXSTR_DASH11_DEF
 
 String RID_SVXSTR_DASH0
 {
-	Text [ en-US ] = "Ultrafine dashed";
+	Text [ en-US ] = "Ultrafine Dashed";
 };
 String RID_SVXSTR_DASH1
 {
-	Text [ en-US ] = "Fine dashed";
+	Text [ en-US ] = "Fine Dashed";
 };
 String RID_SVXSTR_DASH2
 {
-	Text [ en-US ] = "Ultrafine 2 dots 3 dashes";
+	Text [ en-US ] = "Ultrafine 2 Dots 3 Dashes";
 };
 String RID_SVXSTR_DASH3
 {
-	Text [ en-US ] = "Fine dotted";
+	Text [ en-US ] = "Fine Dotted";
 };
 String RID_SVXSTR_DASH4
 {
-	Text [ en-US ] = "Line with fine dots";
+	Text [ en-US ] = "Line with Fine Dots";
 };
 String RID_SVXSTR_DASH5
 {
-	Text [ en-US ] = "Fine dashed (variable)";
+	Text [ en-US ] = "Fine Dashed (var)";
 };
 String RID_SVXSTR_DASH6
 {
-	Text [ en-US ] = "3 dashes 3 dots (variable)";
+	Text [ en-US ] = "3 Dashes 3 Dots (var)";
 };
 String RID_SVXSTR_DASH7
 {
-	Text [ en-US ] = "Ultrafine dotted (variable)";
+	Text [ en-US ] = "Ultrafine Dotted (var)";
 };
 String RID_SVXSTR_DASH8
 {
-	Text [ en-US ] = "Line style 9";
+	Text [ en-US ] = "Line Style 9";
 };
 String RID_SVXSTR_DASH9
 {
-	Text [ en-US ] = "2 dots 1 dash";
+	Text [ en-US ] = "2 Dots 1 Dash";
 };
 String RID_SVXSTR_DASH10
 {
-	Text [ en-US ] = "Dashed (variable)";
+	Text [ en-US ] = "Dashed (var)";
 };
 String RID_SVXSTR_DASH11
 {

Modified: openoffice/branches/ia2/main/svx/source/dialog/sendreportunx.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/sendreportunx.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/sendreportunx.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/sendreportunx.cxx Tue Apr 23 09:51:15 2013
@@ -239,7 +239,7 @@ namespace svx{
             int ret = -1;
             rtl::OUString path1(
                 RTL_CONSTASCII_USTRINGPARAM(
-                    "$BRAND_BASE_DIR/program/crashrep"));
+                    "$OOO_BASE_DIR/program/crashrep"));
             rtl::Bootstrap::expandMacros(path1);
             rtl::OString path2;
             if ((osl::FileBase::getSystemPathFromFileURL(path1, path1) ==

Modified: openoffice/branches/ia2/main/svx/source/dialog/sendreportw32.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/sendreportw32.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/sendreportw32.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/sendreportw32.cxx Tue Apr 23 09:51:15 2013
@@ -93,7 +93,7 @@ namespace svx{
 
 			if ( ERROR_SUCCESS == RegReadValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPProxyServer"),
 				szBuffer,
 				sizeof(szBuffer) ) )
@@ -102,7 +102,7 @@ namespace svx{
 			DWORD	dwProxyPort;
 			if ( ERROR_SUCCESS == RegReadValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPProxyPort"),
 				&dwProxyPort,
 				sizeof(dwProxyPort) ) )
@@ -113,7 +113,7 @@ namespace svx{
 
 			if ( ERROR_SUCCESS == RegReadValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("ReturnAddress"),
 				szBuffer,
 				sizeof(szBuffer) ) )
@@ -122,7 +122,7 @@ namespace svx{
 			DWORD	fAllowContact = sal_False;
 			RegReadValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("AllowContact"),
 				&fAllowContact,
 				sizeof(fAllowContact) );
@@ -131,7 +131,7 @@ namespace svx{
 			DWORD	uInternetConnection = 0;
 			RegReadValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPConnection"),
 				&uInternetConnection,
 				sizeof(uInternetConnection) );
@@ -145,7 +145,7 @@ namespace svx{
 			const _TCHAR	*lpHTTPProxyServer = reinterpret_cast<LPCTSTR>(maParams.maHTTPProxyServer.GetBuffer());
 			RegWriteValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPProxyServer"), REG_SZ,
 				lpHTTPProxyServer,
 				sizeof(TCHAR) * (_tcslen(lpHTTPProxyServer) + 1) );
@@ -155,7 +155,7 @@ namespace svx{
 
 			RegWriteValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPProxyPort"), REG_DWORD,
 				&dwProxyPort,
 				sizeof(DWORD) );
@@ -163,7 +163,7 @@ namespace svx{
 			DWORD	fAllowContact = IsContactAllowed();
 			RegWriteValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("AllowContact"), REG_DWORD,
 				&fAllowContact,
 				sizeof(DWORD) );
@@ -173,7 +173,7 @@ namespace svx{
 
 			RegWriteValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("HTTPConnection"), REG_DWORD,
 				&uInternetConnection,
 				sizeof(DWORD) );
@@ -181,7 +181,7 @@ namespace svx{
 			const _TCHAR	*lpEmail = reinterpret_cast<LPCTSTR>(GetEMailAddress().GetBuffer());
 			RegWriteValue(
 				HKEY_CURRENT_USER,
-				TEXT("SOFTWARE\\Apache OpenOffice\\CrashReport"),
+				TEXT("SOFTWARE\\OpenOffice\\CrashReport"),
 				TEXT("ReturnAddress"), REG_SZ,
 				lpEmail,
 				sizeof(TCHAR) * (_tcslen(lpEmail) + 1) );

Modified: openoffice/branches/ia2/main/svx/source/dialog/svxbmpnumvalueset.src
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/dialog/svxbmpnumvalueset.src?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/dialog/svxbmpnumvalueset.src (original)
+++ openoffice/branches/ia2/main/svx/source/dialog/svxbmpnumvalueset.src Tue Apr 23 09:51:15 2013
@@ -57,7 +57,8 @@ String RID_SVXSTR_BULLET_DESCRIPTION_7
 };
 String RID_SVXSTR_SINGLENUM_DESCRIPTION_0
 {
-    Text [en-US] = "Number 1) 2) 3)";
+    //Text [en-US] = "Number 1) 2) 3)";
+    Text [en-US] = "Number %NUMBERINGSAMPLE";
 };
 String RID_SVXSTR_SINGLENUM_DESCRIPTION_1
 {

Modified: openoffice/branches/ia2/main/svx/source/gallery2/galbrws.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/gallery2/galbrws.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/gallery2/galbrws.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/gallery2/galbrws.cxx Tue Apr 23 09:51:15 2013
@@ -19,8 +19,6 @@
  * 
  *************************************************************/
 
-
-
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_svx.hxx"
 
@@ -35,48 +33,9 @@
 #include "galbrws1.hxx"
 #include "galbrws2.hxx"
 #include "svx/galbrws.hxx"
+#include "GallerySplitter.hxx"
 
-// -------------------
-// - GallerySplitter -
-// -------------------
-
-class GallerySplitter : public Splitter
-{
-protected:
-
-    virtual void    DataChanged( const DataChangedEvent& rDCEvt );
-
-public:
-
-                    GallerySplitter( Window* pParent, const ResId& rResId );
-    virtual         ~GallerySplitter();
-};
-
-// -----------------------------------------------------------------------------
-DBG_NAME(GallerySplitter)
-
-GallerySplitter::GallerySplitter( Window* pParent, const ResId& rResId ) :
-    Splitter( pParent, rResId )
-{
-    DBG_CTOR(GallerySplitter,NULL);
-
-}
-
-// -----------------------------------------------------------------------------
-
-GallerySplitter::~GallerySplitter()
-{
-
-    DBG_DTOR(GallerySplitter,NULL);
-}
-
-// -----------------------------------------------------------------------------
-
-void GallerySplitter::DataChanged( const DataChangedEvent& rDCEvt )
-{
-    Splitter::DataChanged( rDCEvt );
-    static_cast< GalleryBrowser* >( GetParent() )->InitSettings();
-}
+#include <boost/bind.hpp>
 
 // -------------------------
 // - SvxGalleryChildWindow -
@@ -110,24 +69,40 @@ SFX_IMPL_DOCKINGWINDOW( GalleryChildWind
 // ------------------
 DBG_NAME(GalleryBrowser)
 
-GalleryBrowser::GalleryBrowser( SfxBindings* _pBindings, SfxChildWindow* pCW,
-								Window* pParent, const ResId& rResId ) :
-	SfxDockingWindow( _pBindings, pCW, pParent, rResId )
+GalleryBrowser::GalleryBrowser(
+    SfxBindings* _pBindings, 
+    SfxChildWindow* pCW,
+    Window* pParent, 
+    const ResId& rResId) 
+:   SfxDockingWindow(_pBindings, pCW, pParent, rResId),
+    maLastSize(GetOutputSizePixel()),
+    mpSplitter(0),
+    mpBrowser1(0),
+    mpBrowser2(0),
+    mpGallery(0)
 {
     DBG_CTOR(GalleryBrowser,NULL);
 
 	mpGallery = Gallery::GetGalleryInstance();
-	mpBrowser1 = new GalleryBrowser1( this, GAL_RESID( GALLERY_BROWSER1 ), mpGallery );
-	mpSplitter = new GallerySplitter( this, GAL_RESID( GALLERY_SPLITTER ) );
+	mpBrowser1 = new GalleryBrowser1(
+        this,
+        GAL_RESID( GALLERY_BROWSER1 ),
+        mpGallery,
+        ::boost::bind(&GalleryBrowser::KeyInput,this,_1,_2),
+        ::boost::bind(&GalleryBrowser::ThemeSelectionHasChanged, this));
+	mpSplitter = new GallerySplitter( this, GAL_RESID( GALLERY_SPLITTER ),
+        ::boost::bind(&GalleryBrowser::InitSettings, this));
 	mpBrowser2 = new GalleryBrowser2( this, GAL_RESID( GALLERY_BROWSER2 ), mpGallery );
 
 	FreeResource();
-	SetMinOutputSizePixel( maLastSize = GetOutputSizePixel() );
+	SetMinOutputSizePixel(maLastSize);
 
 	mpBrowser1->SelectTheme( 0 );
 	mpBrowser1->Show( sal_True );
 	mpBrowser2->Show( sal_True );
 
+    const bool bLayoutHorizontal(maLastSize.Width() > maLastSize.Height());
+    mpSplitter->SetHorizontal(bLayoutHorizontal);
 	mpSplitter->SetSplitHdl( LINK( this, GalleryBrowser, SplitHdl ) );
 	mpSplitter->Show( sal_True );
 
@@ -170,25 +145,64 @@ void GalleryBrowser::InitSettings()
 
 void GalleryBrowser::Resize()
 {
-	SfxDockingWindow::Resize();
+    // call parent
+    SfxDockingWindow::Resize();
 
-	const long	nFrameWidth = LogicToPixel( Size( 3, 0 ), MAP_APPFONT ).Width();
-	const long	nFrameWidth2 = nFrameWidth << 1;
-	Size		aMinSize( GetMinOutputSizePixel() );
-	Size		aNewSize( GetOutputSizePixel() );
-	Point		aSplitPos( mpSplitter->GetPosPixel() );
-	const Size	aSplitSize( mpSplitter->GetOutputSizePixel() );
+    // update hor/ver
+    const Size aNewSize( GetOutputSizePixel() );
+    const bool bNewLayoutHorizontal(aNewSize.Width() > aNewSize.Height());
+    const bool bOldLayoutHorizontal(mpSplitter->IsHorizontal());
+    const long nSplitPos( bOldLayoutHorizontal ? mpSplitter->GetPosPixel().X() : mpSplitter->GetPosPixel().Y());
+    const long nSplitSize( bOldLayoutHorizontal ? mpSplitter->GetOutputSizePixel().Width() : mpSplitter->GetOutputSizePixel().Height());
 
-	mpBrowser1->SetPosSizePixel( Point( nFrameWidth, nFrameWidth ),
-								 Size( aSplitPos.X() - nFrameWidth, aNewSize.Height() - nFrameWidth2 ) );
+    if(bNewLayoutHorizontal != bOldLayoutHorizontal)
+    {
+        mpSplitter->SetHorizontal(bNewLayoutHorizontal);
+    }
 
-	mpSplitter->SetPosSizePixel( aSplitPos, Size( aSplitSize.Width(), aNewSize.Height() ) );
-	mpSplitter->SetDragRectPixel( Rectangle( Point( nFrameWidth2, 0 ), Size( aNewSize.Width() - ( nFrameWidth2 << 1 ) - aSplitSize.Width(), aNewSize.Height() ) ) );
+    const long nFrameLen = LogicToPixel( Size( 3, 0 ), MAP_APPFONT ).Width();
+    const long nFrameLen2 = nFrameLen << 1;
 
-	mpBrowser2->SetPosSizePixel( Point( aSplitPos.X() + aSplitSize.Width(), nFrameWidth ),
-								 Size( aNewSize.Width() - aSplitSize.Width() - aSplitPos.X() - nFrameWidth, aNewSize.Height() - nFrameWidth2 ) );
+    if(bNewLayoutHorizontal)
+    {
+        mpBrowser1->SetPosSizePixel( 
+            Point( nFrameLen, nFrameLen ),
+            Size(nSplitPos - nFrameLen, aNewSize.Height() - nFrameLen2) );
+
+        mpSplitter->SetPosSizePixel( 
+            Point( nSplitPos, 0),
+            Size( nSplitSize, aNewSize.Height() ) );
+
+        mpSplitter->SetDragRectPixel( 
+            Rectangle( 
+                Point( nFrameLen2, 0 ), 
+                Size( aNewSize.Width() - ( nFrameLen2 << 1 ) - nSplitSize, aNewSize.Height() ) ) );
+
+        mpBrowser2->SetPosSizePixel( 
+            Point( nSplitPos + nSplitSize, nFrameLen ),
+            Size( aNewSize.Width() - nSplitSize - nSplitPos - nFrameLen, aNewSize.Height() - nFrameLen2 ) );
+    }
+    else
+    {
+        mpBrowser1->SetPosSizePixel( 
+            Point( nFrameLen, nFrameLen ),
+            Size(aNewSize.Width() - nFrameLen2, nSplitPos - nFrameLen));
+
+        mpSplitter->SetPosSizePixel( 
+            Point( 0, nSplitPos),
+            Size( aNewSize.Width(), nSplitSize ) );
+
+        mpSplitter->SetDragRectPixel( 
+            Rectangle( 
+                Point( 0, nFrameLen2 ), 
+                Size( aNewSize.Width(), aNewSize.Height() - ( nFrameLen2 << 1 ) - nSplitSize ) ));
+
+        mpBrowser2->SetPosSizePixel( 
+            Point( nFrameLen, nSplitPos + nSplitSize ),
+            Size( aNewSize.Width() - nFrameLen2, aNewSize.Height() - nSplitSize - nSplitPos - nFrameLen ));
+    }
 
-	maLastSize = aNewSize;
+    maLastSize = aNewSize;
 }
 
 // -----------------------------------------------------------------------------
@@ -289,8 +303,19 @@ sal_Bool GalleryBrowser::IsLinkage() con
 
 IMPL_LINK( GalleryBrowser, SplitHdl, void*, EMPTYARG )
 {
-	mpSplitter->SetPosPixel( Point( mpSplitter->GetSplitPosPixel(), mpSplitter->GetPosPixel().Y() ) );
-	Resize();
+    if(mpSplitter->IsHorizontal())
+    {
+        mpSplitter->SetPosPixel( Point( mpSplitter->GetSplitPosPixel(), mpSplitter->GetPosPixel().Y() ) );
+    }
+    else
+    {
+        mpSplitter->SetPosPixel( Point( mpSplitter->GetPosPixel().X(), mpSplitter->GetSplitPosPixel() ) );
+    }
+    
+    Resize();
 
 	return 0L;
 }
+
+// -----------------------------------------------------------------------------
+// eof

Modified: openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.cxx Tue Apr 23 09:51:15 2013
@@ -147,7 +147,13 @@ long GalleryThemeListBox::PreNotify( Not
 // -------------------
 DBG_NAME(GalleryBrowser1)
 
-GalleryBrowser1::GalleryBrowser1( GalleryBrowser* pParent, const ResId& rResId, Gallery* pGallery ) :
+GalleryBrowser1::GalleryBrowser1(
+    Window* pParent,
+    const ResId& rResId,
+    Gallery* pGallery,
+    const ::boost::function<sal_Bool(const KeyEvent&,Window*)>& rKeyInputHandler,
+    const ::boost::function<void(void)>& rThemeSlectionHandler)
+    :
     Control               ( pParent, rResId ),
     maNewTheme            ( this, WB_3DLOOK ),
     mpThemes              ( new GalleryThemeListBox( this, WB_TABSTOP | WB_3DLOOK | WB_BORDER | WB_HSCROLL | WB_VSCROLL | WB_AUTOHSCROLL | WB_SORT ) ),
@@ -157,7 +163,9 @@ GalleryBrowser1::GalleryBrowser1( Galler
     aImgNormal            ( GalleryResGetBitmapEx( RID_SVXBMP_THEME_NORMAL ) ),
     aImgDefault           ( GalleryResGetBitmapEx( RID_SVXBMP_THEME_DEFAULT ) ),
     aImgReadOnly          ( GalleryResGetBitmapEx( RID_SVXBMP_THEME_READONLY ) ),
-    aImgImported          ( GalleryResGetBitmapEx( RID_SVXBMP_THEME_IMPORTED ) )
+    aImgImported          ( GalleryResGetBitmapEx( RID_SVXBMP_THEME_IMPORTED ) ),
+    maKeyInputHandler(rKeyInputHandler),
+    maThemeSlectionHandler(rThemeSlectionHandler)
 {
     DBG_CTOR(GalleryBrowser1,NULL);
 
@@ -591,7 +599,9 @@ void GalleryBrowser1::ShowContextMenu()
 
 sal_Bool GalleryBrowser1::KeyInput( const KeyEvent& rKEvt, Window* pWindow )
 {
-    sal_Bool bRet = static_cast< GalleryBrowser* >( GetParent() )->KeyInput( rKEvt, pWindow );
+    sal_Bool bRet (sal_False);
+    if (maKeyInputHandler)
+        bRet = maKeyInputHandler(rKEvt, pWindow);
 
     if( !bRet )
     {
@@ -699,7 +709,8 @@ IMPL_LINK( GalleryBrowser1, PopupMenuHdl
 
 IMPL_LINK( GalleryBrowser1, SelectThemeHdl, void*, EMPTYARG )
 {
-	( (GalleryBrowser*) GetParent() )->ThemeSelectionHasChanged();
+    if (maThemeSlectionHandler)
+        maThemeSlectionHandler();
 	return 0L;
 }
 

Modified: openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.hxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.hxx (original)
+++ openoffice/branches/ia2/main/svx/source/gallery2/galbrws1.hxx Tue Apr 23 09:51:15 2013
@@ -28,6 +28,8 @@
 #include <vector>
 #include "svx/galbrws.hxx"
 
+#include <boost/function.hpp>
+
 // -----------------
 // - GalleryButton -
 // -----------------
@@ -74,9 +76,12 @@ class VclAbstractDialog2;
 struct ExchangeData;
 class SfxItemSet;
 
+namespace svx { namespace sidebar { class GalleryControl; } }
+
 class GalleryBrowser1 : public Control, SfxListener
 {
 	friend class GalleryBrowser;
+	friend class svx::sidebar::GalleryControl;
 	friend class GalleryThemeListBox;
 	using Control::Notify;
 	using Window::KeyInput;
@@ -94,6 +99,9 @@ private:
 	Image					aImgReadOnly;
 	Image					aImgImported;
 
+    ::boost::function<sal_Bool(const KeyEvent&,Window*)> maKeyInputHandler;
+    ::boost::function<void(void)> maThemeSlectionHandler;
+    
 	void					ImplAdjustControls();
 	sal_uIntPtr					ImplInsertThemeEntry( const GalleryThemeEntry* pEntry );
 	void					ImplFillExchangeData( const GalleryTheme* pThm, ExchangeData& rData );
@@ -119,8 +127,13 @@ private:
 
 public:
 
-							GalleryBrowser1( GalleryBrowser* pParent, const ResId& rResId, Gallery* pGallery );
-							~GalleryBrowser1();
+							GalleryBrowser1(
+                                Window* pParent,
+                                const ResId& rResId,
+                                Gallery* pGallery,
+                                const ::boost::function<sal_Bool(const KeyEvent&,Window*)>& rKeyInputHandler,
+                                const ::boost::function<void(void)>& rThemeSlectionHandler);
+    						~GalleryBrowser1();
 
 	void					SelectTheme( const String& rThemeName ) { mpThemes->SelectEntry( rThemeName ); SelectThemeHdl( NULL ); }
 	void					SelectTheme( sal_uIntPtr nThemePos ) { mpThemes->SelectEntryPos( (sal_uInt16) nThemePos ); SelectThemeHdl( NULL ); }

Modified: openoffice/branches/ia2/main/svx/source/gallery2/galbrws2.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/gallery2/galbrws2.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/gallery2/galbrws2.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/gallery2/galbrws2.cxx Tue Apr 23 09:51:15 2013
@@ -53,6 +53,7 @@
 #include <svx/dialmgr.hxx>
 #include <svx/svxdlg.hxx>
 #include <svx/dialogs.hrc>
+#include "GalleryControl.hxx"
 
 // -----------
 // - Defines -
@@ -315,7 +316,7 @@ void GalleryToolBox::KeyInput( const Key
 // -------------------
 DBG_NAME(GalleryBrowser2)
 
-GalleryBrowser2::GalleryBrowser2( GalleryBrowser* pParent, const ResId& rResId, Gallery* pGallery ) :
+GalleryBrowser2::GalleryBrowser2( Window* pParent, const ResId& rResId, Gallery* pGallery ) :
 	Control				( pParent, rResId ),
 	mpGallery			( pGallery ),
 	mpCurTheme			( NULL ),
@@ -331,7 +332,7 @@ GalleryBrowser2::GalleryBrowser2( Galler
 	mbCurActionIsLinkage( sal_False )
 {
     DBG_CTOR(GalleryBrowser2,NULL);
-
+    
     Image       aDummyImage;
     const Link  aSelectHdl( LINK( this, GalleryBrowser2, SelectObjectHdl ) );
     Font        aInfoFont( maInfoBar.GetControlFont() );
@@ -574,7 +575,16 @@ sal_Bool GalleryBrowser2::KeyInput( cons
 {
     Point		aSelPos;
 	const sal_uIntPtr	nItemId = ImplGetSelectedItemId( NULL, aSelPos );
-    sal_Bool        bRet = static_cast< GalleryBrowser* >( GetParent() )->KeyInput( rKEvt, pWindow );
+    GalleryBrowser* pParentBrowser = dynamic_cast<GalleryBrowser*>(GetParent());
+    sal_Bool bRet = sal_False;
+    if (pParentBrowser != NULL)
+        bRet = pParentBrowser->KeyInput( rKEvt, pWindow );
+    else
+    {
+        svx::sidebar::GalleryControl* pParentControl = dynamic_cast<svx::sidebar::GalleryControl*>(GetParent());
+        if (pParentControl != NULL)
+            bRet = pParentControl->KeyInput(rKEvt, pWindow);
+    }
 
     if( !bRet && !maViewBox.HasFocus() && nItemId && mpCurTheme )
     {

Modified: openoffice/branches/ia2/main/svx/source/gallery2/gallery1.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/gallery2/gallery1.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/gallery2/gallery1.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/gallery2/gallery1.cxx Tue Apr 23 09:51:15 2013
@@ -77,7 +77,12 @@ GalleryThemeEntry::GalleryThemeEntry( co
 	SetModified( _bNewFile );
 
 	if( nId && bThemeNameFromResource )
-		aName = String( GAL_RESID( RID_GALLERYSTR_THEME_START + (sal_uInt16) nId ) );
+    {
+        const ResId aId (GAL_RESID( RID_GALLERYSTR_THEME_START + (sal_uInt16) nId));
+        if (aId.GetpResource() == NULL)
+            OSL_TRACE("");
+        aName = String(aId);
+    }
 
 	if( !aName.Len() )
 		aName = rName;

Modified: openoffice/branches/ia2/main/svx/source/items/customshapeitem.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/items/customshapeitem.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/items/customshapeitem.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/items/customshapeitem.cxx Tue Apr 23 09:51:15 2013
@@ -43,19 +43,6 @@ SdrCustomShapeDataItem::SdrCustomShapeDa
 :	SfxStringItem( SDRATTR_CUSTOMSHAPE_DATA, rVal )
 {}
 
-bool SdrCustomShapeGeometryItem::PropertyEq::operator()( const rtl::OUString& r1, const rtl::OUString& r2 ) const
-{
-	return r1.equals( r2 );
-}
-bool SdrCustomShapeGeometryItem::PropertyPairEq::operator()( const SdrCustomShapeGeometryItem::PropertyPair& r1, const SdrCustomShapeGeometryItem::PropertyPair& r2 ) const
-{
-	return ( r1.first.equals( r2.first ) ) && ( r1.second.equals( r2.second ) );
-}
-size_t SdrCustomShapeGeometryItem::PropertyPairHash::operator()( const SdrCustomShapeGeometryItem::PropertyPair &r1 ) const
-{
-	return (size_t)r1.first.hashCode() + r1.second.hashCode();
-};
-
 TYPEINIT1_FACTORY( SdrCustomShapeGeometryItem, SfxPoolItem , new  SdrCustomShapeGeometryItem);
 SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem()
 :	SfxPoolItem( SDRATTR_CUSTOMSHAPE_GEOMETRY )

Modified: openoffice/branches/ia2/main/svx/source/items/drawitem.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/items/drawitem.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/items/drawitem.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/items/drawitem.cxx Tue Apr 23 09:51:15 2013
@@ -55,7 +55,7 @@ SvxColorTableItem::SvxColorTableItem()
 
 // -----------------------------------------------------------------------
 
-SvxColorTableItem::SvxColorTableItem( XColorTable* pTable, sal_uInt16 nW ) :
+SvxColorTableItem::SvxColorTableItem( XColorList* pTable, sal_uInt16 nW ) :
 	SfxPoolItem( nW ),
 	pColorTable( pTable )
 {
@@ -120,7 +120,7 @@ sal_Bool SvxColorTableItem::PutValue( co
     sal_Int64 aValue = 0;
     if ( rVal >>= aValue )
     {
-        pColorTable = (XColorTable *)(sal_uLong)aValue;
+        pColorTable = (XColorList*)(sal_uLong)aValue;
         return sal_True;
     }
 

Modified: openoffice/branches/ia2/main/svx/source/items/svxitems.src
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/items/svxitems.src?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/items/svxitems.src (original)
+++ openoffice/branches/ia2/main/svx/source/items/svxitems.src Tue Apr 23 09:51:15 2013
@@ -211,7 +211,7 @@ String RID_SVXITEMS_BRUSHSTYLE_BITMAP
 {
 	Text [ en-US ] = "Image" ;
 };
- 
+// end enum ColorName -----------------------------------------------------------
 String RID_SVXITEMS_HORJUST_STANDARD
 {
 	Text [ en-US ] = "Horizontal alignment default" ;

Modified: openoffice/branches/ia2/main/svx/source/mnuctrls/SmartTagCtl.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/mnuctrls/SmartTagCtl.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/mnuctrls/SmartTagCtl.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/mnuctrls/SmartTagCtl.cxx Tue Apr 23 09:51:15 2013
@@ -104,7 +104,7 @@ void SvxSmartTagsControl::FillMenu()
 
         const sal_Int32 nSmartTagIndex = rActionIndices[0];
         const rtl::OUString aSmartTagType = xAction->getSmartTagName( nSmartTagIndex );
-        const rtl::OUString aSmartTagCaption = xAction->getSmartTagCaption( nSmartTagIndex, rLocale );
+        const rtl::OUString aSmartTagCaption = xAction->getSmartTagCaption( nSmartTagIndex, rLocale);
 
         // no sub-menues if there's only one smart tag type listed:
         PopupMenu* pSbMenu = mpMenu;
@@ -127,7 +127,7 @@ void SvxSmartTagsControl::FillMenu()
         {
             xAction = rActionComponents[i];
 
-            for ( sal_Int32 k = 0; k < xAction->getActionCount( aSmartTagType, xController ); ++k )
+            for ( sal_Int32 k = 0; k < xAction->getActionCount( aSmartTagType, xController, xSmartTagProperties ); ++k )
             {
                 const sal_uInt32 nActionID = xAction->getActionID( aSmartTagType, k, xController );
                 rtl::OUString aActionCaption = xAction->getActionCaptionFromID( nActionID,

Modified: openoffice/branches/ia2/main/svx/source/sdr/attribute/sdrformtextattribute.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sdr/attribute/sdrformtextattribute.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sdr/attribute/sdrformtextattribute.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/sdr/attribute/sdrformtextattribute.cxx Tue Apr 23 09:51:15 2013
@@ -56,27 +56,27 @@
 
 namespace
 {
-	basegfx::B2DLineJoin impGetB2DLineJoin(XLineJoint eLineJoint)
+	basegfx::B2DLineJoin impGetB2DLineJoin(com::sun::star::drawing::LineJoint eLineJoint)
 	{
 		switch(eLineJoint)
 		{
-			case XLINEJOINT_MIDDLE	: 
+			case com::sun::star::drawing::LineJoint_MIDDLE : 
 			{
 				return basegfx::B2DLINEJOIN_MIDDLE;	
 			}
-			case XLINEJOINT_BEVEL	: 
+			case com::sun::star::drawing::LineJoint_BEVEL : 
 			{
 				return basegfx::B2DLINEJOIN_BEVEL;	
 			}
-			case XLINEJOINT_MITER	: 
+			case com::sun::star::drawing::LineJoint_MITER : 
 			{
 				return basegfx::B2DLINEJOIN_MITER;	
 			}
-			case XLINEJOINT_ROUND	: 
+			case com::sun::star::drawing::LineJoint_ROUND : 
 			{
 				return basegfx::B2DLINEJOIN_ROUND;	
 			}
-			default : 
+			default : // com::sun::star::drawing::LineJoint_NONE
 			{
 				return basegfx::B2DLINEJOIN_NONE; // XLINEJOINT_NONE
 			}
@@ -115,7 +115,7 @@ namespace
 		}
 
 		const sal_uInt32 nLineWidth = ((const XLineWidthItem&)(rSet.Get(XATTR_LINEWIDTH))).GetValue();
-		const XLineJoint eLineJoint = ((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue();
+		const com::sun::star::drawing::LineJoint eLineJoint = ((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue();
 		const com::sun::star::drawing::LineCap eLineCap = ((const XLineCapItem&)(rSet.Get(XATTR_LINECAP))).GetValue();
 
 		return drawinglayer::attribute::LineAttribute(

Modified: openoffice/branches/ia2/main/svx/source/sdr/primitive2d/sdrattributecreator.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sdr/primitive2d/sdrattributecreator.cxx?rev=1470868&r1=1470867&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sdr/primitive2d/sdrattributecreator.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/sdr/primitive2d/sdrattributecreator.cxx Tue Apr 23 09:51:15 2013
@@ -137,29 +137,29 @@ namespace drawinglayer
 			}
 		}
 
-		basegfx::B2DLineJoin XLineJointtoB2DLineJoin(XLineJoint eLineJoint)
+		basegfx::B2DLineJoin LineJointToB2DLineJoin(com::sun::star::drawing::LineJoint eLineJoint)
 		{
 			switch(eLineJoint)
 			{
-				case XLINEJOINT_MIDDLE : 
+				case com::sun::star::drawing::LineJoint_MIDDLE : 
 				{
 					return basegfx::B2DLINEJOIN_MIDDLE;
 				}
-				case XLINEJOINT_BEVEL : 
+				case com::sun::star::drawing::LineJoint_BEVEL : 
 				{
 					return basegfx::B2DLINEJOIN_BEVEL;
 				}
-				case XLINEJOINT_MITER : 
+				case com::sun::star::drawing::LineJoint_MITER : 
 				{
 					return basegfx::B2DLINEJOIN_MITER;	
 				}
-				case XLINEJOINT_ROUND : 
+				case com::sun::star::drawing::LineJoint_ROUND : 
 				{
 					return basegfx::B2DLINEJOIN_ROUND;	
 				}
-				default : 
+				default : // com::sun::star::drawing::LineJoint_NONE
 				{
-					return basegfx::B2DLINEJOIN_NONE; // XLINEJOINT_NONE
+					return basegfx::B2DLINEJOIN_NONE;
 				}
 			}
 		}
@@ -238,7 +238,7 @@ namespace drawinglayer
 				{
 					const sal_uInt32 nWidth(((const XLineWidthItem&)(rSet.Get(XATTR_LINEWIDTH))).GetValue());
 					const Color aColor(((const XLineColorItem&)(rSet.Get(XATTR_LINECOLOR))).GetColorValue());
-					const XLineJoint eJoint(((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue());
+					const com::sun::star::drawing::LineJoint eJoint(((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue());
 					const com::sun::star::drawing::LineCap eCap(((const XLineCapItem&)(rSet.Get(XATTR_LINECAP))).GetValue());
 					::std::vector< double > aDotDashArray;
 					double fFullDotDashLen(0.0);
@@ -254,7 +254,7 @@ namespace drawinglayer
 					}
 
 					return attribute::SdrLineAttribute(
-						XLineJointtoB2DLineJoin(eJoint),
+						LineJointToB2DLineJoin(eJoint),
 						(double)nWidth,
 						(double)nTransparence * 0.01,
 						aColor.getBColor(),
@@ -399,6 +399,26 @@ namespace drawinglayer
 
 				if(100 != nTransparence)
 				{
+                    // need to check XFillFloatTransparence, object fill may still be completely transparent
+                    const SfxPoolItem* pGradientItem;
+
+                    if(SFX_ITEM_SET == rSet.GetItemState(XATTR_FILLFLOATTRANSPARENCE, sal_True, &pGradientItem) 
+                        && ((XFillFloatTransparenceItem*)pGradientItem)->IsEnabled())
+                    {
+                        const XGradient& rGradient = ((XFillFloatTransparenceItem*)pGradientItem)->GetGradientValue();
+                        const sal_uInt8 nStartLuminance(rGradient.GetStartColor().GetLuminance());
+                        const sal_uInt8 nEndLuminance(rGradient.GetEndColor().GetLuminance());
+                        const bool bCompletelyTransparent(0xff == nStartLuminance && 0xff == nEndLuminance);
+
+                        if(bCompletelyTransparent)
+                        {
+                            nTransparence = 100;
+                        }
+                    }
+                }
+
+				if(100 != nTransparence)
+				{
 					const Color aColor(((const XFillColorItem&)(rSet.Get(XATTR_FILLCOLOR))).GetColorValue());
 					attribute::FillGradientAttribute aGradient;
 					attribute::FillHatchAttribute aHatch;
@@ -569,8 +589,13 @@ namespace drawinglayer
 				const sal_uInt8 nStartLuminance(rGradient.GetStartColor().GetLuminance());
 				const sal_uInt8 nEndLuminance(rGradient.GetEndColor().GetLuminance());
 				const bool bCompletelyTransparent(0xff == nStartLuminance && 0xff == nEndLuminance);
+				const bool bNotTransparent(0x00 == nStartLuminance && 0x00 == nEndLuminance);
 
-				if(!bCompletelyTransparent)
+                // create nothing when completely transparent: This case is already checked for the
+                // normal fill attributes, XFILL_NONE will be used.
+                // create nothing when not transparent: use normal fill, no need t create a FillGradientAttribute.
+                // Both cases are optimizations, always creating FillGradientAttribute will work, too
+				if(!bNotTransparent && !bCompletelyTransparent)
 				{
 					const double fStartLum(nStartLuminance / 255.0);
 					const double fEndLum(nEndLuminance / 255.0);

Modified: openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.cxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.cxx Tue Apr 23 09:51:15 2013
@@ -747,8 +747,11 @@ void AreaPropertyPanel::ImpUpdateTranspa
 void AreaPropertyPanel::NotifyItemUpdate( 
     sal_uInt16 nSID, 
     SfxItemState eState, 
-    const SfxPoolItem* pState)
-{	
+    const SfxPoolItem* pState,
+    const bool bIsEnabled)
+{
+    (void)bIsEnabled;
+
 	XFillStyle eXFS;
 	SfxObjectShell* pSh = SfxObjectShell::Current();
     bool bFillTransparenceChanged(false);
@@ -1054,6 +1057,7 @@ void AreaPropertyPanel::NotifyItemUpdate
 
 
 
+
 SfxBindings* AreaPropertyPanel::GetBindings() 
 { 
     return mpBindings; 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.hxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.hxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/area/AreaPropertyPanel.hxx Tue Apr 23 09:51:15 2013
@@ -69,7 +69,8 @@ public:
     virtual void NotifyItemUpdate(
         const sal_uInt16 nSId,
         const SfxItemState eState,
-        const SfxPoolItem* pState);
+        const SfxPoolItem* pState,
+        const bool bIsEnabled);
 
     SfxBindings* GetBindings();
 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx Tue Apr 23 09:51:15 2013
@@ -276,8 +276,11 @@ void GraphicPropertyPanel::DataChanged(
 void GraphicPropertyPanel::NotifyItemUpdate( 
     sal_uInt16 nSID, 
     SfxItemState eState, 
-    const SfxPoolItem* pState)
+    const SfxPoolItem* pState,
+    const bool bIsEnabled)
 {
+    (void)bIsEnabled;
+
 	switch( nSID )
 	{
 	case SID_ATTR_GRAF_LUMINANCE:
@@ -443,6 +446,9 @@ void GraphicPropertyPanel::NotifyItemUpd
 	}
 }
 
+
+
+
 //////////////////////////////////////////////////////////////////////////////
 
 SfxBindings* GraphicPropertyPanel::GetBindings() 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx Tue Apr 23 09:51:15 2013
@@ -52,7 +52,8 @@ public:
     virtual void NotifyItemUpdate(
         const sal_uInt16 nSId,
         const SfxItemState eState,
-        const SfxPoolItem* pState);
+        const SfxPoolItem* pState,
+        const bool bIsEnabled);
 
     SfxBindings* GetBindings();
 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.cxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.cxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.cxx Tue Apr 23 09:51:15 2013
@@ -87,11 +87,6 @@ namespace {
         return bFound ? n : -1;
     }
 
-    Color GetTransparentColor (void)
-    {
-        return COL_TRANSPARENT;
-    }
-
     void FillLineEndListBox(ListBox& rListBoxStart, ListBox& rListBoxEnd, const XLineEndList& rList)
     {
         const sal_uInt32 nCount(rList.Count());
@@ -406,8 +401,11 @@ void LinePropertyPanel::DataChanged(
 void LinePropertyPanel::NotifyItemUpdate( 
     sal_uInt16 nSID, 
     SfxItemState eState, 
-    const SfxPoolItem* pState)
+    const SfxPoolItem* pState,
+    const bool bIsEnabled)
 {
+    (void)bIsEnabled;
+
 	switch(nSID)
 	{
     	case SID_ATTR_LINE_COLOR:
@@ -707,6 +705,7 @@ void LinePropertyPanel::NotifyItemUpdate
 
 
 
+
 SfxBindings* LinePropertyPanel::GetBindings() 
 { 
     return mpBindings; 
@@ -916,10 +915,16 @@ IMPL_LINK( LinePropertyPanel, ChangeTran
 
 
 
+namespace 
+{
+    Color GetTransparentColor (void)
+    {
+        return COL_TRANSPARENT;
+    }
+} // end of anonymous namespace
+
 PopupControl* LinePropertyPanel::CreateColorPopupControl (PopupContainer* pParent)
 {
-    const ResId aResId(SVX_RES(STR_AUTOMATICE));
-    
     return new ColorControl(
         pParent,
         mpBindings,
@@ -928,7 +933,7 @@ PopupControl* LinePropertyPanel::CreateC
         ::boost::bind(GetTransparentColor),
         ::boost::bind(&LinePropertyPanel::SetColor, this, _1, _2),
         pParent,
-        &aResId);
+        0);
 }
 
 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hrc
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hrc?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hrc (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hrc Tue Apr 23 09:51:15 2013
@@ -71,7 +71,6 @@
 
 //color popup page
 #define VS_COLOR		1
-#define STR_AUTOMATICE	2
 
 //style popup page
 #define VS_STYLE				1

Modified: openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hxx?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hxx (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.hxx Tue Apr 23 09:51:15 2013
@@ -79,7 +79,8 @@ public:
     virtual void NotifyItemUpdate(
         const sal_uInt16 nSId,
         const SfxItemState eState,
-        const SfxPoolItem* pState);
+        const SfxPoolItem* pState,
+        const bool bIsEnabled);
 
     SfxBindings* GetBindings();
 

Modified: openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.src
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.src?rev=1470868&r1=1467894&r2=1470868&view=diff
==============================================================================
--- openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.src (original)
+++ openoffice/branches/ia2/main/svx/source/sidebar/line/LinePropertyPanel.src Tue Apr 23 09:51:15 2013
@@ -326,10 +326,6 @@ Control RID_POPUPPANEL_LINEPAGE_COLOR
 		TabStop = TRUE ;
 		Text = "Color";
 	};
-	String STR_AUTOMATICE
-	{
-		Text [ en-US ] = "No Color";
-	};
 };
 Control RID_POPUPPANEL_LINEPAGE_STYLE
 {