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

convert sw/source/ui/inc/n*.hxx from String to OUString

Change-Id: Ic5d034cdc013910f932d1126204c362a269018b0
üst a4154870
...@@ -32,18 +32,18 @@ class TransferableDataHelper; ...@@ -32,18 +32,18 @@ class TransferableDataHelper;
class NaviContentBookmark class NaviContentBookmark
{ {
String aUrl; // URL including jump mark OUString aUrl; // URL including jump mark
String aDescr; // description OUString aDescr; // description
long nDocSh; // address of DocShell long nDocSh; // address of DocShell
sal_uInt16 nDefDrag; // description contains defaultDragType sal_uInt16 nDefDrag; // description contains defaultDragType
public: public:
NaviContentBookmark(); NaviContentBookmark();
NaviContentBookmark( const String &rUrl, const String& rDesc, NaviContentBookmark( const OUString &rUrl, const OUString& rDesc,
sal_uInt16 nDragType, const SwDocShell* ); sal_uInt16 nDragType, const SwDocShell* );
const String& GetURL() const { return aUrl; } const OUString& GetURL() const { return aUrl; }
const String& GetDescription() const { return aDescr; } const OUString& GetDescription() const { return aDescr; }
sal_uInt16 GetDefaultDragType() const { return nDefDrag; } sal_uInt16 GetDefaultDragType() const { return nDefDrag; }
void Copy( TransferDataContainer& rData ) const; void Copy( TransferDataContainer& rData ) const;
sal_Bool Paste( TransferableDataHelper& rData ); sal_Bool Paste( TransferableDataHelper& rData );
......
...@@ -65,9 +65,9 @@ class SwNavigationPI : public Window, ...@@ -65,9 +65,9 @@ class SwNavigationPI : public Window,
SwGlobalTree aGlobalTree; SwGlobalTree aGlobalTree;
ListBox aDocListBox; ListBox aDocListBox;
Timer aPageChgTimer; Timer aPageChgTimer;
String sContentFileName; OUString sContentFileName;
String aContextArr[3]; OUString aContextArr[3];
String aStatusArr[4]; OUString aStatusArr[4];
Point aBoxBottomLeft; // Pos when Box is at bottom Point aBoxBottomLeft; // Pos when Box is at bottom
SfxObjectShellLock *pxObjectShell; SfxObjectShellLock *pxObjectShell;
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState ); const SfxPoolItem* pState );
static String CreateDropFileName( TransferableDataHelper& rData ); static OUString CreateDropFileName( TransferableDataHelper& rData );
static OUString CleanEntry(const OUString& rEntry); static OUString CleanEntry(const OUString& rEntry);
sal_uInt16 GetRegionDropMode() const {return nRegionMode;} sal_uInt16 GetRegionDropMode() const {return nRegionMode;}
......
...@@ -3028,8 +3028,8 @@ NaviContentBookmark::NaviContentBookmark() ...@@ -3028,8 +3028,8 @@ NaviContentBookmark::NaviContentBookmark()
{ {
} }
NaviContentBookmark::NaviContentBookmark( const String &rUrl, NaviContentBookmark::NaviContentBookmark( const OUString &rUrl,
const String& rDesc, const OUString& rDesc,
sal_uInt16 nDragType, sal_uInt16 nDragType,
const SwDocShell* pDocSh ) : const SwDocShell* pDocSh ) :
aUrl( rUrl ), aUrl( rUrl ),
......
...@@ -1142,7 +1142,7 @@ IMPL_LINK(SwNavigationPI, DoneLink, SfxPoolItem *, pItem) ...@@ -1142,7 +1142,7 @@ IMPL_LINK(SwNavigationPI, DoneLink, SfxPoolItem *, pItem)
return 0; return 0;
} }
String SwNavigationPI::CreateDropFileName( TransferableDataHelper& rData ) OUString SwNavigationPI::CreateDropFileName( TransferableDataHelper& rData )
{ {
OUString sFileName; OUString sFileName;
sal_uLong nFmt; sal_uLong nFmt;
...@@ -1201,7 +1201,7 @@ sal_Int8 SwNavigationPI::ExecuteDrop( const ExecuteDropEvent& rEvt ) ...@@ -1201,7 +1201,7 @@ sal_Int8 SwNavigationPI::ExecuteDrop( const ExecuteDropEvent& rEvt )
if( !aDesc.Detect() ) // accept no graphics if( !aDesc.Detect() ) // accept no graphics
{ {
if( STRING_NOTFOUND == sFileName.Search('#') if( STRING_NOTFOUND == sFileName.Search('#')
&& (!sContentFileName.Len() || sContentFileName != sFileName )) && (sContentFileName.isEmpty() || sContentFileName != sFileName ))
{ {
nRet = rEvt.mnAction; nRet = rEvt.mnAction;
sFileName = comphelper::string::stripEnd(sFileName, 0); sFileName = comphelper::string::stripEnd(sFileName, 0);
......
...@@ -444,10 +444,10 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, ...@@ -444,10 +444,10 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk,
else else
{ {
SwSectionData aSection( FILE_LINK_SECTION, GetUniqueSectionName() ); SwSectionData aSection( FILE_LINK_SECTION, GetUniqueSectionName() );
String aLinkFile( rBkmk.GetURL().GetToken(0, '#') ); String aLinkFile( rBkmk.GetURL().getToken(0, '#') );
aLinkFile += sfx2::cTokenSeparator; aLinkFile += sfx2::cTokenSeparator;
aLinkFile += sfx2::cTokenSeparator; aLinkFile += sfx2::cTokenSeparator;
aLinkFile += rBkmk.GetURL().GetToken(1, '#'); aLinkFile += rBkmk.GetURL().getToken(1, '#');
aSection.SetLinkFileName( aLinkFile ); aSection.SetLinkFileName( aLinkFile );
aSection.SetProtectFlag( true ); aSection.SetProtectFlag( true );
const SwSection* pIns = InsertSection( aSection ); const SwSection* pIns = InsertSection( aSection );
......
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