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/05/18 12:12:56 UTC

svn commit: r1484083 [2/17] - in /openoffice/branches/ia2: ./ ext_libraries/apr/prj/ ext_libraries/coinmp/prj/ ext_libraries/ratscan/prj/ ext_libraries/serf/prj/ main/ main/avmedia/source/quicktime/ main/bridges/prj/ main/bridges/source/cpp_uno/cxx_mac...

Modified: openoffice/branches/ia2/main/bridges/source/cpp_uno/gcc3_macosx_intel/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/bridges/source/cpp_uno/gcc3_macosx_intel/makefile.mk?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/bridges/source/cpp_uno/gcc3_macosx_intel/makefile.mk (original)
+++ openoffice/branches/ia2/main/bridges/source/cpp_uno/gcc3_macosx_intel/makefile.mk Sat May 18 10:12:43 2013
@@ -24,7 +24,7 @@
 PRJ=..$/..$/..
 
 PRJNAME=bridges
-TARGET=gcc3_uno
+TARGET=$(COMNAME)_uno
 LIBTARGET=no
 ENABLE_EXCEPTIONS=TRUE
 
@@ -34,7 +34,7 @@ ENABLE_EXCEPTIONS=TRUE
 
 # --- Files --------------------------------------------------------
 
-.IF "$(COM)$(OS)$(CPU)$(COMNAME)" == "GCCMACOSXIgcc3"
+.IF "$(OS)$(CPU)" == "MACOSXI"
 
 .IF "$(cppu_no_leak)" == ""
 CFLAGS += -DLEAK_STATIC_DATA

Modified: openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSeriesOrDiagramProperty.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSeriesOrDiagramProperty.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSeriesOrDiagramProperty.hxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSeriesOrDiagramProperty.hxx Sat May 18 10:12:43 2013
@@ -32,7 +32,14 @@
 #include <boost/shared_ptr.hpp>
 #include <vector>
 
+// this operator is not defined by default
+inline bool operator!=( const ::com::sun::star::awt::Size& rSize1, const ::com::sun::star::awt::Size& rSize2 )
+{
+    return (rSize1.Width != rSize2.Width) || (rSize1.Height != rSize2.Height);
+}
+
 //.............................................................................
+
 namespace chart
 {
 namespace wrapper
@@ -44,9 +51,6 @@ enum tSeriesOrDiagramPropertyType
     DIAGRAM
 };
 
-extern bool operator!=( const ::com::sun::star::awt::Size & rSize1,
-                        const ::com::sun::star::awt::Size & rSize2 );
-
 //PROPERTYTYPE is the type of the outer property
 
 template< typename PROPERTYTYPE >

Modified: openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx Sat May 18 10:12:43 2013
@@ -94,12 +94,6 @@ public:
     virtual ~WrappedSymbolBitmapURLProperty();
 };
 
-// this operator is not defined by default
-bool operator!=( const awt::Size & rSize1, const awt::Size & rSize2 )
-{
-    return (rSize1.Width != rSize2.Width) || (rSize1.Height != rSize2.Height);
-}
-
 class WrappedSymbolSizeProperty : public WrappedSeriesOrDiagramProperty< awt::Size >
 {
 public:

Modified: openoffice/branches/ia2/main/chart2/source/controller/dialogs/dlg_View3D.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/dialogs/dlg_View3D.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/dialogs/dlg_View3D.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/dialogs/dlg_View3D.cxx Sat May 18 10:12:43 2013
@@ -55,7 +55,7 @@ using namespace ::com::sun::star::chart2
 
 sal_uInt16 View3DDialog::m_nLastPageId = 0;
 
-View3DDialog::View3DDialog(Window* pParent, const uno::Reference< frame::XModel > & xChartModel, XColorList* pColorTable )
+View3DDialog::View3DDialog(Window* pParent, const uno::Reference< frame::XModel > & xChartModel, XColorListSharedPtr aColorTable )
     : TabDialog(pParent,SchResId(DLG_3D_VIEW))
     , m_aTabControl(this,SchResId(TABCTRL))
     , m_aBtnOK(this,SchResId(BTN_OK))
@@ -71,7 +71,7 @@ View3DDialog::View3DDialog(Window* pPare
     uno::Reference< beans::XPropertySet > xSceneProperties( ChartModelHelper::findDiagram( xChartModel ), uno::UNO_QUERY );
     m_pGeometry   = new ThreeD_SceneGeometry_TabPage(&m_aTabControl,xSceneProperties,m_aControllerLocker);
     m_pAppearance = new ThreeD_SceneAppearance_TabPage(&m_aTabControl,xChartModel,m_aControllerLocker);
-    m_pIllumination = new ThreeD_SceneIllumination_TabPage(&m_aTabControl,xSceneProperties,xChartModel,pColorTable);
+    m_pIllumination = new ThreeD_SceneIllumination_TabPage(&m_aTabControl,xSceneProperties,xChartModel,aColorTable);
 
     m_aTabControl.InsertPage( TP_3D_SCENEGEOMETRY, String(SchResId(STR_PAGE_PERSPECTIVE)) );
     m_aTabControl.InsertPage( TP_3D_SCENEAPPEARANCE, String(SchResId(STR_PAGE_APPEARANCE)) );

Modified: openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx Sat May 18 10:12:43 2013
@@ -284,7 +284,7 @@ namespace
 ThreeD_SceneIllumination_TabPage::ThreeD_SceneIllumination_TabPage( Window* pWindow
                 , const uno::Reference< beans::XPropertySet > & xSceneProperties
                 , const uno::Reference< frame::XModel >& xChartModel
-                , XColorList* pColorTable )
+                , XColorListSharedPtr aColorTable )
                 : TabPage 	        ( pWindow, SchResId( TP_3D_SCENEILLUMINATION ) )
                 , m_aFT_LightSource( this, SchResId( FT_LIGHTSOURCE ) )
                 , m_aBtn_Light1( this, SchResId( BTN_LIGHT_1 ), 1 )
@@ -310,10 +310,10 @@ ThreeD_SceneIllumination_TabPage::ThreeD
 {
 	FreeResource();
 
-    if(pColorTable)
+    if(aColorTable.get())
     {
-        m_aLB_AmbientLight.Fill( pColorTable );
-        m_aLB_LightSource.Fill( pColorTable );
+        m_aLB_AmbientLight.Fill( aColorTable );
+        m_aLB_LightSource.Fill( aColorTable );
     }
     m_aLB_AmbientLight.SetDropDownLineCount(10);
     m_aLB_LightSource.SetDropDownLineCount(10);

Modified: openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx Sat May 18 10:12:43 2013
@@ -79,7 +79,7 @@ public:
         const ::com::sun::star::uno::Reference<
             ::com::sun::star::beans::XPropertySet > & xSceneProperties,
         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel,
-        XColorList* pColorTable=0 );
+        XColorListSharedPtr aColorTable );
 	virtual ~ThreeD_SceneIllumination_TabPage();
 
     // has to be called in case the dialog was closed with OK

Modified: openoffice/branches/ia2/main/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx Sat May 18 10:12:43 2013
@@ -89,41 +89,41 @@ ViewElementListProvider::~ViewElementLis
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
-XColorList*   ViewElementListProvider::GetColorTable() const
+XColorListSharedPtr ViewElementListProvider::GetColorTable() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetColorTable();
-    return NULL;
+        return m_pDrawModelWrapper->GetColorTableFromSdrModel();
+    return XColorListSharedPtr();
 }
-XDashList*     ViewElementListProvider::GetDashList() const
+XDashListSharedPtr ViewElementListProvider::GetDashList() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetDashList();
-    return NULL;
+        return m_pDrawModelWrapper->GetDashListFromSdrModel();
+    return XDashListSharedPtr();
 }
-XLineEndList*  ViewElementListProvider::GetLineEndList() const
+XLineEndListSharedPtr ViewElementListProvider::GetLineEndList() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetLineEndList();
-    return NULL;
+        return m_pDrawModelWrapper->GetLineEndListFromSdrModel();
+    return XLineEndListSharedPtr();
 }
-XGradientList* ViewElementListProvider::GetGradientList() const
+XGradientListSharedPtr ViewElementListProvider::GetGradientList() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetGradientList();
-    return NULL;
+        return m_pDrawModelWrapper->GetGradientListFromSdrModel();
+    return XGradientListSharedPtr();
 }
-XHatchList*    ViewElementListProvider::GetHatchList() const
+XHatchListSharedPtr ViewElementListProvider::GetHatchList() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetHatchList();
-    return NULL;
+        return m_pDrawModelWrapper->GetHatchListFromSdrModel();
+    return XHatchListSharedPtr();
 }
-XBitmapList*   ViewElementListProvider::GetBitmapList() const
+XBitmapListSharedPtr ViewElementListProvider::GetBitmapList() const
 {
     if(m_pDrawModelWrapper)
-        return m_pDrawModelWrapper->GetBitmapList();
-    return NULL;
+        return m_pDrawModelWrapper->GetBitmapListFromSdrModel();
+    return XBitmapListSharedPtr();
 }
 
 //-----------------------------------------------------------------------------

Modified: openoffice/branches/ia2/main/chart2/source/controller/inc/ViewElementListProvider.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/inc/ViewElementListProvider.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/inc/ViewElementListProvider.hxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/inc/ViewElementListProvider.hxx Sat May 18 10:12:43 2013
@@ -41,12 +41,12 @@ public:
     ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper );
     virtual ~ViewElementListProvider();
 
-    XColorList*    GetColorTable() const;
-    XDashList*      GetDashList() const;
-    XLineEndList*   GetLineEndList() const;
-    XGradientList*  GetGradientList() const;
-    XHatchList*     GetHatchList() const;
-    XBitmapList*    GetBitmapList() const;
+    XColorListSharedPtr GetColorTable() const;
+    XDashListSharedPtr GetDashList() const;
+    XLineEndListSharedPtr GetLineEndList() const;
+    XGradientListSharedPtr GetGradientList() const;
+    XHatchListSharedPtr GetHatchList() const;
+    XBitmapListSharedPtr GetBitmapList() const;
 
     //create chartspecific symbols for linecharts
     SdrObjList*     GetSymbolList() const;

Modified: openoffice/branches/ia2/main/chart2/source/controller/inc/dlg_View3D.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/inc/dlg_View3D.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/inc/dlg_View3D.hxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/inc/dlg_View3D.hxx Sat May 18 10:12:43 2013
@@ -52,7 +52,7 @@ class View3DDialog : public TabDialog
 public:
     View3DDialog( Window* pWindow,
                   const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xChartModel,
-                  XColorList* pColorTable=0 );
+                  XColorListSharedPtr aColorTable );
 	~View3DDialog();
 
     // from Dialog (base of TabDialog)

Modified: openoffice/branches/ia2/main/chart2/source/controller/main/ChartController_Properties.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/main/ChartController_Properties.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/main/ChartController_Properties.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/main/ChartController_Properties.cxx Sat May 18 10:12:43 2013
@@ -840,7 +840,7 @@ void SAL_CALL ChartController::executeDi
         // /--
         //open dialog
 		::vos::OGuard aSolarGuard( Application::GetSolarMutex());
