Kaydet (Commit) 52c66195 authored tarafından Noel Grandin's avatar Noel Grandin

convert svx/source/inc/datanavi.hxx from String to OUString

Change-Id: I70c11a114882adba543e2939130408cbd8da22c0
üst 1474d476
...@@ -466,7 +466,7 @@ namespace svxform ...@@ -466,7 +466,7 @@ namespace svxform
bool bIsElement = true; bool bIsElement = true;
if ( DGTInstance == m_eGroup ) if ( DGTInstance == m_eGroup )
{ {
if ( m_sInstanceURL.Len() > 0 ) if ( !m_sInstanceURL.isEmpty() )
{ {
LinkedInstanceWarningBox aMsgBox( this ); LinkedInstanceWarningBox aMsgBox( this );
if ( aMsgBox.Execute() != RET_OK ) if ( aMsgBox.Execute() != RET_OK )
...@@ -631,7 +631,7 @@ namespace svxform ...@@ -631,7 +631,7 @@ namespace svxform
ItemNode* pNode = static_cast< ItemNode* >( pEntry->GetUserData() ); ItemNode* pNode = static_cast< ItemNode* >( pEntry->GetUserData() );
if ( DGTInstance == m_eGroup || DGTBinding == m_eGroup ) if ( DGTInstance == m_eGroup || DGTBinding == m_eGroup )
{ {
if ( DGTInstance == m_eGroup && m_sInstanceURL.Len() > 0 ) if ( DGTInstance == m_eGroup && !m_sInstanceURL.isEmpty() )
{ {
LinkedInstanceWarningBox aMsgBox( this ); LinkedInstanceWarningBox aMsgBox( this );
if ( aMsgBox.Execute() != RET_OK ) if ( aMsgBox.Execute() != RET_OK )
...@@ -719,7 +719,7 @@ namespace svxform ...@@ -719,7 +719,7 @@ namespace svxform
case TBI_ITEM_REMOVE: case TBI_ITEM_REMOVE:
{ {
bHandled = true; bHandled = true;
if ( DGTInstance == m_eGroup && m_sInstanceURL.Len() > 0 ) if ( DGTInstance == m_eGroup && !m_sInstanceURL.isEmpty() )
{ {
LinkedInstanceWarningBox aMsgBox( this ); LinkedInstanceWarningBox aMsgBox( this );
if ( aMsgBox.Execute() != RET_OK ) if ( aMsgBox.Execute() != RET_OK )
...@@ -1204,7 +1204,7 @@ namespace svxform ...@@ -1204,7 +1204,7 @@ namespace svxform
m_aItemList.SetPosSizePixel( Point( 2, 2 + aTbxSize.Height() ), aSize ); m_aItemList.SetPosSizePixel( Point( 2, 2 + aTbxSize.Height() ), aSize );
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
String XFormsPage::SetModel( const Reference< css::xforms::XModel >& _xModel, sal_uInt16 _nPagePos ) OUString XFormsPage::SetModel( const Reference< css::xforms::XModel >& _xModel, sal_uInt16 _nPagePos )
{ {
DBG_ASSERT( _xModel.is(), "XFormsPage::SetModel(): invalid model" ); DBG_ASSERT( _xModel.is(), "XFormsPage::SetModel(): invalid model" );
...@@ -1355,10 +1355,10 @@ namespace svxform ...@@ -1355,10 +1355,10 @@ namespace svxform
m_aItemList.DeleteAndClear(); m_aItemList.DeleteAndClear();
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
String XFormsPage::LoadInstance( OUString XFormsPage::LoadInstance(
const Sequence< PropertyValue >& _xPropSeq, const ImageList& _rImgLst ) const Sequence< PropertyValue >& _xPropSeq, const ImageList& _rImgLst )
{ {
String sRet; OUString sRet;
OUString sTemp; OUString sTemp;
OUString sInstModel = PN_INSTANCE_MODEL; OUString sInstModel = PN_INSTANCE_MODEL;
OUString sInstName = PN_INSTANCE_ID; OUString sInstName = PN_INSTANCE_ID;
......
...@@ -149,8 +149,8 @@ namespace svxform ...@@ -149,8 +149,8 @@ namespace svxform
// mb: furthermore these are properties of an instance, thus // mb: furthermore these are properties of an instance, thus
// it would be much better to get/set them through the UIHelper // it would be much better to get/set them through the UIHelper
// interface. // interface.
String m_sInstanceName; OUString m_sInstanceName;
String m_sInstanceURL; OUString m_sInstanceURL;
bool m_bLinkOnce; bool m_bLinkOnce;
DECL_LINK(TbxSelectHdl, void *); DECL_LINK(TbxSelectHdl, void *);
...@@ -175,27 +175,27 @@ namespace svxform ...@@ -175,27 +175,27 @@ namespace svxform
virtual void Resize(); virtual void Resize();
inline bool HasModel() const { return m_bHasModel; } inline bool HasModel() const { return m_bHasModel; }
String SetModel( const XModel_ref& _xModel, sal_uInt16 _nPagePos ); OUString SetModel( const XModel_ref& _xModel, sal_uInt16 _nPagePos );
void ClearModel(); void ClearModel();
String LoadInstance( const PropertyValue_seq& _xPropSeq, OUString LoadInstance( const PropertyValue_seq& _xPropSeq,
const ImageList& _rImgLst ); const ImageList& _rImgLst );
bool DoMenuAction( sal_uInt16 _nMenuID ); bool DoMenuAction( sal_uInt16 _nMenuID );
void EnableMenuItems( Menu* _pMenu ); void EnableMenuItems( Menu* _pMenu );
inline SvTreeListEntry* GetSelectedItem() const { return m_aItemList.FirstSelected(); } inline SvTreeListEntry* GetSelectedItem() const { return m_aItemList.FirstSelected(); }
inline const String& GetInstanceName() const { return m_sInstanceName; } inline const OUString& GetInstanceName() const { return m_sInstanceName; }
inline const String& GetInstanceURL() const { return m_sInstanceURL; } inline const OUString& GetInstanceURL() const { return m_sInstanceURL; }
inline bool GetLinkOnce() const { return m_bLinkOnce; } inline bool GetLinkOnce() const { return m_bLinkOnce; }
inline void SetInstanceName( const String &name ) { m_sInstanceName=name; } inline void SetInstanceName( const OUString &name ) { m_sInstanceName=name; }
inline void SetInstanceURL( const String &url ) { m_sInstanceURL=url; } inline void SetInstanceURL( const OUString &url ) { m_sInstanceURL=url; }
inline void SetLinkOnce( bool bLinkOnce ) { m_bLinkOnce=bLinkOnce; } inline void SetLinkOnce( bool bLinkOnce ) { m_bLinkOnce=bLinkOnce; }
typedef com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> XPropertySet_t; typedef com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> XPropertySet_t;
typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XNode> XNode_t; typedef com::sun::star::uno::Reference<com::sun::star::xml::dom::XNode> XNode_t;
inline XPropertySet_t GetBindingForNode( const XNode_t &xNode ) { return m_xUIHelper->getBindingForNode(xNode,true); } inline XPropertySet_t GetBindingForNode( const XNode_t &xNode ) { return m_xUIHelper->getBindingForNode(xNode,true); }
inline String GetServiceNameForNode( const XNode_t &xNode ) { return m_xUIHelper->getDefaultServiceNameForNode(xNode); } inline OUString GetServiceNameForNode( const XNode_t &xNode ) { return m_xUIHelper->getDefaultServiceNameForNode(xNode); }
inline XFormsUIHelper1_ref GetXFormsHelper( void ) const { return m_xUIHelper; } inline XFormsUIHelper1_ref GetXFormsHelper( void ) const { return m_xUIHelper; }
}; };
...@@ -341,10 +341,10 @@ namespace svxform ...@@ -341,10 +341,10 @@ namespace svxform
ItemNode* m_pItemNode; ItemNode* m_pItemNode;
DataItemType m_eItemType; DataItemType m_eItemType;
String m_sFL_Element; OUString m_sFL_Element;
String m_sFL_Attribute; OUString m_sFL_Attribute;
String m_sFL_Binding; OUString m_sFL_Binding;
String m_sFT_BindingExp; OUString m_sFT_BindingExp;
DECL_LINK( CheckHdl, CheckBox * ); DECL_LINK( CheckHdl, CheckBox * );
DECL_LINK( ConditionHdl, PushButton * ); DECL_LINK( ConditionHdl, PushButton * );
...@@ -393,11 +393,11 @@ namespace svxform ...@@ -393,11 +393,11 @@ namespace svxform
~AddConditionDialog(); ~AddConditionDialog();
inline XFormsUIHelper1_ref GetUIHelper() const { return m_xUIHelper; } inline XFormsUIHelper1_ref GetUIHelper() const { return m_xUIHelper; }
inline String GetCondition() const { return m_aConditionED.GetText(); } inline OUString GetCondition() const { return m_aConditionED.GetText(); }
inline void SetCondition( const String& _rCondition ); inline void SetCondition( const OUString& _rCondition );
}; };
inline void AddConditionDialog::SetCondition( const String& _rCondition ) inline void AddConditionDialog::SetCondition( const OUString& _rCondition )
{ {
m_aConditionED.SetText( _rCondition ); m_aConditionED.SetText( _rCondition );
m_aResultTimer.Start(); m_aResultTimer.Start();
...@@ -457,12 +457,12 @@ namespace svxform ...@@ -457,12 +457,12 @@ namespace svxform
ManageNamespaceDialog( Window* pParent, AddConditionDialog* _pCondDlg, bool _bIsEdit ); ManageNamespaceDialog( Window* pParent, AddConditionDialog* _pCondDlg, bool _bIsEdit );
~ManageNamespaceDialog(); ~ManageNamespaceDialog();
inline void SetNamespace( const String& _rPrefix, const String& _rURL ); inline void SetNamespace( const OUString& _rPrefix, const OUString& _rURL );
inline String GetPrefix() const { return m_aPrefixED.GetText(); } inline OUString GetPrefix() const { return m_aPrefixED.GetText(); }
inline String GetURL() const { return m_aUrlED.GetText(); } inline OUString GetURL() const { return m_aUrlED.GetText(); }
}; };
void ManageNamespaceDialog::SetNamespace( const String& _rPrefix, const String& _rURL ) void ManageNamespaceDialog::SetNamespace( const OUString& _rPrefix, const OUString& _rURL )
{ {
m_aPrefixED.SetText( _rPrefix ); m_aPrefixED.SetText( _rPrefix );
m_aUrlED.SetText( _rURL ); m_aUrlED.SetText( _rURL );
...@@ -530,8 +530,8 @@ namespace svxform ...@@ -530,8 +530,8 @@ namespace svxform
AddModelDialog( Window* pParent, bool _bEdit ); AddModelDialog( Window* pParent, bool _bEdit );
~AddModelDialog(); ~AddModelDialog();
inline String GetName() const { return m_aNameED.GetText(); } inline OUString GetName() const { return m_aNameED.GetText(); }
inline void SetName( const String& _rName ) { m_aNameED.SetText( _rName );} inline void SetName( const OUString& _rName ) { m_aNameED.SetText( _rName );}
inline bool GetModifyDoc() const { return bool( m_aModifyCB.IsChecked() ); } inline bool GetModifyDoc() const { return bool( m_aModifyCB.IsChecked() ); }
inline void SetModifyDoc( const bool _bModify ) { m_aModifyCB.Check( _bModify ); } inline void SetModifyDoc( const bool _bModify ) { m_aModifyCB.Check( _bModify ); }
...@@ -553,7 +553,7 @@ namespace svxform ...@@ -553,7 +553,7 @@ namespace svxform
CancelButton m_aEscBtn; CancelButton m_aEscBtn;
HelpButton m_aHelpBtn; HelpButton m_aHelpBtn;
String m_sAllFilterName; OUString m_sAllFilterName;
DECL_LINK(FilePickerHdl, void *); DECL_LINK(FilePickerHdl, void *);
...@@ -562,10 +562,10 @@ namespace svxform ...@@ -562,10 +562,10 @@ namespace svxform
~AddInstanceDialog(); ~AddInstanceDialog();
inline void SetRenameMode(); inline void SetRenameMode();
inline String GetName() const { return m_aNameED.GetText(); } inline OUString GetName() const { return m_aNameED.GetText(); }
inline void SetName( const String& _rName ) { m_aNameED.SetText( _rName );} inline void SetName( const OUString& _rName ) { m_aNameED.SetText( _rName );}
inline String GetURL() const { return m_aURLED.GetText(); } inline OUString GetURL() const { return m_aURLED.GetText(); }
inline void SetURL( const String& _rURL ) { m_aURLED.SetText( _rURL );} inline void SetURL( const OUString& _rURL ) { m_aURLED.SetText( _rURL );}
inline bool IsLinkInstance() const { return ( m_aLinkInstanceCB.IsChecked() != sal_False ); } inline bool IsLinkInstance() const { return ( m_aLinkInstanceCB.IsChecked() != sal_False ); }
inline void SetLinkInstance( bool _bLink ) { m_aLinkInstanceCB.Check( _bLink != false ); } inline void SetLinkInstance( bool _bLink ) { m_aLinkInstanceCB.Check( _bLink != false ); }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment