User: rt      
Date: 2008-06-16 13:44:23+0000
Modified:
   dba/reportdesign/source/ui/inspection/metadata.cxx

Log:
 INTEGRATION: CWS rptchart02 (1.6.4); FILE MERGED
 2008/05/15 12:28:02 oj 1.6.4.3: #i89369# disbale title feature at propbrw for 
teh moment but impl all what is needed as we can introduce new strings again
 2008/04/16 06:30:11 oj 1.6.4.2: RESYNC: (1.6-1.7); FILE MERGED
 2008/04/03 06:35:20 oj 1.6.4.1: #i86343# remove unused code

File Changes:

Directory: /dba/reportdesign/source/ui/inspection/
==================================================

File [changed]: metadata.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/inspection/metadata.cxx?r1=1.7&r2=1.8
Delta lines:  +3 -54
--------------------
--- metadata.cxx        2008-04-10 19:10:49+0000        1.7
+++ metadata.cxx        2008-06-16 13:44:20+0000        1.8
@@ -193,13 +193,6 @@
        }
 
        
//------------------------------------------------------------------------
-       String OPropertyInfoService::getPropertyName( sal_Int32 _nPropId )
-    {
-               const OPropertyInfoImpl* pInfo = getPropertyInfo(_nPropId);
-               return pInfo ? pInfo->sName : String();
-    }
-
-       
//------------------------------------------------------------------------
        String OPropertyInfoService::getPropertyTranslation(sal_Int32 _nId) 
const
        {
                const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
@@ -214,13 +207,6 @@
        }
 
        
//------------------------------------------------------------------------
-       sal_Int16 OPropertyInfoService::getPropertyPos(sal_Int32 _nId) const
-       {
-               const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
-               return (pInfo) ? pInfo->nPos : 0xFFFF;
-       }
-
-       
//------------------------------------------------------------------------
        sal_uInt32 OPropertyInfoService::getPropertyUIFlags(sal_Int32 _nId) 
const
        {
                const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
@@ -228,44 +214,6 @@
        }
 
        
//------------------------------------------------------------------------
-    void OPropertyInfoService::getPropertyEnumRepresentations(sal_Int32 
_nId,::std::vector< ::rtl::OUString >& _rOut) const
-       {
-        OSL_ENSURE( ( ( getPropertyUIFlags( _nId ) & PROP_FLAG_ENUM ) != 0 ) ,
-            "OPropertyInfoService::getPropertyEnumRepresentations: this is no 
enum property!" );
-
-        sal_Int16 nCommaSeparatedListResId = 0;
-        sal_Int16 nStringItemsResId = 0;
-        switch ( _nId )
-               {
-                       case PROPERTY_ID_FORCENEWPAGE:
-                               nCommaSeparatedListResId = 
RID_STR_FORCENEWPAGE_CONST;
-                               break;
-               }
-
-        if ( nCommaSeparatedListResId )
-        {
-            String sSeparatedList = String( ModuleRes( 
nCommaSeparatedListResId ) );
-                   xub_StrLen nTokens = sSeparatedList.GetTokenCount();
-            _rOut.reserve( nTokens );
-                   for ( xub_StrLen i = 0; i < nTokens; ++i )
-                _rOut.push_back( sSeparatedList.GetToken( i ) );
-        }
-        else if ( nStringItemsResId )
-        {
-            ModuleRes aModuleRes( nStringItemsResId );
-            ::svt::OLocalResourceAccess aEnumStrings( aModuleRes, RSC_RESOURCE 
);
-
-            sal_Int16 i = 1;
-            ModuleRes aLocalId( i );
-            while ( aEnumStrings.IsAvailableRes( aLocalId.SetRT( RSC_STRING ) 
) )
-            {
-                _rOut.push_back( String( aLocalId ) );
-                aLocalId = ModuleRes( ++i );
-            }
-        }
-       }
-
-       
//------------------------------------------------------------------------
        const OPropertyInfoImpl* OPropertyInfoService::getPropertyInfo(const 
String& _rName)
        {
                // intialisierung
@@ -315,7 +263,7 @@
     void OPropertyInfoService::getExcludeProperties(::std::vector< 
beans::Property >& _rExcludeProperties,const ::com::sun::star::uno::Reference< 
::com::sun::star::inspection::XPropertyHandler >& _xFormComponentHandler)
     {
         uno::Sequence< beans::Property > aProps = 
_xFormComponentHandler->getSupportedProperties();
-        ::rtl::OUString pExcludeProperties[] =
+        static const ::rtl::OUString pExcludeProperties[] =
         {
                 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Enabled")),
                 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Printable")),
@@ -340,6 +288,7 @@
                 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RepeatDelay")),
                 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ControlLabel")), 
/// TODO: has to be checked
                 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("LabelControl")),  
              
+                ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Title")), // 
comment this out if you want to have title feature for charts
                 PROPERTY_MAXTEXTLEN,
                 PROPERTY_EFFECTIVEDEFAULT,
                 PROPERTY_EFFECTIVEMAX,




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to