-        View3DDialog aDlg( m_pChartWindow, getModel(), m_pDrawModelWrapper->GetColorTable() );
+        View3DDialog aDlg( m_pChartWindow, getModel(), m_pDrawModelWrapper->GetColorTableFromSdrModel() );
         if( aDlg.Execute() == RET_OK )
             aUndoGuard.commit();
         // \--

Modified: openoffice/branches/ia2/main/chart2/source/controller/main/DrawCommandDispatch.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/main/DrawCommandDispatch.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/main/DrawCommandDispatch.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/main/DrawCommandDispatch.cxx Sat May 18 10:12:43 2013
@@ -114,14 +114,14 @@ bool DrawCommandDispatch::isFeatureSuppo
 ::basegfx::B2DPolyPolygon getPolygon( sal_uInt16 nResId, SdrModel& rModel )
 {
     ::basegfx::B2DPolyPolygon aReturn;
-    XLineEndList* pLineEndList = rModel.GetLineEndList();
-    if ( pLineEndList )
+    XLineEndListSharedPtr aLineEndList = rModel.GetLineEndListFromSdrModel();
+    if ( aLineEndList.get() )
     {
         String aName( SVX_RES( nResId ) );
-        long nCount = pLineEndList->Count();
+        long nCount = aLineEndList->Count();
         for ( long nIndex = 0; nIndex < nCount; ++nIndex )
         {
-            XLineEndEntry* pEntry = pLineEndList->GetLineEnd( nIndex );
+            XLineEndEntry* pEntry = aLineEndList->GetLineEnd( nIndex );
             if ( pEntry->GetName() == aName )
             {
 				aReturn = pEntry->GetLineEnd();

Modified: openoffice/branches/ia2/main/chart2/source/controller/main/ShapeController.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/controller/main/ShapeController.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/controller/main/ShapeController.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/controller/main/ShapeController.cxx Sat May 18 10:12:43 2013
@@ -322,11 +322,8 @@ void ShapeController::executeDispatch_Fo
                 {
                     SfxItemPool& rItemPool = pDrawViewWrapper->GetModel()->GetItemPool();
                     SfxItemSet aSet( rItemPool, rItemPool.GetFirstWhich(), rItemPool.GetLastWhich() );
-                    const SvxColorTableItem* pColorItem = static_cast< const SvxColorTableItem* >( aSet.GetItem( SID_COLOR_TABLE ) );
-                    if ( pColorItem && pColorItem->GetColorTable() == XColorList::GetStdColorList() )
-                    {
-                        pDlg->DontDeleteColorTable();
-                    }
+                    // const SvxColorTableItem* pColorItem = static_cast< const SvxColorTableItem* >( aSet.GetItem( SID_COLOR_TABLE ) );
+
                     if ( pDlg->Execute() == RET_OK )
                     {
                         const SfxItemSet* pOutAttr = pDlg->GetOutputItemSet();

Modified: openoffice/branches/ia2/main/chart2/source/inc/chartview/DrawModelWrapper.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/inc/chartview/DrawModelWrapper.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/inc/chartview/DrawModelWrapper.hxx (original)
+++ openoffice/branches/ia2/main/chart2/source/inc/chartview/DrawModelWrapper.hxx Sat May 18 10:12:43 2013
@@ -91,12 +91,12 @@ public:
 		getUnoModel();
     SdrModel& getSdrModel();
 
-    XColorList*    GetColorTable() const;
-    XDashList*      GetDashList() const;
-    XLineEndList*   GetLineEndList() const;
-    XGradientList*  GetGradientList() const;
-    XHatchList*     GetHatchList() const;
-    XBitmapList*    GetBitmapList() const;
+    XColorListSharedPtr GetColorTableFromSdrModel() const;
+    XDashListSharedPtr GetDashListFromSdrModel() const;
+    XLineEndListSharedPtr GetLineEndListFromSdrModel() const;
+    XGradientListSharedPtr GetGradientListFromSdrModel() const;
+    XHatchListSharedPtr GetHatchListFromSdrModel() const;
+    XBitmapListSharedPtr GetBitmapListFromSdrModel() const;
 
     SdrObject* getNamedSdrObject( const rtl::OUString& rName );
     static SdrObject* getNamedSdrObject( const String& rName, SdrObjList* pObjList );

Modified: openoffice/branches/ia2/main/chart2/source/view/main/DrawModelWrapper.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/chart2/source/view/main/DrawModelWrapper.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/chart2/source/view/main/DrawModelWrapper.cxx (original)
+++ openoffice/branches/ia2/main/chart2/source/view/main/DrawModelWrapper.cxx Sat May 18 10:12:43 2013
@@ -334,29 +334,29 @@ const SfxItemPool& DrawModelWrapper::Get
 {
     return this->SdrModel::GetItemPool();
 }
-XColorList* DrawModelWrapper::GetColorTable() const
+XColorListSharedPtr  DrawModelWrapper::GetColorTableFromSdrModel() const
 {
-    return this->SdrModel::GetColorTable();
+    return this->SdrModel::GetColorTableFromSdrModel();
 }
-XDashList* DrawModelWrapper::GetDashList() const
+XDashListSharedPtr DrawModelWrapper::GetDashListFromSdrModel() const
 {
-    return this->SdrModel::GetDashList();
+    return this->SdrModel::GetDashListFromSdrModel();
 }
-XLineEndList* DrawModelWrapper::GetLineEndList() const
+XLineEndListSharedPtr DrawModelWrapper::GetLineEndListFromSdrModel() const
 {
-    return this->SdrModel::GetLineEndList();
+    return this->SdrModel::GetLineEndListFromSdrModel();
 }
-XGradientList* DrawModelWrapper::GetGradientList() const
+XGradientListSharedPtr DrawModelWrapper::GetGradientListFromSdrModel() const
 {
-    return this->SdrModel::GetGradientList();
+    return this->SdrModel::GetGradientListFromSdrModel();
 }
-XHatchList* DrawModelWrapper::GetHatchList() const
+XHatchListSharedPtr DrawModelWrapper::GetHatchListFromSdrModel() const
 {
-    return this->SdrModel::GetHatchList();
+    return this->SdrModel::GetHatchListFromSdrModel();
 }
-XBitmapList* DrawModelWrapper::GetBitmapList() const
+XBitmapListSharedPtr DrawModelWrapper::GetBitmapListFromSdrModel() const
 {
-    return this->SdrModel::GetBitmapList();
+    return this->SdrModel::GetBitmapListFromSdrModel();
 }
 
 SdrObject* DrawModelWrapper::getNamedSdrObject( const rtl::OUString& rName )

Modified: openoffice/branches/ia2/main/codemaker/source/javamaker/classfile.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/codemaker/source/javamaker/classfile.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/codemaker/source/javamaker/classfile.hxx (original)
+++ openoffice/branches/ia2/main/codemaker/source/javamaker/classfile.hxx Sat May 18 10:12:43 2013
@@ -32,8 +32,9 @@
 #include <utility>
 #include <vector>
 
+#include <rtl/string.hxx>
+
 class FileStream;
-namespace rtl { class OString; }
 
 namespace codemaker { namespace javamaker {
 

Modified: openoffice/branches/ia2/main/configmgr/source/partial.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/configmgr/source/partial.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/configmgr/source/partial.cxx (original)
+++ openoffice/branches/ia2/main/configmgr/source/partial.cxx Sat May 18 10:12:43 2013
@@ -98,7 +98,7 @@ Partial::Partial(
             rtl::OUString seg;
             bool end = parseSegment(*i, &n, &seg);
             if (end) {
-                p->children[seg] = Node();
+                p->children[seg].clear();
                 break;
             }
             Node::Children::iterator j(p->children.find(seg));

Modified: openoffice/branches/ia2/main/configmgr/source/partial.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/configmgr/source/partial.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/configmgr/source/partial.hxx (original)
+++ openoffice/branches/ia2/main/configmgr/source/partial.hxx Sat May 18 10:12:43 2013
@@ -26,14 +26,13 @@
 
 #include "sal/config.h"
 
-#include <map>
+#include <boost/unordered_map.hpp> // using the boost container because it explicitly allows recursive types
 #include <set>
 
 #include "boost/noncopyable.hpp"
 
 #include "path.hxx"
-
-namespace rtl { class OUString; }
+#include "rtl/ustring.hxx"
 
 namespace configmgr {
 
@@ -51,9 +50,10 @@ public:
 
 private:
     struct Node {
-        typedef std::map< rtl::OUString, Node > Children;
+        typedef boost::unordered_map< rtl::OUString, Node > Children;
 
         Node(): startInclude(false) {}
+        void clear() { startInclude=false; children.clear(); }
 
         Children children;
         bool startInclude;

Modified: openoffice/branches/ia2/main/configure.in
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/configure.in?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/configure.in (original)
+++ openoffice/branches/ia2/main/configure.in Sat May 18 10:12:43 2013
@@ -117,7 +117,7 @@ AC_ARG_WITH(afms,
                           are known to be available.
 ],,)
 AC_ARG_ENABLE(epm,
-[  --disable-epm           OO.o includes self-packaging code, that requires
+[  --disable-epm           AOO includes self-packaging code, that requires
                           epm, however epm is useless for large scale
                           package building.
 ],,enable_epm="yes")
@@ -129,9 +129,11 @@ AC_ARG_WITH(epm,
 ],,)
 AC_ARG_WITH(epm-url,
 [  --with-epm-url=<URL>    Specify the location of downloadable epm 3.7 source code. For example:
-                          http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
-                          Note that epm is under GPL license.],
-[  EPM_URL="$withval"
+                            http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
+                          or
+                            http://www.msweet.org/files/project2/epm-3.7-source.tar.gz
+                          Note that epm is under GPL license.
+],[  EPM_URL="$withval"
 ])
 AC_ARG_WITH(package-format,
 [  --with-package-format   specify package format(s) for OOo installsets.
@@ -3541,14 +3543,14 @@ if test "$enable_epm" = "yes"; then
          BUILD_TYPE="$BUILD_TYPE EPM"
       else
          if test "$EPM" = "no" ; then
-	    AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm (--with-epm). Or specify an Url to an epm-3.7 source package (--with-epm-url)])
+	    AC_MSG_ERROR([no. Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm (--with-epm). Or specify an Url to an epm-3.7 source package (--with-epm-url)])
 	 else
 	    # Gentoo has some epm which is something different...
             AC_MSG_CHECKING([whether the found epm is the right epm])
             if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
                AC_MSG_RESULT([yes])
             else
-	       AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm])
+	       AC_MSG_ERROR([no. Install ESP Package Manager (http://www.msweet.org/projects.php?Z2) and/or specify the path to the right epm])
             fi
             AC_MSG_CHECKING([epm version])
             EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`

Modified: openoffice/branches/ia2/main/cppu/source/uno/EnvStack.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cppu/source/uno/EnvStack.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cppu/source/uno/EnvStack.cxx (original)
+++ openoffice/branches/ia2/main/cppu/source/uno/EnvStack.cxx Sat May 18 10:12:43 2013
@@ -76,11 +76,11 @@ static void s_setCurrent(uno_Environment
 	osl::MutexGuard guard(s_threadMap_mutex);
 	if (pEnv) 
 		s_threadMap[threadId] = pEnv;
-
 	else
 	{
 		ThreadMap::iterator iEnv = s_threadMap.find(threadId);
-		s_threadMap.erase(iEnv);
+		if( iEnv != s_threadMap.end())
+			s_threadMap.erase(iEnv);
 	}
 }
 

Modified: openoffice/branches/ia2/main/cppu/source/uno/data.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cppu/source/uno/data.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cppu/source/uno/data.cxx (original)
+++ openoffice/branches/ia2/main/cppu/source/uno/data.cxx Sat May 18 10:12:43 2013
@@ -368,20 +368,8 @@ sal_Bool SAL_CALL uno_type_isAssignableF
 #define BINTEST_VERIFYOFFSET( s, m, n ) \
     if (OFFSET_OF(s, m) != n) { fprintf( stderr, "### OFFSET_OF(" #s ", "  #m ") = %" SAL_PRI_SIZET "u instead of expected %d!!!\n", OFFSET_OF(s, m), static_cast<int>(n) ); abort(); }
 
-#if OSL_DEBUG_LEVEL > 1
-#if defined(__GNUC__) && (defined(LINUX) || defined(FREEBSD)) && (defined(INTEL) || defined(POWERPC) || defined(X86_64) || defined(S390))
 #define BINTEST_VERIFYSIZE( s, n ) \
-    fprintf( stderr, "> sizeof(" #s ") = %d; __alignof__ (" #s ") = %d\n", sizeof(s), __alignof__ (s) ); \
-    if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); }
-#else // ! GNUC
-#define BINTEST_VERIFYSIZE( s, n ) \
-    fprintf( stderr, "> sizeof(" #s ") = %" SAL_PRI_SIZET "d\n", sizeof(s) ); \
-    if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %" SAL_PRI_SIZET "d instead of expected %d!!!\n", sizeof(s), n ); abort(); }
-#endif
-#else // ! OSL_DEBUG_LEVEL
-#define BINTEST_VERIFYSIZE( s, n ) \
-    if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); }
-#endif
+    if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", (int)sizeof(s), n ); abort(); }
 
 struct C1
 {

Modified: openoffice/branches/ia2/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx (original)
+++ openoffice/branches/ia2/main/cppuhelper/inc/cppuhelper/propertysetmixin.hxx Sat May 18 10:12:43 2013
@@ -157,8 +157,8 @@ protected:
         void notify() const;
 
     private:
-        BoundListeners(BoundListeners &); // not defined
-        void operator =(BoundListeners); // not defined
+        BoundListeners( const BoundListeners&); // not defined
+        void operator=( const BoundListeners&); // not defined
 
         class Impl;
         Impl * m_impl;
@@ -379,8 +379,8 @@ protected:
             com::sun::star::uno::RuntimeException);
 
 private:
-    PropertySetMixinImpl(PropertySetMixinImpl &); // not defined
-    void operator =(PropertySetMixinImpl &); // not defined
+    PropertySetMixinImpl( const PropertySetMixinImpl&); // not defined
+    void operator=( const PropertySetMixinImpl&); // not defined
 
     PropertySetMixinImpl(
         com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -471,8 +471,8 @@ protected:
     ~PropertySetMixin() {}
 
 private:
-    PropertySetMixin(PropertySetMixin &); // not defined
-    void operator =(PropertySetMixin); // not defined
+    PropertySetMixin( const PropertySetMixin&); // not defined
+    void operator=( const PropertySetMixin&); // not defined
 };
 
 #if defined _MSC_VER

Modified: openoffice/branches/ia2/main/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx (original)
+++ openoffice/branches/ia2/main/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx Sat May 18 10:12:43 2013
@@ -33,22 +33,6 @@ using namespace com::sun::star;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
 
-
-struct equalStr
-{
-    bool operator()(
-        const char * const &rA,
-        const char * const &rB) const
-        { return !strcmp(rA, rB); }
-};
-struct hashStr
-{
-    size_t operator()( const char * &rName ) const
-    {
-        return rtl::OString(rName).hashCode();
-    }
-};
-
 class ContainerListener;
 
 struct ContainerStats {
@@ -253,7 +237,7 @@ namespace cppu_ifcontainer
         void testOMultiTypeInterfaceContainerHelperVar()
         {
             typedef ::cppu::OMultiTypeInterfaceContainerHelperVar<
-                const char *,hashStr,equalStr> StrContainer;
+                const char*, rtl::CStringHash, rtl::CStringEqual> StrContainer;
 
             const char *pTypes[nTests] =
             {

Modified: openoffice/branches/ia2/main/cui/source/dialogs/sdrcelldlg.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/dialogs/sdrcelldlg.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/dialogs/sdrcelldlg.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/dialogs/sdrcelldlg.cxx Sat May 18 10:12:43 2013
@@ -37,10 +37,10 @@
 SvxFormatCellsDialog::SvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel )
 : SfxTabDialog        ( pParent, CUI_RES( RID_SVX_FORMAT_CELLS_DLG ), pAttr )
 , mrOutAttrs			( *pAttr )
-, mpColorTab           ( pModel->GetColorTable() )
-, mpGradientList       ( pModel->GetGradientList() )
-, mpHatchingList       ( pModel->GetHatchList() )
-, mpBitmapList         ( pModel->GetBitmapList() )
+, maColorTab           ( pModel->GetColorTableFromSdrModel() )
+, maGradientList       ( pModel->GetGradientListFromSdrModel() )
+, maHatchingList       ( pModel->GetHatchListFromSdrModel() )
+, maBitmapList         ( pModel->GetBitmapListFromSdrModel() )
 
 {
 	FreeResource();
@@ -68,10 +68,10 @@ void SvxFormatCellsDialog::PageCreated( 
 	switch( nId )
 	{
 		case RID_SVXPAGE_AREA:
-			( (SvxAreaTabPage&) rPage ).SetColorTable( mpColorTab );
-			( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList );
-			( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList );
-			( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList );
+			( (SvxAreaTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxAreaTabPage&) rPage ).SetGradientList( maGradientList );
+			( (SvxAreaTabPage&) rPage ).SetHatchingList( maHatchingList );
+			( (SvxAreaTabPage&) rPage ).SetBitmapList( maBitmapList );
 			( (SvxAreaTabPage&) rPage ).SetPageType( PT_AREA );
 			( (SvxAreaTabPage&) rPage ).SetDlgType( 1 );
 			( (SvxAreaTabPage&) rPage ).SetPos( 0 );

Modified: openoffice/branches/ia2/main/cui/source/factory/dlgfact.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/factory/dlgfact.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/factory/dlgfact.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/factory/dlgfact.cxx Sat May 18 10:12:43 2013
@@ -905,11 +905,6 @@ String AbstractSvxAreaTabDialog_Impl::Ge
 	return pDlg->GetText();
 }
 
-void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
-{
-	return pDlg->DontDeleteColorTable();
-}
-
 void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr )
 {
 	pDlg->SetText( rStr );

Modified: openoffice/branches/ia2/main/cui/source/factory/dlgfact.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/factory/dlgfact.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/factory/dlgfact.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/factory/dlgfact.hxx Sat May 18 10:12:43 2013
@@ -511,7 +511,6 @@ class AbstractSvxAreaTabDialog_Impl :pub
 		//From class Window.
     virtual void		SetText( const XubString& rStr );
     virtual String   	GetText() const;
-	virtual void	 DontDeleteColorTable() ;
 };
 //add for SvxAreaTabDialog end
 

Modified: openoffice/branches/ia2/main/cui/source/inc/cuitabarea.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/inc/cuitabarea.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/inc/cuitabarea.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/inc/cuitabarea.hxx Sat May 18 10:12:43 2013
@@ -40,14 +40,14 @@ private:
 	SdrModel*           mpDrawModel;
 //	const SdrView*		mpView;
 
-	XColorList*        mpColorTab;
-	XColorList*        mpNewColorTab;
-	XGradientList*      mpGradientList;
-	XGradientList*      mpNewGradientList;
-	XHatchList*         mpHatchingList;
-	XHatchList*         mpNewHatchingList;
-	XBitmapList*        mpBitmapList;
-	XBitmapList*        mpNewBitmapList;
+	XColorListSharedPtr     maColorTab;
+	XColorListSharedPtr     maNewColorTab;
+	XGradientListSharedPtr  maGradientList;
+	XGradientListSharedPtr  maNewGradientList;
+	XHatchListSharedPtr     maHatchingList;
+	XHatchListSharedPtr     maNewHatchingList;
+	XBitmapListSharedPtr    maBitmapList;
+	XBitmapListSharedPtr    maNewBitmapList;
 
 	const SfxItemSet&   mrOutAttrs;
 
@@ -60,7 +60,6 @@ private:
 	sal_uInt16              mnDlgType;
 	sal_uInt16              mnPos;
 	sal_Bool                mbAreaTP;
-	sal_Bool                mbDeleteColorTable;
 
 	virtual void        PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
 
@@ -77,29 +76,21 @@ public:
 					  const SdrView* pSdrView = NULL );
 	~SvxAreaTabDialog();
 
-	void            	 SetNewColorTable( XColorList* pColTab )
-							{ mpNewColorTab = pColTab; }
-	XColorList*    	 GetNewColorTable() const { return mpNewColorTab; }
-	const XColorList*	 GetColorTable() const { return mpColorTab; }
-
-	void            	 SetNewGradientList( XGradientList* pGrdLst)
-							{ mpNewGradientList = pGrdLst; }
-	XGradientList*  	 GetNewGradientList() const
-							{ return mpNewGradientList; }
-	const XGradientList* GetGradientList() const { return mpGradientList; }
-
-	void				 SetNewHatchingList( XHatchList* pHtchLst)
-							{ mpNewHatchingList = pHtchLst; }
-	XHatchList*     	 GetNewHatchingList() const
-							{ return mpNewHatchingList; }
-	const XHatchList*	 GetHatchingList() const { return mpHatchingList; }
-
-	void				 SetNewBitmapList( XBitmapList* pBmpLst)
-							{ mpNewBitmapList = pBmpLst; }
-	XBitmapList*		 GetNewBitmapList() const { return mpNewBitmapList; }
-	const XBitmapList*	 GetBitmapList() const { return mpBitmapList; }
-
-	void				 DontDeleteColorTable() { mbDeleteColorTable = sal_False; }
+	void SetNewColorTable( XColorListSharedPtr aColTab ) { maNewColorTab = aColTab; }
+	XColorListSharedPtr GetNewColorTable() const { return maNewColorTab; }
+	const XColorListSharedPtr GetColorTable() const { return maColorTab; }
+
+	void SetNewGradientList( XGradientListSharedPtr aGrdLst) { maNewGradientList = aGrdLst; }
+	XGradientListSharedPtr GetNewGradientList() const { return maNewGradientList; }
+	const XGradientListSharedPtr GetGradientList() const { return maGradientList; }
+
+	void SetNewHatchingList( XHatchListSharedPtr aHtchLst) { maNewHatchingList = aHtchLst; }
+	XHatchListSharedPtr GetNewHatchingList() const { return maNewHatchingList; }
+	const XHatchListSharedPtr GetHatchingList() const { return maHatchingList; }
+
+	void SetNewBitmapList( XBitmapListSharedPtr aBmpLst) { maNewBitmapList = aBmpLst; }
+	XBitmapListSharedPtr GetNewBitmapList() const { return maNewBitmapList; }
+	const XBitmapListSharedPtr GetBitmapList() const { return maBitmapList; }
 };
 
 /*************************************************************************
@@ -244,10 +235,10 @@ private:
 	const SfxItemSet&   rOutAttrs;
 	RECT_POINT          eRP;
 
-	XColorList*        pColorTab;
-	XGradientList*      pGradientList;
-	XHatchList*         pHatchingList;
-	XBitmapList*        pBitmapList;
+	XColorListSharedPtr     maColorTab;
+	XGradientListSharedPtr  maGradientList;
+	XHatchListSharedPtr     maHatchingList;
+	XBitmapListSharedPtr    maBitmapList;
 
 	ChangeType*         pnColorTableState;
 	ChangeType*         pnBitmapListState;
@@ -303,12 +294,10 @@ public:
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
 	
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
-	void    SetGradientList( XGradientList* pGrdLst)
-				{ pGradientList = pGrdLst; }
-	void    SetHatchingList( XHatchList* pHtchLst)
-				{ pHatchingList = pHtchLst; }
-	void    SetBitmapList( XBitmapList* pBmpLst) { pBitmapList = pBmpLst; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
+	void    SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; }
+	void    SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; }
+	void    SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; }
 
 	//CHINA001 void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 	void    SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001 
@@ -351,7 +340,7 @@ private:
 	const SfxItemSet&   rOutAttrs;
 	RECT_POINT          eRP;
 
-	XColorList*        pColorTab;
+	XColorListSharedPtr maColorTab;
 	ChangeType*         pnColorTableState;
 	sal_uInt16				nPageType;	//add CHINA001 
 	sal_uInt16				nDlgType;	//add CHINA001 
@@ -383,7 +372,7 @@ public:
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
 //CHINA001	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 //CHINA001	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
 	void    SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001 
@@ -433,8 +422,8 @@ private:
 
 	const SfxItemSet&   rOutAttrs;
 
-	XColorList*        pColorTab;
-	XGradientList*      pGradientList;
+	XColorListSharedPtr     maColorTab;
+	XGradientListSharedPtr  maGradientList;
 
 	ChangeType*         pnGradientListState;
 	ChangeType*         pnColorTableState;
@@ -474,9 +463,8 @@ public:
 	virtual void ActivatePage( const SfxItemSet& rSet );
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
-	void    SetGradientList( XGradientList* pGrdLst)
-				{ pGradientList = pGrdLst; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
+	void    SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; }
 
 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
@@ -520,8 +508,8 @@ private:
 	const SfxItemSet&   rOutAttrs;
 	RECT_POINT          eRP;
 
-	XColorList*        pColorTab;
-	XHatchList*         pHatchingList;
+	XColorListSharedPtr maColorTab;
+	XHatchListSharedPtr maHatchingList;
 
 	ChangeType*         pnHatchingListState;
 	ChangeType*         pnColorTableState;
@@ -564,9 +552,8 @@ public:
 
 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
-	void    SetHatchingList( XHatchList* pHtchLst)
-				{ pHatchingList = pHtchLst; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
+	void    SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; }
 
 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
@@ -612,8 +599,8 @@ private:
 
 	const SfxItemSet&   rOutAttrs;
 
-	XColorList*        pColorTab;
-	XBitmapList*        pBitmapList;
+	XColorListSharedPtr     maColorTab;
+	XBitmapListSharedPtr    maBitmapList;
 
 	ChangeType*         pnBitmapListState;
 	ChangeType*         pnColorTableState;
@@ -658,8 +645,8 @@ public:
 
 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
-	void    SetBitmapList( XBitmapList* pBmpLst) { pBitmapList = pBmpLst; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
+	void    SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; }
 
 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
@@ -724,14 +711,13 @@ private:
 
 	const SfxItemSet&   rOutAttrs;
 
-	XColorList*        pColorTab;
+	XColorListSharedPtr maColorTab;
 
 	ChangeType*         pnColorTableState;
 	sal_uInt16*             pPageType;
 	sal_uInt16*             pDlgType;
 	sal_uInt16*             pPos;
 	sal_Bool*               pbAreaTP;
-	sal_Bool                bDeleteColorTable;
 
 	XOutdevItemPool*    pXPool;
 	XFillStyleItem      aXFStyleItem;
@@ -781,7 +767,7 @@ public:
 	virtual void ActivatePage( const SfxItemSet& rSet );
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
 
 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
@@ -790,8 +776,6 @@ public:
 
 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
 
-	void	SetDeleteColorTable( sal_Bool bIn ) { bDeleteColorTable = bIn; }
-
 	virtual void FillUserData();
 };
 

Modified: openoffice/branches/ia2/main/cui/source/inc/cuitabline.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/inc/cuitabline.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/inc/cuitabline.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/inc/cuitabline.hxx Sat May 18 10:12:43 2013
@@ -39,12 +39,12 @@ private:
 
 	const SfxItemSet&   rOutAttrs;
 
-	XColorList*        pColorTab;
-	XColorList*        mpNewColorTab;
-	XDashList*          pDashList;
-	XDashList*          pNewDashList;
-	XLineEndList*       pLineEndList;
-	XLineEndList*       pNewLineEndList;
+	XColorListSharedPtr     maColorTab;
+	XColorListSharedPtr     maNewColorTab;
+	XDashListSharedPtr      maDashList;
+	XDashListSharedPtr      maNewDashList;
+	XLineEndListSharedPtr   maLineEndList;
+	XLineEndListSharedPtr   maNewLineEndList;
 	sal_Bool                bObjSelected;
 
 	ChangeType          nLineEndListState;
@@ -57,7 +57,6 @@ private:
 	sal_uInt16              nPosLineEndLb;
 	sal_uInt16              mnPos;
 	sal_Bool                mbAreaTP;
-	sal_Bool                mbDeleteColorTable;
 
 	virtual void        PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
 
@@ -74,19 +73,17 @@ public:
 					  sal_Bool bHasObj = sal_True );
 	~SvxLineTabDialog();
 
-	void             SetNewDashList( XDashList* pInLst)
-						{ pNewDashList = pInLst; }
-	XDashList*       GetNewDashList() const { return pNewDashList; }
-	const XDashList* GetDashList() const { return pDashList; }
-
-	void                SetNewLineEndList( XLineEndList* pInLst)
-							{ pNewLineEndList = pInLst; }
-	XLineEndList*       GetNewLineEndList() const { return pNewLineEndList; }
-	const XLineEndList* GetLineEndList() const { return pLineEndList; }
-
-	void				SetNewColorTable( XColorList* pColTab ) { mpNewColorTab = pColTab; }
-	XColorList*        GetNewColorTable() const { return mpNewColorTab; }
-	const XColorList*  GetColorTable() const { return pColorTab; }
+	void SetNewDashList( XDashListSharedPtr aInLst) { maNewDashList = aInLst; }
+	XDashListSharedPtr GetNewDashList() const { return maNewDashList; }
+	const XDashListSharedPtr GetDashList() const { return maDashList; }
+
+	void SetNewLineEndList( XLineEndListSharedPtr aInLst) { maNewLineEndList = aInLst; }
+	XLineEndListSharedPtr GetNewLineEndList() const { return maNewLineEndList; }
+	const XLineEndListSharedPtr GetLineEndList() const { return maLineEndList; }
+
+	void SetNewColorTable( XColorListSharedPtr aColTab ) { maNewColorTab = aColTab; }
+	XColorListSharedPtr GetNewColorTable() const { return maNewColorTab; }
+	const XColorListSharedPtr GetColorTable() const { return maColorTab; }
 };
 
 /*************************************************************************
@@ -166,9 +163,9 @@ private:
 	XLineAttrSetItem    aXLineAttr;
 	SfxItemSet&         rXLSet;
 
-	XColorList*        pColorTab;
-	XDashList*          pDashList;
-	XLineEndList*       pLineEndList;
+	XColorListSharedPtr     maColorTab;
+	XDashListSharedPtr      maDashList;
+	XLineEndListSharedPtr   maLineEndList;
 
 	ChangeType*         pnLineEndListState;
 	ChangeType*         pnDashListState;
@@ -231,9 +228,9 @@ public:
 
 	virtual void FillUserData();
 
-	void    SetColorTable( XColorList* pColTab ) { pColorTab = pColTab; }
-	void    SetDashList( XDashList* pDshLst ) { pDashList = pDshLst; }
-	void    SetLineEndList( XLineEndList* pLneEndLst) { pLineEndList = pLneEndLst; }
+	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
+	void    SetDashList( XDashListSharedPtr aDshLst ) { maDashList = aDshLst; }
+	void    SetLineEndList( XLineEndListSharedPtr aLneEndLst) { maLineEndList = aLneEndLst; }
 	void    SetObjSelected( sal_Bool bHasObj ) { bObjSelected = bHasObj; }
 
 	void    SetPageType( sal_uInt16 nInType ) { nPageType = nInType; }//CHINA001 void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
@@ -294,7 +291,7 @@ private:
 	XLineAttrSetItem    aXLineAttr;
 	SfxItemSet&         rXLSet;
 
-	XDashList*          pDashList;
+	XDashListSharedPtr  maDashList;
 
 	ChangeType*         pnDashListState;
 	sal_uInt16*             pPageType;
@@ -335,7 +332,7 @@ public:
 	virtual void ActivatePage( const SfxItemSet& rSet );
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 
-	void    SetDashList( XDashList* pDshLst ) { pDashList = pDshLst; }
+	void    SetDashList( XDashListSharedPtr aDshLst ) { maDashList = aDshLst; }
 	void    SetObjSelected( sal_Bool bHasObj ) { bObjSelected = bHasObj; }
 
 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
@@ -383,7 +380,7 @@ private:
 	XLineAttrSetItem    aXLineAttr;
 	SfxItemSet&         rXLSet;
 
-	XLineEndList*       pLineEndList;
+	XLineEndListSharedPtr   maLineEndList;
 
 	ChangeType*         pnLineEndListState;
 	sal_uInt16*             pPageType;
@@ -415,7 +412,7 @@ public:
 	virtual void ActivatePage( const SfxItemSet& rSet );
 	virtual int  DeactivatePage( SfxItemSet* pSet );
 
-	void    SetLineEndList( XLineEndList* pInList ) { pLineEndList = pInList; }
+	void    SetLineEndList( XLineEndListSharedPtr aInList ) { maLineEndList = aInList; }
 	void    SetPolyObj( const SdrObject* pObj ) { pPolyObj = pObj; }
 	void    SetObjSelected( sal_Bool bHasObj ) { bObjSelected = bHasObj; }
 

Modified: openoffice/branches/ia2/main/cui/source/inc/sdrcelldlg.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/inc/sdrcelldlg.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/inc/sdrcelldlg.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/inc/sdrcelldlg.hxx Sat May 18 10:12:43 2013
@@ -24,7 +24,6 @@
 #ifndef _SVX_FORMAT_CELLS_DLG_HXX
 #define _SVX_FORMAT_CELLS_DLG_HXX
 
-
 #include <sfx2/tabdlg.hxx>
 
 class XColorList;
@@ -33,15 +32,20 @@ class XHatchList;
 class XBitmapList;
 class SdrModel;
 
+typedef ::boost::shared_ptr< XColorList > XColorListSharedPtr;
+typedef ::boost::shared_ptr< XHatchList > XHatchListSharedPtr;
+typedef ::boost::shared_ptr< XGradientList > XGradientListSharedPtr;
+typedef ::boost::shared_ptr< XBitmapList > XBitmapListSharedPtr;
+
 class SvxFormatCellsDialog : public SfxTabDialog
 {
 private:
 	const SfxItemSet&	mrOutAttrs;
 
-	XColorList*        mpColorTab;
-	XGradientList*      mpGradientList;
-	XHatchList*         mpHatchingList;
-	XBitmapList*        mpBitmapList;
+	XColorListSharedPtr     maColorTab;
+	XGradientListSharedPtr  maGradientList;
+	XHatchListSharedPtr     maHatchingList;
+	XBitmapListSharedPtr    maBitmapList;
 
 protected:
 	virtual void Apply();

Modified: openoffice/branches/ia2/main/cui/source/inc/treeopt.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/inc/treeopt.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/inc/treeopt.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/inc/treeopt.hxx Sat May 18 10:12:43 2013
@@ -44,6 +44,8 @@ class SfxModule;
 class SfxShell;
 class SfxItemSet;
 class XColorList;
+typedef ::boost::shared_ptr< XColorList > XColorListSharedPtr;
+
 class OfaOptionsTreeListBox : public SvTreeListBox
 {
 	using  SvListView::Collapse;
@@ -196,8 +198,8 @@ private:
     SvLBoxEntry*    pCurrentPageEntry;
 
 	// for the ColorTabPage
-	SfxItemSet*		pColorPageItemSet;
-	XColorList*	pColorTab;
+	SfxItemSet*		    pColorPageItemSet;
+	XColorListSharedPtr maColorTab;
 	sal_uInt16			nChangeType;
 	sal_uInt16 			nUnknownType;
 	sal_uInt16			nUnknownPos;
@@ -269,7 +271,7 @@ public:
     void                ApplyItemSets();
 
     sal_uInt16              GetColorChanged() const { return nChangeType; }
-    XColorList*        GetColorTable() { return pColorTab; }
+    XColorListSharedPtr GetColorTable() { return maColorTab; }
 
 	// helper functions to call the language settings TabPage from the SpellDialog
     static void         ApplyLanguageOptions(const SfxItemSet& rSet);

Modified: openoffice/branches/ia2/main/cui/source/options/optchart.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/options/optchart.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/options/optchart.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/options/optchart.cxx Sat May 18 10:12:43 2013
@@ -40,7 +40,7 @@ void ChartColorLB::FillBox( const SvxCha
 
 	for( long i = 0; i < nCount; i++ )
 	{
-        Append( const_cast< XColorEntry * >( & rTab[ i ] ));
+        Append( rTab[ i ] );
 	}
 	SetUpdateMode( sal_True );
 }
@@ -73,7 +73,7 @@ SvxDefaultColorOptPage::SvxDefaultColorO
 	aValSetColorBox.Show();
 
 	pChartOptions = new SvxChartOptions;
-	pColorTab = new XColorList( SvtPathOptions().GetPalettePath() );
+	maColorTab = XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath());
 
 	const SfxPoolItem* pItem = NULL;
 	if ( rInAttrs.GetItemState( SID_SCH_EDITOPTIONS, sal_False, &pItem ) == SFX_ITEM_SET )
@@ -98,7 +98,6 @@ SvxDefaultColorOptPage::~SvxDefaultColor
 	pChartOptions->Commit();
 
 	delete pColorConfig;
-	delete pColorTab;
 	delete pChartOptions;
 }
 
@@ -135,14 +134,14 @@ void __EXPORT SvxDefaultColorOptPage::Re
 
 void SvxDefaultColorOptPage::FillColorBox()
 {
-	if( !pColorTab ) return;
+	if( !maColorTab.get() ) return;
 
-	long nCount = pColorTab->Count();
+	long nCount = maColorTab->Count();
 	XColorEntry* pColorEntry;
 
 	for( long i = 0; i < nCount; i++ )
 	{
-		pColorEntry = pColorTab->GetColor( i );
+		pColorEntry = maColorTab->GetColor( i );
 		aValSetColorBox.InsertItem( (sal_uInt16) i + 1, pColorEntry->GetColor(), pColorEntry->GetName() );
 	}
 }
@@ -150,16 +149,16 @@ void SvxDefaultColorOptPage::FillColorBo
 
 long SvxDefaultColorOptPage::GetColorIndex( const Color& rCol )
 {
-	if( pColorTab )
+	if( maColorTab.get() )
 	{
-		long nCount = pColorTab->Count();
+		long nCount = maColorTab->Count();
 		XColorEntry* pColorEntry;
 
 		for( long i = nCount - 1; i >= 0; i-- )			// default chart colors are at the end of the table
 		{
-			pColorEntry = pColorTab->GetColor( i );
+			pColorEntry = maColorTab->GetColor( i );
 			if( pColorEntry && pColorEntry->GetColor() == rCol )
-				return SAL_STATIC_CAST( XPropertyList*, pColorTab )->Get( pColorEntry->GetName() );
+				return maColorTab->GetIndex( pColorEntry->GetName() );
 		}
 	}
 	return -1L;
@@ -218,10 +217,9 @@ IMPL_LINK( SvxDefaultColorOptPage, BoxCl
 	sal_uInt16 nIdx = aLbChartColors.GetSelectEntryPos();
 	if( nIdx != LISTBOX_ENTRY_NOTFOUND )
 	{
-		XColorEntry aEntry( aValSetColorBox.GetItemColor( aValSetColorBox.GetSelectItemId() ),
-                            aLbChartColors.GetSelectEntry() );
+		const XColorEntry aEntry( aValSetColorBox.GetItemColor( aValSetColorBox.GetSelectItemId() ), aLbChartColors.GetSelectEntry() );
 
-		aLbChartColors.Modify( & aEntry, nIdx );
+		aLbChartColors.Modify( aEntry, nIdx );
 		pColorConfig->ReplaceColorByIndex( nIdx, aEntry );
 
         aLbChartColors.SelectEntryPos( nIdx );	// reselect entry

Modified: openoffice/branches/ia2/main/cui/source/options/optchart.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/options/optchart.hxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/options/optchart.hxx (original)
+++ openoffice/branches/ia2/main/cui/source/options/optchart.hxx Sat May 18 10:12:43 2013
@@ -61,7 +61,7 @@ private:
 
 	SvxChartOptions*		pChartOptions;
 	SvxChartColorTableItem*	pColorConfig;
-	XColorList*			pColorTab;
+	XColorListSharedPtr     maColorTab;
 
 	DECL_LINK( ResetToDefaults, void * );
 	DECL_LINK( ListClickedHdl, ChartColorLB * );

Modified: openoffice/branches/ia2/main/cui/source/options/optcolor.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/options/optcolor.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/options/optcolor.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/options/optcolor.cxx Sat May 18 10:12:43 2013
@@ -945,11 +945,11 @@ ColorConfigWindow_Impl::ColorConfigWindo
         }
     }
 
-    XColorList aColorTable( SvtPathOptions().GetPalettePath() );
+    XColorListSharedPtr aColorTable(XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath()));
     aColorBoxes[0]->InsertAutomaticEntry();
-    for( sal_Int32 i = 0; i < aColorTable.Count(); i++ )
+    for( sal_Int32 i = 0; i < aColorTable->Count(); i++ )
 	{
-        XColorEntry* pEntry = aColorTable.GetColor(i);
+        XColorEntry* pEntry = aColorTable->GetColor(i);
         aColorBoxes[0]->InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 	}
 

Modified: openoffice/branches/ia2/main/cui/source/options/treeopt.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/options/treeopt.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/options/treeopt.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/options/treeopt.cxx Sat May 18 10:12:43 2013
@@ -561,7 +561,7 @@ sal_Bool OfaOptionsTreeListBox::Collapse
     sNotLoadedError     (       CUI_RES( ST_LOAD_ERROR ) ),\
     pCurrentPageEntry   ( NULL ),\
     pColorPageItemSet   ( NULL ),\
-    pColorTab           ( NULL ),\
+    maColorTab           (),\
     nChangeType         ( CT_NONE ),\
     nUnknownType        ( COLORPAGE_UNKNOWN ),\
     nUnknownPos         ( COLORPAGE_UNKNOWN ),\
@@ -1201,13 +1201,13 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectH
                 pPageInfo->m_pPage = ::CreateGeneralTabPage(
                     pPageInfo->m_nPageId, this, *pColorPageItemSet );
                 SvxColorTabPage& rColPage = *(SvxColorTabPage*)pPageInfo->m_pPage;
-				const OfaPtrItem* pPtr = NULL;
+				const SvxColorTableItem* pPtr = NULL;
 				if ( SfxViewFrame::Current() && SfxViewFrame::Current()->GetDispatcher() )
-					pPtr = (const OfaPtrItem*)SfxViewFrame::Current()->
-						GetDispatcher()->Execute( SID_GET_COLORTABLE, SFX_CALLMODE_SYNCHRON );
-				pColorTab = pPtr ? (XColorList*)pPtr->GetValue() : XColorList::GetStdColorList();
+					pPtr = dynamic_cast< const SvxColorTableItem* >(SfxViewFrame::Current()->
+						GetDispatcher()->Execute(SID_GET_COLORTABLE, SFX_CALLMODE_SYNCHRON));
+				maColorTab = pPtr ? pPtr->GetColorTable() : XColorList::GetStdColorList();
 
-				rColPage.SetColorTable( pColorTab );
+				rColPage.SetColorTable( maColorTab );
 				rColPage.SetPageType( &nUnknownType );
 				rColPage.SetDlgType( &nUnknownType );
 				rColPage.SetPos( &nUnknownPos );
@@ -2637,14 +2637,15 @@ short OfaTreeOptionsDialog::Execute()
 			// notify current viewframe it it uses the same color table
 			if ( SfxViewFrame::Current() && SfxViewFrame::Current()->GetDispatcher() )
 			{
-				const OfaPtrItem* pPtr = (const OfaPtrItem*)SfxViewFrame::Current()->GetDispatcher()->Execute( SID_GET_COLORTABLE, SFX_CALLMODE_SYNCHRON );
+				const SvxColorTableItem* pPtr = dynamic_cast< const SvxColorTableItem* >(
+                    SfxViewFrame::Current()->GetDispatcher()->Execute(SID_GET_COLORTABLE, SFX_CALLMODE_SYNCHRON));
 				if( pPtr )
 				{
-                    XColorList* _pColorTab = (XColorList*)pPtr->GetValue();
+                    XColorListSharedPtr aColorTab = pPtr->GetColorTable();
 
-                    if( _pColorTab &&
-                        _pColorTab->GetPath() == GetColorTable()->GetPath() &&
-                        _pColorTab->GetName() == GetColorTable()->GetName() )
+                    if( aColorTab &&
+                        aColorTab->GetPath() == GetColorTable()->GetPath() &&
+                        aColorTab->GetName() == GetColorTable()->GetName() )
                         SfxObjectShell::Current()->PutItem( SvxColorTableItem( GetColorTable(), SID_COLOR_TABLE ) );
 				}
 			}

Modified: openoffice/branches/ia2/main/cui/source/tabpages/backgrnd.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/backgrnd.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/backgrnd.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/backgrnd.cxx Sat May 18 10:12:43 2013
@@ -1197,31 +1197,24 @@ void SvxBackgroundTabPage::FillColorValu
 {
 	SfxObjectShell* pDocSh = SfxObjectShell::Current();
 	const SfxPoolItem* pItem = NULL;
-	XColorList* pColorTable = NULL;
-	bool bOwn(false);
+	XColorListSharedPtr aColorTable;
     long nColorCount(0);
 
 	if ( pDocSh && ( 0 != ( pItem = pDocSh->GetItem( SID_COLOR_TABLE ) ) ) )
     {
-		pColorTable = ( (SvxColorTableItem*)pItem )->GetColorTable();
+		aColorTable = dynamic_cast< const SvxColorTableItem* >(pItem)->GetColorTable();
     }
 
-	if ( !pColorTable )
+	if ( !aColorTable.get() )
 	{
-		bOwn = true;
-		pColorTable = new XColorList( SvtPathOptions().GetPalettePath() );
+		aColorTable = XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath());
 	}
 
-	if ( pColorTable )
+	if ( aColorTable.get() )
 	{
-        nColorCount = pColorTable->Count();
+        nColorCount = aColorTable->Count();
         aBackgroundColorSet.Clear();
-        aBackgroundColorSet.addEntriesForXColorList(*pColorTable);
-
-        if(bOwn)
-        {
-		    delete pColorTable;
-        }
+        aBackgroundColorSet.addEntriesForXColorList(aColorTable);
     }
 
 	const WinBits nBits(aBackgroundColorSet.GetStyle() | WB_ITEMBORDER | WB_NAMEFIELD | WB_NONEFIELD);

Modified: openoffice/branches/ia2/main/cui/source/tabpages/border.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/border.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/border.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/border.cxx Sat May 18 10:12:43 2013
@@ -338,7 +338,7 @@ SvxBorderTabPage::SvxBorderTabPage( Wind
 	// ColorBox aus der XColorList fuellen.
 	SfxObjectShell*		pDocSh		= SfxObjectShell::Current();
 	const SfxPoolItem*	pItem 		= NULL;
-	XColorList*		pColorTable = NULL;
+	XColorListSharedPtr aColorTable;
 
 	DBG_ASSERT( pDocSh, "DocShell not found!" );
 
@@ -346,19 +346,19 @@ SvxBorderTabPage::SvxBorderTabPage( Wind
     {
         pItem = pDocSh->GetItem( SID_COLOR_TABLE );
         if ( pItem != NULL )
-            pColorTable = ( (SvxColorTableItem*)pItem )->GetColorTable();
+            aColorTable = static_cast< const SvxColorTableItem* >(pItem)->GetColorTable();
     }
 
-	DBG_ASSERT( pColorTable, "ColorTable not found!" );
+	DBG_ASSERT( aColorTable.get(), "ColorTable not found!" );
 
-	if ( pColorTable )
+	if ( aColorTable.get() )
 	{
 		// fuellen der Linienfarben-Box
 		aLbLineColor.SetUpdateMode( sal_False );
 
-		for ( long i = 0; i < pColorTable->Count(); ++i )
+		for ( long i = 0; i < aColorTable->Count(); ++i )
 		{
-            XColorEntry* pEntry = pColorTable->GetColor(i);
+            XColorEntry* pEntry = aColorTable->GetColor(i);
 			aLbLineColor.InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 		}
 		aLbLineColor.SetUpdateMode( sal_True );

Modified: openoffice/branches/ia2/main/cui/source/tabpages/chardlg.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/chardlg.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/chardlg.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/chardlg.cxx Sat May 18 10:12:43 2013
@@ -715,21 +715,19 @@ void SvxCharNamePage::Initialize()
 	// fill the color box
 	SfxObjectShell* pDocSh = SfxObjectShell::Current();
 	//DBG_ASSERT( pDocSh, "DocShell not found!" );
-	XColorList* pColorTable = NULL;
-	FASTBOOL bKillTable = sal_False;
+	XColorListSharedPtr aColorTable;
 	const SfxPoolItem* pItem = NULL;
 
 	if ( pDocSh )
     {
         pItem = pDocSh->GetItem( SID_COLOR_TABLE );
         if ( pItem != NULL )
-            pColorTable = ( (SvxColorTableItem*)pItem )->GetColorTable();
+            aColorTable = static_cast< const SvxColorTableItem* >(pItem)->GetColorTable();
     }
 
-	if ( !pColorTable )
+	if ( !aColorTable.get() )
 	{
-		pColorTable = new XColorList( SvtPathOptions().GetPalettePath() );
-		bKillTable = sal_True;
+		aColorTable = XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath());
 	}
 
     m_pColorLB->SetUpdateMode( sal_False );
@@ -742,17 +740,14 @@ void SvxCharNamePage::Initialize()
 	    	m_pColorLB->InsertEntry( Color( COL_AUTO ),
 								 	SVX_RESSTR( RID_SVXSTR_AUTOMATIC ));
 	}
-    for ( long i = 0; i < pColorTable->Count(); i++ )
+
+    for ( long i = 0; i < aColorTable->Count(); i++ )
 	{
-        XColorEntry* pEntry = pColorTable->GetColor(i);
+        XColorEntry* pEntry = aColorTable->GetColor(i);
         m_pColorLB->InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 	}
 
     m_pColorLB->SetUpdateMode( sal_True );
-
-	if ( bKillTable )
-		delete pColorTable;
-
     m_pColorLB->SetSelectHdl( LINK( this, SvxCharNamePage, ColorBoxSelectHdl_Impl ) );
 
 	Link aLink = LINK( this, SvxCharNamePage, FontModifyHdl_Impl );
@@ -1787,20 +1782,18 @@ void SvxCharEffectsPage::Initialize()
 	// fill the color box
 	SfxObjectShell* pDocSh = SfxObjectShell::Current();
 	DBG_ASSERT( pDocSh, "DocShell not found!" );
-	XColorList* pColorTable = NULL;
-	FASTBOOL bKillTable = sal_False;
+	XColorListSharedPtr aColorTable;
 
 	if ( pDocSh )
     {
         pItem = pDocSh->GetItem( SID_COLOR_TABLE );
         if ( pItem != NULL )
-            pColorTable = ( (SvxColorTableItem*)pItem )->GetColorTable();
+            aColorTable = static_cast< const SvxColorTableItem* >(pItem)->GetColorTable();
     }
 
-	if ( !pColorTable )
+	if ( !aColorTable.get() )
 	{
-		pColorTable = new XColorList( SvtPathOptions().GetPalettePath() );
-		bKillTable = sal_True;
+		aColorTable = XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath());
 	}
 
 	m_aUnderlineColorLB.SetUpdateMode( sal_False );
@@ -1818,9 +1811,9 @@ void SvxCharEffectsPage::Initialize()
 			m_aFontColorLB.InsertAutomaticEntry();
 		}
 	}
-	for ( long i = 0; i < pColorTable->Count(); i++ )
+	for ( long i = 0; i < aColorTable->Count(); i++ )
 	{
-        XColorEntry* pEntry = pColorTable->GetColor(i);
+        XColorEntry* pEntry = aColorTable->GetColor(i);
 		m_aUnderlineColorLB.InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 		m_aOverlineColorLB.InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 		m_aFontColorLB.InsertEntry( pEntry->GetColor(), pEntry->GetName() );
@@ -1831,9 +1824,6 @@ void SvxCharEffectsPage::Initialize()
 	m_aFontColorLB.SetUpdateMode( sal_True );
     m_aFontColorLB.SetSelectHdl( LINK( this, SvxCharEffectsPage, ColorBoxSelectHdl_Impl ) );
 
-	if ( bKillTable )
-		delete pColorTable;
-
 	// handler
 	Link aLink = LINK( this, SvxCharEffectsPage, SelectHdl_Impl );
 	m_aUnderlineLB.SetSelectHdl( aLink );

Modified: openoffice/branches/ia2/main/cui/source/tabpages/numpages.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/numpages.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/numpages.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/numpages.cxx Sat May 18 10:12:43 2013
@@ -1609,31 +1609,27 @@ void 	SvxNumOptionsTabPage::Reset( const
 	{
 		SfxObjectShell* pDocSh = SfxObjectShell::Current();
 		DBG_ASSERT( pDocSh, "DocShell not found!" );
-		XColorList* pColorTable = NULL;
-		FASTBOOL bKillTable = sal_False;
-		if ( pDocSh )
+		XColorListSharedPtr aColorTable;
+
+        if ( pDocSh )
         {
             pItem = pDocSh->GetItem( SID_COLOR_TABLE );
             if ( pItem )
-                pColorTable = ( (SvxColorTableItem*)pItem )->GetColorTable();
+                aColorTable = static_cast< const SvxColorTableItem* >(pItem)->GetColorTable();
         }
 
-		if ( !pColorTable )
+		if ( !aColorTable.get() )
 		{
-			pColorTable = new XColorList( SvtPathOptions().GetPalettePath() );
-			bKillTable = sal_True;
+			aColorTable = XPropertyListFactory::CreateSharedXColorList(SvtPathOptions().GetPalettePath());
 		}
 
    		aBulColLB.InsertEntry( Color( COL_AUTO ), SVX_RESSTR( RID_SVXSTR_AUTOMATIC ));
 
-		for ( long i = 0; i < pColorTable->Count(); i++ )
+		for ( long i = 0; i < aColorTable->Count(); i++ )
 		{
-			XColorEntry* pEntry = pColorTable->GetColor(i);
+			XColorEntry* pEntry = aColorTable->GetColor(i);
 			aBulColLB.InsertEntry( pEntry->GetColor(), pEntry->GetName() );
 		}
-
-		if ( bKillTable )
-			delete pColorTable;
 	}
 
 	SfxObjectShell* pShell;

Modified: openoffice/branches/ia2/main/cui/source/tabpages/tabarea.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/tabarea.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/tabarea.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/tabarea.cxx Sat May 18 10:12:43 2013
@@ -68,15 +68,14 @@ SvxAreaTabDialog::SvxAreaTabDialog
 	SfxTabDialog( pParent, CUI_RES( RID_SVXDLG_AREA ), pAttr ),
 
     mpDrawModel          ( pModel ),
-//    mpView               ( pSdrView ),
-    mpColorTab           ( pModel->GetColorTable() ),
-    mpNewColorTab        ( pModel->GetColorTable() ),
-    mpGradientList       ( pModel->GetGradientList() ),
-    mpNewGradientList    ( pModel->GetGradientList() ),
-    mpHatchingList       ( pModel->GetHatchList() ),
-    mpNewHatchingList    ( pModel->GetHatchList() ),
-    mpBitmapList         ( pModel->GetBitmapList() ),
-    mpNewBitmapList      ( pModel->GetBitmapList() ),
+    maColorTab           ( pModel->GetColorTableFromSdrModel() ),
+    maNewColorTab        ( pModel->GetColorTableFromSdrModel() ),
+    maGradientList       ( pModel->GetGradientListFromSdrModel() ),
+    maNewGradientList    ( pModel->GetGradientListFromSdrModel() ),
+    maHatchingList       ( pModel->GetHatchListFromSdrModel() ),
+    maNewHatchingList    ( pModel->GetHatchListFromSdrModel() ),
+    maBitmapList         ( pModel->GetBitmapListFromSdrModel() ),
+    maNewBitmapList      ( pModel->GetBitmapListFromSdrModel() ),
     mrOutAttrs           ( *pAttr ),
     mnColorTableState ( CT_NONE ),
     mnBitmapListState ( CT_NONE ),
@@ -85,8 +84,7 @@ SvxAreaTabDialog::SvxAreaTabDialog
     mnPageType( PT_AREA ),
     mnDlgType( 0 ),
     mnPos( 0 ),
-    mbAreaTP( sal_False ),
-    mbDeleteColorTable( sal_True )
+    mbAreaTP( sal_False )
 {
 	FreeResource();
 
@@ -124,58 +122,53 @@ void SvxAreaTabDialog::SavePalettes()
         if ( xModel.is() )
             xDispatchProvider.set(xModel->getCurrentController(),uno::UNO_QUERY);
     }*/
-	if( mpNewColorTab != mpDrawModel->GetColorTable() )
+	if( maNewColorTab != mpDrawModel->GetColorTableFromSdrModel() )
 	{
-		if(mbDeleteColorTable)
-			delete mpDrawModel->GetColorTable();
-		mpDrawModel->SetColorTable( mpNewColorTab );
-        SvxColorTableItem aColorTableItem( mpNewColorTab, SID_COLOR_TABLE );
+		mpDrawModel->SetColorTableAtSdrModel( maNewColorTab );
+        SvxColorTableItem aColorTableItem( maNewColorTab, SID_COLOR_TABLE );
         if ( pShell )
             pShell->PutItem( aColorTableItem );
         else
         {
             mpDrawModel->GetItemPool().Put(aColorTableItem,SID_COLOR_TABLE);
         }
-		mpColorTab = mpDrawModel->GetColorTable();
+		maColorTab = mpDrawModel->GetColorTableFromSdrModel();
 	}
-	if( mpNewGradientList != mpDrawModel->GetGradientList() )
+	if( maNewGradientList != mpDrawModel->GetGradientListFromSdrModel() )
 	{
-		delete mpDrawModel->GetGradientList();
-		mpDrawModel->SetGradientList( mpNewGradientList );
-        SvxGradientListItem aItem( mpNewGradientList, SID_GRADIENT_LIST );
+		mpDrawModel->SetGradientListAtSdrModel( maNewGradientList );
+        SvxGradientListItem aItem( maNewGradientList, SID_GRADIENT_LIST );
         if ( pShell )
             pShell->PutItem( aItem );
         else
         {
             mpDrawModel->GetItemPool().Put(aItem,SID_GRADIENT_LIST);
         }
-		mpGradientList = mpDrawModel->GetGradientList();
+		maGradientList = mpDrawModel->GetGradientListFromSdrModel();
 	}
-	if( mpNewHatchingList != mpDrawModel->GetHatchList() )
+	if( maNewHatchingList != mpDrawModel->GetHatchListFromSdrModel() )
 	{
-		delete mpDrawModel->GetHatchList();
-		mpDrawModel->SetHatchList( mpNewHatchingList );
-        SvxHatchListItem aItem( mpNewHatchingList, SID_HATCH_LIST );
+		mpDrawModel->SetHatchListAtSdrModel( maNewHatchingList );
+        SvxHatchListItem aItem( maNewHatchingList, SID_HATCH_LIST );
         if ( pShell )
             pShell->PutItem( aItem );
         else
         {
             mpDrawModel->GetItemPool().Put(aItem,SID_HATCH_LIST);
         }
-		mpHatchingList = mpDrawModel->GetHatchList();
+		maHatchingList = mpDrawModel->GetHatchListFromSdrModel();
 	}
-	if( mpNewBitmapList != mpDrawModel->GetBitmapList() )
+	if( maNewBitmapList != mpDrawModel->GetBitmapListFromSdrModel() )
 	{
-		delete mpDrawModel->GetBitmapList();
-		mpDrawModel->SetBitmapList( mpNewBitmapList );
-        SvxBitmapListItem aItem( mpNewBitmapList, SID_BITMAP_LIST );
+		mpDrawModel->SetBitmapListAtSdrModel( maNewBitmapList );
+        SvxBitmapListItem aItem( maNewBitmapList, SID_BITMAP_LIST );
         if ( pShell )
             pShell->PutItem( aItem );
         else
         {
             mpDrawModel->GetItemPool().Put(aItem,SID_BITMAP_LIST);
         }
-		mpBitmapList = mpDrawModel->GetBitmapList();
+		maBitmapList = mpDrawModel->GetBitmapListFromSdrModel();
 	}
 
 	// Speichern der Tabellen, wenn sie geaendert wurden.
@@ -184,10 +177,10 @@ void SvxAreaTabDialog::SavePalettes()
 
 	if( mnHatchingListState & CT_MODIFIED )
 	{
-		mpHatchingList->SetPath( aPath );
-		mpHatchingList->Save();
+		maHatchingList->SetPath( aPath );
+		maHatchingList->Save();
 
-        SvxHatchListItem aItem( mpHatchingList, SID_HATCH_LIST );
+        SvxHatchListItem aItem( maHatchingList, SID_HATCH_LIST );
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
             pShell->PutItem( aItem );
@@ -199,10 +192,10 @@ void SvxAreaTabDialog::SavePalettes()
 
 	if( mnBitmapListState & CT_MODIFIED )
 	{
-		mpBitmapList->SetPath( aPath );
-		mpBitmapList->Save();
+		maBitmapList->SetPath( aPath );
+		maBitmapList->Save();
 
-        SvxBitmapListItem aItem( mpBitmapList, SID_BITMAP_LIST );
+        SvxBitmapListItem aItem( maBitmapList, SID_BITMAP_LIST );
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
             pShell->PutItem( aItem );
@@ -214,10 +207,10 @@ void SvxAreaTabDialog::SavePalettes()
 
 	if( mnGradientListState & CT_MODIFIED )
 	{
-		mpGradientList->SetPath( aPath );
-		mpGradientList->Save();
+		maGradientList->SetPath( aPath );
+		maGradientList->Save();
 
-        SvxGradientListItem aItem( mpGradientList, SID_GRADIENT_LIST );
+        SvxGradientListItem aItem( maGradientList, SID_GRADIENT_LIST );
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
             pShell->PutItem( aItem );
@@ -229,10 +222,10 @@ void SvxAreaTabDialog::SavePalettes()
 
 	if( mnColorTableState & CT_MODIFIED )
 	{
-		mpColorTab->SetPath( aPath );
-		mpColorTab->Save();
+		maColorTab->SetPath( aPath );
+		maColorTab->Save();
 
-        SvxColorTableItem aItem( mpColorTab, SID_COLOR_TABLE );
+        SvxColorTableItem aItem( maColorTab, SID_COLOR_TABLE );
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
             pShell->PutItem( aItem );
@@ -272,10 +265,10 @@ void SvxAreaTabDialog::PageCreated( sal_
 	switch( nId )
 	{
 		case RID_SVXPAGE_AREA:
-			( (SvxAreaTabPage&) rPage ).SetColorTable( mpColorTab );
-			( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList );
-			( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList );
-			( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList );
+			( (SvxAreaTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxAreaTabPage&) rPage ).SetGradientList( maGradientList );
+			( (SvxAreaTabPage&) rPage ).SetHatchingList( maHatchingList );
+			( (SvxAreaTabPage&) rPage ).SetBitmapList( maBitmapList );
 			//CHINA001 ( (SvxAreaTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxAreaTabPage&) rPage ).SetPageType( mnPageType ); //add CHINA001
 			//CHINA001 ( (SvxAreaTabPage&) rPage ).SetDlgType( &mnDlgType );
@@ -295,7 +288,7 @@ void SvxAreaTabDialog::PageCreated( sal_
 
 		case RID_SVXPAGE_SHADOW:
 		{
-			( (SvxShadowTabPage&) rPage ).SetColorTable( mpColorTab );
+			( (SvxShadowTabPage&) rPage ).SetColorTable( maColorTab );
 			( (SvxShadowTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxShadowTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetDlgType( &mnDlgType );
 			//( (SvxShadowTabPage&) rPage ).SetPos( &nPos );
@@ -306,8 +299,8 @@ void SvxAreaTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_GRADIENT:
-			( (SvxGradientTabPage&) rPage ).SetColorTable( mpColorTab );
-			( (SvxGradientTabPage&) rPage ).SetGradientList( mpGradientList );
+			( (SvxGradientTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxGradientTabPage&) rPage ).SetGradientList( maGradientList );
 			( (SvxGradientTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxGradientTabPage&) rPage ).SetDlgType( &mnDlgType );
 			( (SvxGradientTabPage&) rPage ).SetPos( &mnPos );
@@ -318,8 +311,8 @@ void SvxAreaTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_HATCH:
-			( (SvxHatchTabPage&) rPage ).SetColorTable( mpColorTab );
-			( (SvxHatchTabPage&) rPage ).SetHatchingList( mpHatchingList );
+			( (SvxHatchTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxHatchTabPage&) rPage ).SetHatchingList( maHatchingList );
 			( (SvxHatchTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxHatchTabPage&) rPage ).SetDlgType( &mnDlgType );
 			( (SvxHatchTabPage&) rPage ).SetPos( &mnPos );
@@ -330,8 +323,8 @@ void SvxAreaTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_BITMAP:
-			( (SvxBitmapTabPage&) rPage ).SetColorTable( mpColorTab );
-			( (SvxBitmapTabPage&) rPage ).SetBitmapList( mpBitmapList );
+			( (SvxBitmapTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxBitmapTabPage&) rPage ).SetBitmapList( maBitmapList );
 			( (SvxBitmapTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxBitmapTabPage&) rPage ).SetDlgType( &mnDlgType );
 			( (SvxBitmapTabPage&) rPage ).SetPos( &mnPos );
@@ -342,13 +335,12 @@ void SvxAreaTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_COLOR:
-			( (SvxColorTabPage&) rPage ).SetColorTable( mpColorTab );
+			( (SvxColorTabPage&) rPage ).SetColorTable( maColorTab );
 			( (SvxColorTabPage&) rPage ).SetPageType( &mnPageType );
 			( (SvxColorTabPage&) rPage ).SetDlgType( &mnDlgType );
 			( (SvxColorTabPage&) rPage ).SetPos( &mnPos );
 			( (SvxColorTabPage&) rPage ).SetAreaTP( &mbAreaTP );
 			( (SvxColorTabPage&) rPage ).SetColorChgd( &mnColorTableState );
-			( (SvxColorTabPage&) rPage ).SetDeleteColorTable( mbDeleteColorTable );
 			( (SvxColorTabPage&) rPage ).Construct();
 		break;
 

Modified: openoffice/branches/ia2/main/cui/source/tabpages/tabline.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/cui/source/tabpages/tabline.cxx?rev=1484083&r1=1484082&r2=1484083&view=diff
==============================================================================
--- openoffice/branches/ia2/main/cui/source/tabpages/tabline.cxx (original)
+++ openoffice/branches/ia2/main/cui/source/tabpages/tabline.cxx Sat May 18 10:12:43 2013
@@ -70,12 +70,12 @@ SvxLineTabDialog::SvxLineTabDialog
 	pDrawModel		( pModel ),
 	pObj			( pSdrObj ),
     rOutAttrs       ( *pAttr ),
-    pColorTab       ( pModel->GetColorTable() ),
-    mpNewColorTab   ( pModel->GetColorTable() ),
-	pDashList       ( pModel->GetDashList() ),
-    pNewDashList    ( pModel->GetDashList() ),
-    pLineEndList    ( pModel->GetLineEndList() ),
-    pNewLineEndList ( pModel->GetLineEndList() ),
+    maColorTab      ( pModel->GetColorTableFromSdrModel() ),
+    maNewColorTab   ( pModel->GetColorTableFromSdrModel() ),
+	maDashList      ( pModel->GetDashListFromSdrModel() ),
+    maNewDashList   ( pModel->GetDashListFromSdrModel() ),
+    maLineEndList   ( pModel->GetLineEndListFromSdrModel() ),
+    maNewLineEndList( pModel->GetLineEndListFromSdrModel() ),
     bObjSelected    ( bHasObj ),
     nLineEndListState( CT_NONE ),
     nDashListState( CT_NONE ),
@@ -86,8 +86,7 @@ SvxLineTabDialog::SvxLineTabDialog
     nPosDashLb( 0 ),
     nPosLineEndLb( 0 ),
     mnPos( 0 ),
-    mbAreaTP( sal_False ),
-    mbDeleteColorTable( sal_True )
+    mbAreaTP( sal_False )
 {
 	FreeResource();
 
@@ -138,30 +137,26 @@ SvxLineTabDialog::~SvxLineTabDialog()
 void SvxLineTabDialog::SavePalettes()
 {
     SfxObjectShell* pShell = SfxObjectShell::Current();
-	if( mpNewColorTab != pDrawModel->GetColorTable() )
+	if( maNewColorTab != pDrawModel->GetColorTableFromSdrModel() )
 	{
-		if(mbDeleteColorTable)
-			delete pDrawModel->GetColorTable();
-		pDrawModel->SetColorTable( mpNewColorTab );
+		pDrawModel->SetColorTableAtSdrModel( maNewColorTab );
         if ( pShell )
-            pShell->PutItem( SvxColorTableItem( mpNewColorTab, SID_COLOR_TABLE ) );
-		pColorTab = pDrawModel->GetColorTable();
+            pShell->PutItem( SvxColorTableItem( maNewColorTab, SID_COLOR_TABLE ) );
+		maColorTab = pDrawModel->GetColorTableFromSdrModel();
 	}
-	if( pNewDashList != pDrawModel->GetDashList() )
+	if( maNewDashList != pDrawModel->GetDashListFromSdrModel() )
 	{
-		delete pDrawModel->GetDashList();
-		pDrawModel->SetDashList( pNewDashList );
+		pDrawModel->SetDashListAtSdrModel( maNewDashList );
         if ( pShell )
-            pShell->PutItem( SvxDashListItem( pNewDashList, SID_DASH_LIST ) );
-		pDashList = pDrawModel->GetDashList();
+            pShell->PutItem( SvxDashListItem( maNewDashList, SID_DASH_LIST ) );
+		maDashList = pDrawModel->GetDashListFromSdrModel();
 	}
-	if( pNewLineEndList != pDrawModel->GetLineEndList() )
+	if( maNewLineEndList != pDrawModel->GetLineEndListFromSdrModel() )
 	{
-		delete pDrawModel->GetLineEndList();
-		pDrawModel->SetLineEndList( pNewLineEndList );
+		pDrawModel->SetLineEndListAtSdrModel( maNewLineEndList );
         if ( pShell )
-            pShell->PutItem( SvxLineEndListItem( pNewLineEndList, SID_LINEEND_LIST ) );
-		pLineEndList = pDrawModel->GetLineEndList();
+            pShell->PutItem( SvxLineEndListItem( maNewLineEndList, SID_LINEEND_LIST ) );
+		maLineEndList = pDrawModel->GetLineEndListFromSdrModel();
 	}
 
 	// Speichern der Tabellen, wenn sie geaendert wurden.
@@ -170,32 +165,32 @@ void SvxLineTabDialog::SavePalettes()
 
 	if( nDashListState & CT_MODIFIED )
 	{
-		pDashList->SetPath( aPath );
-		pDashList->Save();
+		maDashList->SetPath( aPath );
+		maDashList->Save();
 
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
-            pShell->PutItem( SvxDashListItem( pDashList, SID_DASH_LIST ) );
+            pShell->PutItem( SvxDashListItem( maDashList, SID_DASH_LIST ) );
 	}
 
 	if( nLineEndListState & CT_MODIFIED )
 	{
-		pLineEndList->SetPath( aPath );
-		pLineEndList->Save();
+		maLineEndList->SetPath( aPath );
+		maLineEndList->Save();
 
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
-            pShell->PutItem( SvxLineEndListItem( pLineEndList, SID_LINEEND_LIST ) );
+            pShell->PutItem( SvxLineEndListItem( maLineEndList, SID_LINEEND_LIST ) );
 	}
 
 	if( mnColorTableState & CT_MODIFIED )
 	{
-		pColorTab->SetPath( aPath );
-		pColorTab->Save();
+		maColorTab->SetPath( aPath );
+		maColorTab->Save();
 
 		// ToolBoxControls werden benachrichtigt:
         if ( pShell )
-            pShell->PutItem( SvxColorTableItem( pColorTab, SID_COLOR_TABLE ) );
+            pShell->PutItem( SvxColorTableItem( maColorTab, SID_COLOR_TABLE ) );
 	}
 }
 
@@ -229,9 +224,9 @@ void SvxLineTabDialog::PageCreated( sal_
 	switch( nId )
 	{
 		case RID_SVXPAGE_LINE:
-			( (SvxLineTabPage&) rPage ).SetColorTable( pColorTab );
-			( (SvxLineTabPage&) rPage ).SetDashList( pDashList );
-			( (SvxLineTabPage&) rPage ).SetLineEndList( pLineEndList );
+			( (SvxLineTabPage&) rPage ).SetColorTable( maColorTab );
+			( (SvxLineTabPage&) rPage ).SetDashList( maDashList );
+			( (SvxLineTabPage&) rPage ).SetLineEndList( maLineEndList );
 			( (SvxLineTabPage&) rPage ).SetDlgType( nDlgType );//CHINA001 ( (SvxLineTabPage&) rPage ).SetDlgType( &nDlgType );
 			( (SvxLineTabPage&) rPage ).SetPageType( nPageType );//CHINA001 ( (SvxLineTabPage&) rPage ).SetPageType( &nPageType );
 			( (SvxLineTabPage&) rPage ).SetPosDashLb( &nPosDashLb );
@@ -246,7 +241,7 @@ void SvxLineTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_LINE_DEF:
-			( (SvxLineDefTabPage&) rPage ).SetDashList( pDashList );
+			( (SvxLineDefTabPage&) rPage ).SetDashList( maDashList );
 			( (SvxLineDefTabPage&) rPage ).SetDlgType( &nDlgType );
 			( (SvxLineDefTabPage&) rPage ).SetPageType( &nPageType );
 			( (SvxLineDefTabPage&) rPage ).SetPosDashLb( &nPosDashLb );
@@ -256,7 +251,7 @@ void SvxLineTabDialog::PageCreated( sal_
 		break;
 
 		case RID_SVXPAGE_LINEEND_DEF:
-			( (SvxLineEndDefTabPage&) rPage ).SetLineEndList( pLineEndList );
+			( (SvxLineEndDefTabPage&) rPage ).SetLineEndList( maLineEndList );
 			( (SvxLineEndDefTabPage&) rPage ).SetPolyObj( pObj );
 			( (SvxLineEndDefTabPage&) rPage ).SetDlgType( &nDlgType );
 			( (SvxLineEndDefTabPage&) rPage ).SetPageType( &nPageType );
@@ -268,7 +263,7 @@ void SvxLineTabDialog::PageCreated( sal_
 
 		case RID_SVXPAGE_SHADOW:
 		{
-			( (SvxShadowTabPage&) rPage ).SetColorTable( pColorTab );
+			( (SvxShadowTabPage&) rPage ).SetColorTable( maColorTab );
 			( (SvxShadowTabPage&) rPage ).SetPageType( nPageType );
 			( (SvxShadowTabPage&) rPage ).SetDlgType( nDlgType );
 			( (SvxShadowTabPage&) rPage ).SetAreaTP( &mbAreaTP );
@@ -278,13 +273,12 @@ void SvxLineTabDialog::PageCreated( sal_
 		break;
 /*
 		case RID_SVXPAGE_COLOR:
-			( (SvxColorTabPage&) rPage ).SetColorTable( pColorTab );
+			( (SvxColorTabPage&) rPage ).SetColorTable( maColorTab );
 			( (SvxColorTabPage&) rPage ).SetPageType( &nPageType );
 			( (SvxColorTabPage&) rPage ).SetDlgType( &nDlgType );
 			( (SvxColorTabPage&) rPage ).SetPos( &mnPos );
 			( (SvxColorTabPage&) rPage ).SetAreaTP( &mbAreaTP );
 			( (SvxColorTabPage&) rPage ).SetColorChgd( &mnColorTableState );
-			( (SvxColorTabPage&) rPage ).SetDeleteColorTable( mbDeleteColorTable );
 			( (SvxColorTabPage&) rPage ).Construct();
 		break;
 */