summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-07-10 18:21:24 +0200
committerMathias Bauer <mba@openoffice.org>2010-07-10 18:21:24 +0200
commitc61aa274cb5631305cfbaea6f1894db756e911c8 (patch)
tree7ba0d80cc7314143cf37d016e0e15c558781cec5 /extensions/source
parentaa7147590570dcb0813b6fcebb6496179b9df5cb (diff)
CWS changehid: #i111874#: change code to support HelpIds as byte strings
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/abpilot/abspilot.cxx15
-rw-r--r--extensions/source/bibliography/datman.cxx4
-rw-r--r--extensions/source/bibliography/framectr.cxx3
-rw-r--r--extensions/source/bibliography/general.cxx17
-rw-r--r--extensions/source/bibliography/general.hxx4
-rw-r--r--extensions/source/bibliography/toolbar.src77
-rw-r--r--extensions/source/dbpilots/gridwizard.cxx12
-rw-r--r--extensions/source/dbpilots/groupboxwiz.cxx12
-rw-r--r--extensions/source/dbpilots/listcombowizard.cxx12
-rw-r--r--extensions/source/propctrlr/browserline.cxx13
-rw-r--r--extensions/source/propctrlr/browserline.hxx3
-rw-r--r--extensions/source/propctrlr/browserlistbox.cxx4
-rw-r--r--extensions/source/propctrlr/browserview.cxx3
-rw-r--r--extensions/source/propctrlr/defaultforminspection.cxx2
-rw-r--r--extensions/source/propctrlr/eformspropertyhandler.cxx12
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx16
-rw-r--r--extensions/source/propctrlr/eventhandler.hxx12
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx36
-rw-r--r--extensions/source/propctrlr/formmetadata.cxx14
-rw-r--r--extensions/source/propctrlr/formmetadata.hxx2
-rw-r--r--extensions/source/propctrlr/pcrcommon.cxx16
-rw-r--r--extensions/source/propctrlr/pcrcommon.hxx3
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx1
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx15
-rw-r--r--extensions/source/propctrlr/propertyeditor.hxx2
-rw-r--r--extensions/source/propctrlr/propertyinfo.hxx3
-rw-r--r--extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx4
-rw-r--r--extensions/source/update/check/updatehdl.cxx20
28 files changed, 108 insertions, 229 deletions
diff --git a/extensions/source/abpilot/abspilot.cxx b/extensions/source/abpilot/abspilot.cxx
index a596143fac0f..b315893b6447 100644
--- a/extensions/source/abpilot/abspilot.cxx
+++ b/extensions/source/abpilot/abspilot.cxx
@@ -106,16 +106,11 @@ namespace abp
WZS_INVALID_STATE
);
- // FIXME: HELPID
- m_pPrevPage->SetHelpId(""/*HID_ABSPILOT_PREVIOUS*/);
- // FIXME: HELPID
- m_pNextPage->SetHelpId(""/*HID_ABSPILOT_NEXT*/);
- // FIXME: HELPID
- m_pCancel->SetHelpId(""/*HID_ABSPILOT_CANCEL*/);
- // FIXME: HELPID
- m_pFinish->SetHelpId(""/*HID_ABSPILOT_FINISH*/);
- // FIXME: HELPID
- m_pHelp->SetUniqueId(""/*UID_ABSPILOT_HELP*/);
+ m_pPrevPage->SetHelpId(HID_ABSPILOT_PREVIOUS);
+ m_pNextPage->SetHelpId(HID_ABSPILOT_NEXT);
+ m_pCancel->SetHelpId(HID_ABSPILOT_CANCEL);
+ m_pFinish->SetHelpId(HID_ABSPILOT_FINISH);
+ m_pHelp->SetUniqueId(UID_ABSPILOT_HELP);
m_pCancel->SetClickHdl( LINK( this, OAddessBookSourcePilot, OnCancelClicked) );
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index 9fa401a1620c..6a9290ee59b9 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -1437,8 +1437,8 @@ Reference< awt::XControlModel > BibDataManager::createGridModel(const ::rtl::OUS
if (xPropInfo->hasPropertyByName(uProp))
{
::rtl::OUString sId = ::rtl::OUString::createFromAscii( "HID:" );
- sId += ::rtl::OUString::valueOf( (sal_Int32) HID_BIB_DB_GRIDCTRL );
- xPropSet->setPropertyValue( uProp, makeAny( ::rtl::OUString( sId ) ) );
+ sId += ::rtl::OUString::createFromAscii( HID_BIB_DB_GRIDCTRL );
+ xPropSet->setPropertyValue( uProp, makeAny( sId ) );
}
}
catch(Exception& e )
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 72a018650e6b..4489fad70161 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -198,8 +198,7 @@ BibFrameController_Impl::BibFrameController_Impl( const uno::Reference< awt::XWi
,pBibMod(NULL)
{
Window* pParent = VCLUnoHelper::GetWindow( xWindow );
- // FIXME: HELPID
- pParent->SetUniqueId(""/*UID_BIB_FRAME_WINDOW*/);
+ pParent->SetUniqueId(UID_BIB_FRAME_WINDOW);
bDisposing=sal_False;
bHierarchical=sal_True;
pImp = new BibFrameCtrl_Impl;
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index aed795d37c15..156c82673213 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -245,8 +245,7 @@ BibGeneralPage::BibGeneralPage(Window* pParent, BibDataManager* pMan):
pDatMan(pMan)
{
aControlParentWin.Show();
- // FIXME: HELPID
- aControlParentWin.SetHelpId(""/*HID_BIB_CONTROL_PARENT*/);
+ aControlParentWin.SetHelpId(HID_BIB_CONTROL_PARENT);
aStdSize = GetOutputSizePixel();
aBibTypeArr[0] = String(BibResId(ST_TYPE_ARTICLE));
@@ -464,12 +463,12 @@ void BibGeneralPage::CommitActiveControl()
}
//-----------------------------------------------------------------------------
void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::Point& rPos, const ::Size& rSize,
- String& rErrorString, String aColumnUIName, sal_uInt16 nHelpId, sal_uInt16 nIndexInFTArray )
+ String& rErrorString, String aColumnUIName, const rtl::OString& sHelpId, sal_uInt16 nIndexInFTArray )
{
// adds also the XControl and creates a map entry in nFT2CtrlMap[] for mapping between control and FT
INT16 nIndex = -1;
- uno::Reference< awt::XControlModel > xTmp = AddXControl(rColumnName, rPos, rSize, nHelpId, nIndex );
+ uno::Reference< awt::XControlModel > xTmp = AddXControl(rColumnName, rPos, rSize, sHelpId, nIndex );
if( xTmp.is() )
{
DBG_ASSERT( nIndexInFTArray < FIELD_COUNT, "*BibGeneralPage::AddControlWithError(): wrong array index!" );
@@ -488,7 +487,7 @@ void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::P
//-----------------------------------------------------------------------------
uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
const String& rName,
- ::Point rPos, ::Size rSize, sal_uInt16 nHelpId, INT16& rIndex )
+ ::Point rPos, ::Size rSize, const rtl::OString& sHelpId, INT16& rIndex )
{
uno::Reference< awt::XControlModel > xCtrModel;
try
@@ -510,11 +509,9 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
rtl::OUString uProp(C2U("HelpURL"));
if(xPropInfo->hasPropertyByName(uProp))
{
- String sId(C2S("HID:"));
- sId += String::CreateFromInt32(nHelpId);
- rtl::OUString uId(sId) ;
- uno::Any aVal; aVal <<= uId;
- xPropSet->setPropertyValue(uProp, aVal);
+ ::rtl::OUString sId = ::rtl::OUString::createFromAscii( "HID:" );
+ sId += ::rtl::OUString( sHelpId, sHelpId.getLength(), RTL_TEXTENCODING_UTF8 );
+ xPropSet->setPropertyValue( uProp, makeAny( sId ) );
}
if(bTypeListBox)
diff --git a/extensions/source/bibliography/general.hxx b/extensions/source/bibliography/general.hxx
index fdcb97c9e177..27074404929a 100644
--- a/extensions/source/bibliography/general.hxx
+++ b/extensions/source/bibliography/general.hxx
@@ -140,12 +140,12 @@ class BibGeneralPage: public BibGeneralPageBaseClass, public BibTabPage
BibDataManager* pDatMan;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >
- AddXControl( const String& rName, Point aPos, Size aSize, sal_uInt16 nHelpId,
+ AddXControl( const String& rName, Point aPos, Size aSize, const rtl::OString& sHelpId,
sal_Int16& rIndex );
void AddControlWithError( const rtl::OUString& rColumnName, const Point& rPos,
const Size& rSize, String& rErrorString, String aColumnUIName,
- sal_uInt16 nHelpId, sal_uInt16 nIndexInFTArray );
+ const rtl::OString& sHelpId, sal_uInt16 nIndexInFTArray );
void AdjustScrollbars();
diff --git a/extensions/source/bibliography/toolbar.src b/extensions/source/bibliography/toolbar.src
index b8a604587bc4..a08fe44d04bd 100644
--- a/extensions/source/bibliography/toolbar.src
+++ b/extensions/source/bibliography/toolbar.src
@@ -27,6 +27,7 @@
#include <svx/svxids.hrc>
#include "bibliography.hrc"
#include "toolbar.hrc"
+#include "svx/svxcommands.h"
#define MASKCOLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; };
@@ -46,7 +47,6 @@ ToolBox RID_BIB_TOOLBAR
ToolBoxItem
{
Identifier = TBC_FT_SOURCE;
- //HelpID = SID_SBA_BRW_INSERT ;
Text [ en-US ] = "Table";
};
ToolBoxItem
@@ -63,7 +63,6 @@ ToolBox RID_BIB_TOOLBAR
ToolBoxItem
{
Identifier = TBC_FT_QUERY;
- //HelpID = SID_SBA_BRW_INSERT ;
Text [ en-US ] = "Search Key";
};
ToolBoxItem
@@ -90,7 +89,6 @@ ToolBox RID_BIB_TOOLBAR
ToolBoxItem
{
Identifier = TBC_BT_FILTERCRIT ;
- HelpID = SID_FM_FILTERCRIT ;
// ItemBitmap = Bitmap { File = "sc10715.bmp" ; };
// Text [ de ] = "Standard Filter" ;
Command = ".uno:Bib/standardFilter" ;
@@ -100,7 +98,6 @@ ToolBox RID_BIB_TOOLBAR
ToolBoxItem
{
Identifier = TBC_BT_REMOVEFILTER ;
- HelpID = SID_FM_REMOVE_FILTER_SORT ;
// ItemBitmap = Bitmap { File = "sc10711.bmp" ; };
Command = ".uno:Bib/removeFilter" ;
Text [ en-US ] = "Remove Filter";
@@ -122,78 +119,6 @@ ToolBox RID_BIB_TOOLBAR
Checkable=TRUE;
Text [ en-US ] = "Data Source";
};
-/*
- ToolBoxItem
- {
- Type = TOOLBOXITEM_SEPARATOR ;
- };
-
- ToolBoxItem
- {
- Identifier = TBC_BT_NEWCARD ;
- //HelpID = SID_FM_REMOVE_FILTER_SORT ;
- Command = ".uno:Bib/newEntry" ;
- ItemBitmap = Bitmap { File = "newcard.bmp" ; };
- Text [ en-US ] = "New Address";
- };
-
- ToolBoxItem
- {
- Identifier = TBC_BT_EDITCARD ;
- //HelpID = SID_FM_REMOVE_FILTER_SORT ;
- Command = ".uno:Bib/changeEntry" ;
- ItemBitmap = Bitmap { File = "modcard.bmp" ; };
- Text [ en-US ] = "Edit Address";
- };
-
- ToolBoxItem
- {
- Identifier = TBC_BT_REMOVECARD ;
- //HelpID = SID_FM_REMOVE_FILTER_SORT ;
- Command = ".uno:Bib/removeEntry" ;
- ItemBitmap = Bitmap { File = "remcard.bmp" ; };
- Text [ en-US ] = "Remove Address";
- };
-
- ToolBoxItem
- {
- Type = TOOLBOXITEM_SEPARATOR ;
- };
-
- ToolBoxItem
- {
- Identifier = TBC_BT_INSERT ;
- HelpID = SID_SBA_BRW_INSERT ;
- ItemBitmap = Bitmap { File = "sc12202.bmp" ; };
- Text [ en-US ] = "Data into Text";
- };
- ToolBoxItem
- {
- Identifier = TBC_BT_UPDATE ;
- HelpID = SID_SBA_BRW_UPDATE ;
- ItemBitmap = Bitmap { File = "sc12201.bmp" ; };
- Text = "Daten in Felder" ;
- };
-
- ToolBoxItem
- {
- Type = TOOLBOXITEM_SEPARATOR ;
- };
-
- ToolBoxItem
- {
- Identifier = TBC_BT_MAIL ;
- //HelpID = HID_ADDRPI_AUTOMAIL ;
- ItemBitmap = Bitmap { File = "sc06305.bmp" ; };
- Text [ en-US ] = "AutoMail";
- };
- ToolBoxItem
- {
- Identifier = TBC_BT_URL ;
- //HelpID = HID_ADDRPI_AUTOBROWSE ;
- ItemBitmap = Bitmap { File = "sc06304.bmp" ; };
- Text [ en-US ] = "AutoBrowse";
- };*/
};
Scroll = TRUE ;
};
diff --git a/extensions/source/dbpilots/gridwizard.cxx b/extensions/source/dbpilots/gridwizard.cxx
index ef9f4088028b..6e28567aef62 100644
--- a/extensions/source/dbpilots/gridwizard.cxx
+++ b/extensions/source/dbpilots/gridwizard.cxx
@@ -65,14 +65,10 @@ namespace dbp
{
initControlSettings(&m_aSettings);
- // FIXME: HELPID
- m_pPrevPage->SetHelpId(""/*HID_GRIDWIZARD_PREVIOUS*/);
- // FIXME: HELPID
- m_pNextPage->SetHelpId(""/*HID_GRIDWIZARD_NEXT*/);
- // FIXME: HELPID
- m_pCancel->SetHelpId(""/*HID_GRIDWIZARD_CANCEL*/);
- // FIXME: HELPID
- m_pFinish->SetHelpId(""/*HID_GRIDWIZARD_FINISH*/);
+ m_pPrevPage->SetHelpId(HID_GRIDWIZARD_PREVIOUS);
+ m_pNextPage->SetHelpId(HID_GRIDWIZARD_NEXT);
+ m_pCancel->SetHelpId(HID_GRIDWIZARD_CANCEL);
+ m_pFinish->SetHelpId(HID_GRIDWIZARD_FINISH);
// if we do not need the data source selection page ...
if (!needDatasourceSelection())
diff --git a/extensions/source/dbpilots/groupboxwiz.cxx b/extensions/source/dbpilots/groupboxwiz.cxx
index d98a23046e69..7bf3138bf5fe 100644
--- a/extensions/source/dbpilots/groupboxwiz.cxx
+++ b/extensions/source/dbpilots/groupboxwiz.cxx
@@ -66,14 +66,10 @@ namespace dbp
{
initControlSettings(&m_aSettings);
- // FIXME: HELPID
- m_pPrevPage->SetHelpId(""/*HID_GROUPWIZARD_PREVIOUS*/);
- // FIXME: HELPID
- m_pNextPage->SetHelpId(""/*HID_GROUPWIZARD_NEXT*/);
- // FIXME: HELPID
- m_pCancel->SetHelpId(""/*HID_GROUPWIZARD_CANCEL*/);
- // FIXME: HELPID
- m_pFinish->SetHelpId(""/*HID_GROUPWIZARD_FINISH*/);
+ m_pPrevPage->SetHelpId(HID_GROUPWIZARD_PREVIOUS);
+ m_pNextPage->SetHelpId(HID_GROUPWIZARD_NEXT);
+ m_pCancel->SetHelpId(HID_GROUPWIZARD_CANCEL);
+ m_pFinish->SetHelpId(HID_GROUPWIZARD_FINISH);
}
//---------------------------------------------------------------------
diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx
index 135fc3721982..2e810654baa4 100644
--- a/extensions/source/dbpilots/listcombowizard.cxx
+++ b/extensions/source/dbpilots/listcombowizard.cxx
@@ -67,14 +67,10 @@ namespace dbp
{
initControlSettings(&m_aSettings);
- // FIXME: HELPID
- m_pPrevPage->SetHelpId(""/*HID_LISTWIZARD_PREVIOUS*/);
- // FIXME: HELPID
- m_pNextPage->SetHelpId(""/*HID_LISTWIZARD_NEXT*/);
- // FIXME: HELPID
- m_pCancel->SetHelpId(""/*HID_LISTWIZARD_CANCEL*/);
- // FIXME: HELPID
- m_pFinish->SetHelpId(""/*HID_LISTWIZARD_FINISH*/);
+ m_pPrevPage->SetHelpId(HID_LISTWIZARD_PREVIOUS);
+ m_pNextPage->SetHelpId(HID_LISTWIZARD_NEXT);
+ m_pCancel->SetHelpId(HID_LISTWIZARD_CANCEL);
+ m_pFinish->SetHelpId(HID_LISTWIZARD_FINISH);
// if we do not need the data source selection page ...
if (!needDatasourceSelection())
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx
index 142b112032fe..b678f15515a7 100644
--- a/extensions/source/propctrlr/browserline.cxx
+++ b/extensions/source/propctrlr/browserline.cxx
@@ -105,27 +105,20 @@ namespace pcr
}
//------------------------------------------------------------------
- void OBrowserLine::SetComponentHelpIds( const rtl::OString& _rHelpId, sal_uInt32 _bPrimaryButtonId, sal_uInt32 _nSecondaryButtonId )
+ void OBrowserLine::SetComponentHelpIds( const rtl::OString& _rHelpId, const rtl::OString& _sPrimaryButtonId, const rtl::OString& _sSecondaryButtonId )
{
if ( m_pControlWindow )
- // FIXME: HELPID
m_pControlWindow->SetHelpId( _rHelpId );
if ( m_pBrowseButton )
{
- // FIXME: HELPID
m_pBrowseButton->SetHelpId( _rHelpId );
- // FIXME: HELPID
- m_pBrowseButton->SetUniqueId( ""/*_bPrimaryButtonId*/ );
- (void)_bPrimaryButtonId;
+ m_pBrowseButton->SetUniqueId( _sPrimaryButtonId );
if ( m_pAdditionalBrowseButton )
{
- // FIXME: HELPID
m_pAdditionalBrowseButton->SetHelpId( _rHelpId );
- // FIXME: HELPID
- m_pAdditionalBrowseButton->SetUniqueId( ""/*_nSecondaryButtonId*/ );
- (void)_nSecondaryButtonId;
+ m_pAdditionalBrowseButton->SetUniqueId( _sSecondaryButtonId );
}
}
}
diff --git a/extensions/source/propctrlr/browserline.hxx b/extensions/source/propctrlr/browserline.hxx
index 5ac0d4c9758d..565f2516fbe2 100644
--- a/extensions/source/propctrlr/browserline.hxx
+++ b/extensions/source/propctrlr/browserline.hxx
@@ -92,8 +92,7 @@ namespace pcr
const ::rtl::OUString&
GetEntryName() const { return m_sEntryName; }
- // FIXME: HELPID
- void SetComponentHelpIds( const rtl::OString& _rHelpId, sal_uInt32 _bPrimaryButtonId, sal_uInt32 _nSecondaryButtonId );
+ void SetComponentHelpIds( const rtl::OString& _rHelpId, const rtl::OString& _sPrimaryButtonId, const rtl::OString& _sSecondaryButtonId );
void SetTitle(const String& rString );
void FullFillTitleString();
diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx
index 67257f960f5b..55afa4ac0043 100644
--- a/extensions/source/propctrlr/browserlistbox.cxx
+++ b/extensions/source/propctrlr/browserlistbox.cxx
@@ -1215,8 +1215,8 @@ namespace pcr
m_aOutOfDateLines.insert( nPos );
rLine.pLine->SetComponentHelpIds(
HelpIdUrl::getHelpId( _rPropertyData.HelpURL ),
- _rPropertyData.PrimaryButtonId,
- _rPropertyData.SecondaryButtonId
+ rtl::OUStringToOString( _rPropertyData.PrimaryButtonId, RTL_TEXTENCODING_UTF8 ),
+ rtl::OUStringToOString( _rPropertyData.SecondaryButtonId, RTL_TEXTENCODING_UTF8 )
);
if ( _rPropertyData.bReadOnly )
diff --git a/extensions/source/propctrlr/browserview.cxx b/extensions/source/propctrlr/browserview.cxx
index aceb3982054e..a023c5ef6b01 100644
--- a/extensions/source/propctrlr/browserview.cxx
+++ b/extensions/source/propctrlr/browserview.cxx
@@ -56,8 +56,7 @@ namespace pcr
DBG_CTOR(OPropertyBrowserView,NULL);
m_pPropBox = new OPropertyEditor( this );
- // FIXME: HELPID
- m_pPropBox->SetHelpId(""/*HID_FM_PROPDLG_TABCTR*/);
+ m_pPropBox->SetHelpId(HID_FM_PROPDLG_TABCTR);
m_pPropBox->setPageActivationHandler(LINK(this, OPropertyBrowserView, OnPageActivation));
m_pPropBox->Show();
diff --git a/extensions/source/propctrlr/defaultforminspection.cxx b/extensions/source/propctrlr/defaultforminspection.cxx
index f477c4deaa1e..ace7be265fb1 100644
--- a/extensions/source/propctrlr/defaultforminspection.cxx
+++ b/extensions/source/propctrlr/defaultforminspection.cxx
@@ -187,7 +187,7 @@ namespace pcr
{
const sal_Char* programmaticName;
USHORT uiNameResId;
- sal_uInt32 helpId;
+ const sal_Char* helpId;
} aCategories[] = {
{ "General", RID_STR_PROPPAGE_DEFAULT, HID_FM_PROPDLG_TAB_GENERAL },
{ "Data", RID_STR_PROPPAGE_DATA, HID_FM_PROPDLG_TAB_DATA },
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index cfa93bb35d7d..e2d57aaee57e 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -454,12 +454,12 @@ namespace pcr
}
break;
- case PROPERTY_ID_BIND_EXPRESSION: aDescriptor.PrimaryButtonId = UID_PROP_DLG_BIND_EXPRESSION; break;
- case PROPERTY_ID_XSD_REQUIRED: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_REQUIRED; break;
- case PROPERTY_ID_XSD_RELEVANT: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_RELEVANT; break;
- case PROPERTY_ID_XSD_READONLY: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_READONLY; break;
- case PROPERTY_ID_XSD_CONSTRAINT: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_CONSTRAINT; break;
- case PROPERTY_ID_XSD_CALCULATION: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_CALCULATION; break;
+ case PROPERTY_ID_BIND_EXPRESSION: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_BIND_EXPRESSION); break;
+ case PROPERTY_ID_XSD_REQUIRED: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_XSD_REQUIRED); break;
+ case PROPERTY_ID_XSD_RELEVANT: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_XSD_RELEVANT); break;
+ case PROPERTY_ID_XSD_READONLY: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_XSD_READONLY); break;
+ case PROPERTY_ID_XSD_CONSTRAINT: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_XSD_CONSTRAINT); break;
+ case PROPERTY_ID_XSD_CALCULATION: aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_XSD_CALCULATION); break;
default:
DBG_ERROR( "EFormsPropertyHandler::describePropertyLine: cannot handle this property!" );
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index 5c3fdba085c3..8afe4c889c92 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -151,11 +151,11 @@ namespace pcr
//= EventDescription
//====================================================================
EventDescription::EventDescription( EventId _nId, const sal_Char* _pListenerNamespaceAscii, const sal_Char* _pListenerClassAsciiName,
- const sal_Char* _pListenerMethodAsciiName, sal_uInt16 _nDisplayNameResId, sal_Int32 _nHelpId, sal_Int32 _nUniqueBrowseId )
+ const sal_Char* _pListenerMethodAsciiName, sal_uInt16 _nDisplayNameResId, const rtl::OString& _sHelpId, const rtl::OString& _sUniqueBrowseId )
:sDisplayName( String( PcrRes( _nDisplayNameResId ) ) )
,sListenerMethodName( ::rtl::OUString::createFromAscii( _pListenerMethodAsciiName ) )
- ,nHelpId( _nHelpId )
- ,nUniqueBrowseId( _nUniqueBrowseId )
+ ,sHelpId( _sHelpId )
+ ,sUniqueBrowseId( _sUniqueBrowseId )
,nId( _nId )
{
::rtl::OUStringBuffer aQualifiedListenerClass;
@@ -879,8 +879,8 @@ namespace pcr
const EventDescription& rEvent = impl_getEventForName_throw( _rPropertyName );
aDescriptor.DisplayName = rEvent.sDisplayName;
- aDescriptor.HelpURL = HelpIdUrl::getHelpURL( rEvent.nHelpId );
- aDescriptor.PrimaryButtonId = rEvent.nUniqueBrowseId;
+ aDescriptor.HelpURL = HelpIdUrl::getHelpURL( rEvent.sHelpId );
+ aDescriptor.PrimaryButtonId = rtl::OStringToOUString(rEvent.sUniqueBrowseId, RTL_TEXTENCODING_UTF8);
aDescriptor.HasPrimaryButton = sal_True;
aDescriptor.Category = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Events" ) );
return aDescriptor;
@@ -1265,12 +1265,12 @@ namespace pcr
switch ( m_nGridColumnType )
{
case FormComponentType::COMBOBOX:
- if ( UID_BRWEVT_ACTIONPERFORMED == _rEvent.nUniqueBrowseId )
+ if ( UID_BRWEVT_ACTIONPERFORMED == _rEvent.sUniqueBrowseId )
return false;
break;
case FormComponentType::LISTBOX:
- if ( ( UID_BRWEVT_CHANGED == _rEvent.nUniqueBrowseId )
- || ( UID_BRWEVT_ACTIONPERFORMED == _rEvent.nUniqueBrowseId )
+ if ( ( UID_BRWEVT_CHANGED == _rEvent.sUniqueBrowseId )
+ || ( UID_BRWEVT_ACTIONPERFORMED == _rEvent.sUniqueBrowseId )
)
return false;
break;
diff --git a/extensions/source/propctrlr/eventhandler.hxx b/extensions/source/propctrlr/eventhandler.hxx
index b8b50e4b4a5f..a2d9003a75f4 100644
--- a/extensions/source/propctrlr/eventhandler.hxx
+++ b/extensions/source/propctrlr/eventhandler.hxx
@@ -57,14 +57,12 @@ namespace pcr
::rtl::OUString sDisplayName;
::rtl::OUString sListenerClassName;
::rtl::OUString sListenerMethodName;
- sal_Int32 nHelpId;
- sal_Int32 nUniqueBrowseId;
+ ::rtl::OString sHelpId;
+ ::rtl::OString sUniqueBrowseId;
EventId nId;
EventDescription()
- :nHelpId( 0 )
- ,nUniqueBrowseId( 0 )
- ,nId( 0 )
+ :nId( 0 )
{
}
@@ -74,8 +72,8 @@ namespace pcr
const sal_Char* _pListenerClassAsciiName,
const sal_Char* _pListenerMethodAsciiName,
sal_uInt16 _nDisplayNameResId,
- sal_Int32 _nHelpId,
- sal_Int32 _nUniqueBrowseId );
+ const rtl::OString& _sHelpId,
+ const rtl::OString& _sUniqueBrowseId );
};
typedef ::std::hash_map< ::rtl::OUString, EventDescription, ::rtl::OUStringHash > EventMap;
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index fbf2cc38b63e..99eabba56275 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -1023,39 +1023,39 @@ namespace pcr
{
case PROPERTY_ID_DEFAULT_SELECT_SEQ:
case PROPERTY_ID_SELECTEDITEMS:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_SELECTION;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_SELECTION);
break;
case PROPERTY_ID_FILTER:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_FILTER;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_FILTER);
break;
case PROPERTY_ID_SORT:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_ORDER;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_ORDER);
break;
case PROPERTY_ID_MASTERFIELDS:
case PROPERTY_ID_DETAILFIELDS:
nControlType = PropertyControlType::StringListField;
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_FORMLINKFIELDS;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_FORMLINKFIELDS);
break;
case PROPERTY_ID_COMMAND:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_SQLCOMMAND;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_SQLCOMMAND);
break;
case PROPERTY_ID_TABINDEX:
{
Reference< XControlContainer > xControlContext( impl_getContextControlContainer_nothrow() );
if ( xControlContext.is() )
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_TABINDEX;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_TABINDEX);
nControlType = PropertyControlType::NumericField;
};
break;
case PROPERTY_ID_FONT:
bReadOnly = sal_True;
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_FONT_TYPE;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_FONT_TYPE);
break;
case PROPERTY_ID_TARGET_URL:
@@ -1063,8 +1063,8 @@ namespace pcr
{
aDescriptor.Control = new OFileUrlControl( impl_getDefaultDialogParent_nothrow(), WB_TABSTOP | WB_BORDER );
- aDescriptor.PrimaryButtonId = ( PROPERTY_ID_TARGET_URL == nPropId )
- ? UID_PROP_DLG_ATTR_TARGET_URL : UID_PROP_DLG_IMAGE_URL;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(( PROPERTY_ID_TARGET_URL == nPropId )
+ ? UID_PROP_DLG_ATTR_TARGET_URL : UID_PROP_DLG_IMAGE_URL);
}
break;
@@ -1081,13 +1081,13 @@ namespace pcr
switch( nPropId )
{
case PROPERTY_ID_BACKGROUNDCOLOR:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_BACKGROUNDCOLOR; break;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_BACKGROUNDCOLOR); break;
case PROPERTY_ID_FILLCOLOR:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_FILLCOLOR; break;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_FILLCOLOR); break;
case PROPERTY_ID_SYMBOLCOLOR:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_SYMBOLCOLOR; break;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_SYMBOLCOLOR); break;
case PROPERTY_ID_BORDERCOLOR:
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_BORDERCOLOR; break;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_BORDERCOLOR); break;
}
break;
@@ -1111,7 +1111,7 @@ namespace pcr
case PROPERTY_ID_CONTROLLABEL:
bReadOnly = sal_True;
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_CONTROLLABEL;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_CONTROLLABEL);
break;
case PROPERTY_ID_FORMATKEY:
@@ -1141,7 +1141,7 @@ namespace pcr
aDescriptor.Control = pControl;
pControl->SetFormatSupplier( pSupplier );
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_NUMBER_FORMAT;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_NUMBER_FORMAT);
}
else
{
@@ -1366,7 +1366,7 @@ namespace pcr
// DataSource
case PROPERTY_ID_DATASOURCE:
{
- aDescriptor.PrimaryButtonId = UID_PROP_DLG_ATTR_DATASOURCE;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_ATTR_DATASOURCE);
::std::vector< ::rtl::OUString > aListEntries;
@@ -1416,7 +1416,7 @@ namespace pcr
}
}
- if ( aDescriptor.PrimaryButtonId )
+ if ( aDescriptor.PrimaryButtonId.getLength() )
aDescriptor.HasPrimaryButton = sal_True;
if ( aDescriptor.SecondaryButtonId )
aDescriptor.HasSecondaryButton = sal_True;
@@ -2471,7 +2471,7 @@ namespace pcr
_out_rProperty.DisplayName = m_pInfoService->getPropertyTranslation( PROPERTY_ID_COMMAND );
_out_rProperty.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( PROPERTY_ID_COMMAND ) );
- _out_rProperty.PrimaryButtonId = UID_PROP_DLG_SQLCOMMAND;
+ _out_rProperty.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_DLG_SQLCOMMAND);
////////////////////////////////////////////////////////////
sal_Int32 nCommandType = CommandType::COMMAND;
diff --git a/extensions/source/propctrlr/formmetadata.cxx b/extensions/source/propctrlr/formmetadata.cxx
index 9d8becfbd923..d9fe180c1ac7 100644
--- a/extensions/source/propctrlr/formmetadata.cxx
+++ b/extensions/source/propctrlr/formmetadata.cxx
@@ -57,7 +57,7 @@ namespace pcr
{
String sName;
String sTranslation;
- sal_uInt32 nHelpId;
+ rtl::OString sHelpId;
sal_Int32 nId;
sal_uInt16 nPos;
sal_uInt32 nUIFlags;
@@ -67,16 +67,16 @@ namespace pcr
sal_Int32 _nId,
const String& aTranslation,
sal_uInt16 nPosId,
- sal_uInt32 nHelpId,
+ const rtl::OString&,
sal_uInt32 _nUIFlags);
};
//------------------------------------------------------------------------
OPropertyInfoImpl::OPropertyInfoImpl(const ::rtl::OUString& _rName, sal_Int32 _nId,
- const String& aString, sal_uInt16 nP, sal_uInt32 nHid, sal_uInt32 _nUIFlags)
+ const String& aString, sal_uInt16 nP, const rtl::OString& sHid, sal_uInt32 _nUIFlags)
:sName(_rName)
,sTranslation(aString)
- ,nHelpId(nHid)
+ ,sHelpId(sHid)
,nId(_nId)
,nPos(nP)
,nUIFlags(_nUIFlags)
@@ -399,10 +399,10 @@ namespace pcr
}
//------------------------------------------------------------------------
- sal_Int32 OPropertyInfoService::getPropertyHelpId(sal_Int32 _nId) const
+ rtl::OString OPropertyInfoService::getPropertyHelpId(sal_Int32 _nId) const
{
const OPropertyInfoImpl* pInfo = getPropertyInfo(_nId);
- return (pInfo) ? pInfo->nHelpId : 0;
+ return (pInfo) ? pInfo->sHelpId : rtl::OString();
}
//------------------------------------------------------------------------
@@ -560,7 +560,7 @@ namespace pcr
// intialisierung
if(!s_pPropertyInfos)
getPropertyInfo();
- OPropertyInfoImpl aSearch(_rName, 0L, String(), 0, 0, 0);
+ OPropertyInfoImpl aSearch(_rName, 0L, String(), 0, "", 0);
const OPropertyInfoImpl* pInfo = ::std::lower_bound(
s_pPropertyInfos, s_pPropertyInfos + s_nCount, aSearch, PropertyInfoLessByName() );
diff --git a/extensions/source/propctrlr/formmetadata.hxx b/extensions/source/propctrlr/formmetadata.hxx
index 294a43e4a9e7..82a313a70105 100644
--- a/extensions/source/propctrlr/formmetadata.hxx
+++ b/extensions/source/propctrlr/formmetadata.hxx
@@ -59,7 +59,7 @@ namespace pcr
// IPropertyInfoService
virtual sal_Int32 getPropertyId(const String& _rName) const;
virtual String getPropertyTranslation(sal_Int32 _nId) const;
- virtual sal_Int32 getPropertyHelpId(sal_Int32 _nId) const;
+ virtual rtl::OString getPropertyHelpId(sal_Int32 _nId) const;
virtual sal_Int16 getPropertyPos(sal_Int32 _nId) const;
virtual sal_uInt32 getPropertyUIFlags(sal_Int32 _nId) const;
virtual ::std::vector< ::rtl::OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const;
diff --git a/extensions/source/propctrlr/pcrcommon.cxx b/extensions/source/propctrlr/pcrcommon.cxx
index 317a42d56425..3067c67fc76d 100644
--- a/extensions/source/propctrlr/pcrcommon.cxx
+++ b/extensions/source/propctrlr/pcrcommon.cxx
@@ -53,23 +53,19 @@ namespace pcr
//------------------------------------------------------------------------
rtl::OString HelpIdUrl::getHelpId( const ::rtl::OUString& _rHelpURL )
{
- // FIXME: HELPID
- #if 0
- SmartId aSmartHelpId( _rHelpURL );
+ rtl::OString aHelpId( _rHelpURL, _rHelpURL.getLength(), RTL_TEXTENCODING_UTF8 );
if ( 0 == _rHelpURL.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "HID:" ) ) )
- aSmartHelpId = SmartId( _rHelpURL.copy( sizeof( "HID:" ) - 1 ).toInt32() );
- return aSmartHelpId;
- #else
- return rtl::OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
- #endif
+ aHelpId = aHelpId.copy( sizeof( "HID:" ) - 1 );
+ return aHelpId;
}
//------------------------------------------------------------------------
- ::rtl::OUString HelpIdUrl::getHelpURL( sal_uInt32 _nHelpId )
+ ::rtl::OUString HelpIdUrl::getHelpURL( const rtl::OString& sHelpId )
{
::rtl::OUStringBuffer aBuffer;
+ ::rtl::OUString aTmp( sHelpId, sHelpId.getLength(), RTL_TEXTENCODING_UTF8 );
aBuffer.appendAscii( "HID:" );
- aBuffer.append( (sal_Int32)_nHelpId );
+ aBuffer.append( aTmp.getStr() );
return aBuffer.makeStringAndClear();
}
//............................................................................
diff --git a/extensions/source/propctrlr/pcrcommon.hxx b/extensions/source/propctrlr/pcrcommon.hxx
index 162b9780ca30..69e508ca8d87 100644
--- a/extensions/source/propctrlr/pcrcommon.hxx
+++ b/extensions/source/propctrlr/pcrcommon.hxx
@@ -77,9 +77,8 @@ namespace pcr
class HelpIdUrl
{
public:
- // FIXME: HELPID
static rtl::OString getHelpId( const ::rtl::OUString& _rHelpURL );
- static ::rtl::OUString getHelpURL( sal_uInt32 _nHelpId );
+ static ::rtl::OUString getHelpURL( const rtl::OString& );
};
//====================================================================
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 2bb73f06490d..814b7475fbae 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -1273,7 +1273,6 @@ namespace pcr
// this category does not yet exist. This is allowed, as an inspector model might be lazy, and not provide
// any category information of its own. In this case, we have a fallback ...
m_aPageIds[ aDescriptor.Category ] =
- // FIXME: HELPID
getPropertyBox().AppendPage( aDescriptor.Category, rtl::OString() );
nTargetPageId = impl_getPageIdForCategory_nothrow( aDescriptor.Category );
}
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index 5abcf155cc2e..2d81566d8fbb 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -236,7 +236,6 @@ namespace pcr
pPage->getListBox().SetObserver(m_pObserver);
pPage->getListBox().EnableHelpSection( m_bHasHelpSection );
pPage->getListBox().SetHelpLineLimites( m_nMinHelpLines, m_nMaxHelpLines );
- // FIXME: HELPID
pPage->SetHelpId( _rHelpId );
// immediately activate the page
@@ -246,20 +245,12 @@ namespace pcr
return nId;
}
-// FIXME: HELPID
-#if 0
//------------------------------------------------------------------
- void OPropertyEditor::SetHelpId( sal_uInt32 nHelpId )
+ void OPropertyEditor::SetHelpId( const rtl::OString& rHelpId )
{
Control::SetHelpId("");
- // FIXME: HELPID
- #if 0
- m_aTabControl.SetHelpId(nHelpId);
- #else
- (void)nHelpId;
- #endif
- }
-#endif
+ m_aTabControl.SetHelpId(rHelpId);
+ }
//------------------------------------------------------------------
void OPropertyEditor::RemovePage(sal_uInt16 nID)
diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx
index 10b4b73fe54c..6affea7376d3 100644
--- a/extensions/source/propctrlr/propertyeditor.hxx
+++ b/extensions/source/propctrlr/propertyeditor.hxx
@@ -97,7 +97,7 @@ namespace pcr
void SetHelpText( const ::rtl::OUString& _rHelpText );
void SetHelpLineLimites( sal_Int32 _nMinLines, sal_Int32 _nMaxLines );
- // FIXME: HELPID
+ void SetHelpId( const rtl::OString& sHelpId );
sal_uInt16 AppendPage( const String& r, const rtl::OString& _rHelpId );
void SetPage( sal_uInt16 );
void RemovePage(sal_uInt16 nID);
diff --git a/extensions/source/propctrlr/propertyinfo.hxx b/extensions/source/propctrlr/propertyinfo.hxx
index e389c3282460..3e188c25fe06 100644
--- a/extensions/source/propctrlr/propertyinfo.hxx
+++ b/extensions/source/propctrlr/propertyinfo.hxx
@@ -31,6 +31,7 @@
#include <sal/types.h>
#include <tools/string.hxx>
#include <rtl/ustring.hxx>
+#include <rtl/string.hxx>
#include <vector>
//............................................................................
@@ -46,7 +47,7 @@ namespace pcr
public:
virtual sal_Int32 getPropertyId(const String& _rName) const = 0;
virtual String getPropertyTranslation(sal_Int32 _nId) const = 0;
- virtual sal_Int32 getPropertyHelpId(sal_Int32 _nId) const = 0;
+ virtual rtl::OString getPropertyHelpId(sal_Int32 _nId) const = 0;
virtual sal_Int16 getPropertyPos(sal_Int32 _nId) const = 0;
virtual sal_uInt32 getPropertyUIFlags(sal_Int32 _nId) const = 0;
virtual ::std::vector< ::rtl::OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const = 0;
diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
index 7af9166510da..a7a6844973ea 100644
--- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
+++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
@@ -331,8 +331,8 @@ namespace pcr
implGetAvailableDataTypeNames( aListEntries );
- aDescriptor.PrimaryButtonId = UID_PROP_ADD_DATA_TYPE;
- aDescriptor.SecondaryButtonId = UID_PROP_REMOVE_DATA_TYPE;
+ aDescriptor.PrimaryButtonId = rtl::OUString::createFromAscii(UID_PROP_ADD_DATA_TYPE);
+ aDescriptor.SecondaryButtonId = rtl::OUString::createFromAscii(UID_PROP_REMOVE_DATA_TYPE);;
aDescriptor.HasPrimaryButton = aDescriptor.HasSecondaryButton = sal_True;
aDescriptor.PrimaryButtonImageURL = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:graphicrepository/extensions/res/buttonplus.png" ) );
aDescriptor.SecondaryButtonImageURL = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:graphicrepository/extensions/res/buttonminus.png" ) );
diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx
index cd1c5f1f721a..78ebae14b31b 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -156,7 +156,7 @@ void UpdateHandler::setDownloadBtnLabel( bool bAppendDots )
aLabel += UNISTRING( "..." );
setControlProperty( msButtonIDs[DOWNLOAD_BUTTON], UNISTRING("Label"), uno::Any( aLabel ) );
- setControlProperty( msButtonIDs[DOWNLOAD_BUTTON], UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_DOWNLOAD2 ) ) );
+ setControlProperty( msButtonIDs[DOWNLOAD_BUTTON], UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_DOWNLOAD2 ) ) );
mbDownloadBtnHasDots = bAppendDots;
}
@@ -1071,7 +1071,7 @@ void UpdateHandler::createDialog()
xPropSet->setPropertyValue( UNISTRING("PositionY"), uno::Any(sal_Int32( 100 )) );
xPropSet->setPropertyValue( UNISTRING("Width"), uno::Any(sal_Int32( DIALOG_WIDTH )) );
xPropSet->setPropertyValue( UNISTRING("Height"), uno::Any(sal_Int32( DIALOG_HEIGHT )) );
- xPropSet->setPropertyValue( UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_DLG ) ) );
+ xPropSet->setPropertyValue( UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_DLG ) ) );
}
{ // Label (fixed text) <status>
uno::Sequence< beans::NamedValue > aProps(1);
@@ -1098,7 +1098,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 3, UNISTRING("MultiLine"), uno::Any( true ) );
setProperty( aProps, 4, UNISTRING("ReadOnly"), uno::Any( true ) );
setProperty( aProps, 5, UNISTRING("AutoVScroll"), uno::Any( true ) );
- setProperty( aProps, 6, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_STATUS ) ) );
+ setProperty( aProps, 6, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_STATUS ) ) );
insertControlModel( xControlModel, EDIT_FIELD_MODEL, TEXT_STATUS,
awt::Rectangle( DIALOG_BORDER + TEXT_OFFSET,
@@ -1129,7 +1129,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msPauseBtn ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_PAUSE ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_PAUSE ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[PAUSE_BUTTON],
awt::Rectangle( BOX1_BTN_X, BOX1_BTN_Y, BUTTON_WIDTH, BUTTON_HEIGHT ),
@@ -1142,7 +1142,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msResumeBtn ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_RESUME ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_RESUME ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[RESUME_BUTTON],
awt::Rectangle( BOX1_BTN_X,
@@ -1158,7 +1158,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msCancelBtn ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_CANCEL ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_CANCEL ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[CANCEL_BUTTON],
awt::Rectangle( BOX1_BTN_X,
@@ -1192,7 +1192,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 3, UNISTRING("MultiLine"), uno::Any( true ) );
setProperty( aProps, 4, UNISTRING("ReadOnly"), uno::Any( true ) );
setProperty( aProps, 5, UNISTRING("AutoVScroll"), uno::Any( true ) );
- setProperty( aProps, 6, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_DESCRIPTION ) ) );
+ setProperty( aProps, 6, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_DESCRIPTION ) ) );
insertControlModel( xControlModel, EDIT_FIELD_MODEL, TEXT_DESCRIPTION,
awt::Rectangle( DIALOG_BORDER + TEXT_OFFSET,
@@ -1222,7 +1222,7 @@ void UpdateHandler::createDialog()
// setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_CANCEL) ) );
// [property] string Label // only if PushButtonType_STANDARD
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msClose ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_CLOSE ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_CLOSE ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[ CLOSE_BUTTON ],
awt::Rectangle( CLOSE_BTN_X, BUTTON_Y_POS, BUTTON_WIDTH, BUTTON_HEIGHT ),
@@ -1235,7 +1235,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msInstall ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_INSTALL ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_INSTALL ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[INSTALL_BUTTON],
awt::Rectangle( INSTALL_BTN_X, BUTTON_Y_POS, BUTTON_WIDTH, BUTTON_HEIGHT ),
@@ -1248,7 +1248,7 @@ void UpdateHandler::createDialog()
setProperty( aProps, 1, UNISTRING("Enabled"), uno::Any( true ) );
setProperty( aProps, 2, UNISTRING("PushButtonType"), uno::Any( sal_Int16(awt::PushButtonType_STANDARD) ) );
setProperty( aProps, 3, UNISTRING("Label"), uno::Any( msDownload ) );
- setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::valueOf( (sal_Int32) HID_CHECK_FOR_UPD_DOWNLOAD ) ) );
+ setProperty( aProps, 4, UNISTRING("HelpURL"), uno::Any( UNISTRING( "HID:" ) + rtl::OUString::createFromAscii( HID_CHECK_FOR_UPD_DOWNLOAD ) ) );
insertControlModel ( xControlModel, BUTTON_MODEL, msButtonIDs[DOWNLOAD_BUTTON],
awt::Rectangle( DOWNLOAD_BTN_X, BUTTON_Y_POS, BUTTON_WIDTH, BUTTON_HEIGHT ),