summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-02-23 14:05:32 +0000
committerOliver Specht <os@openoffice.org>2001-02-23 14:05:32 +0000
commite8138ed41a43c77c897bef9b0780d1b258f8d59d (patch)
treeb48b9ad9a865ef9352741f8d63671dbaecb3c9df /sw/source/ui
parent5a1f70d3963ca904594c64e043e8e473d8f3df2a (diff)
Issue #413#: use unquoted URLs
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dialog/regionsw.cxx19
-rw-r--r--sw/source/ui/utlui/glbltree.cxx6
2 files changed, 17 insertions, 8 deletions
diff --git a/sw/source/ui/dialog/regionsw.cxx b/sw/source/ui/dialog/regionsw.cxx
index a97f76c80616..d0cd0b77c624 100644
--- a/sw/source/ui/dialog/regionsw.cxx
+++ b/sw/source/ui/dialog/regionsw.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: regionsw.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mtg $ $Date: 2001-02-16 09:31:07 $
+ * last change: $Author: os $ $Date: 2001-02-23 15:05:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -325,7 +325,10 @@ String SectRepr::GetFile() const
}
else
#endif
- sLinkFile = sLinkFile.GetToken( 0, cTokenSeperator );
+ sLinkFile = INetURLObject::decode( sLinkFile.GetToken( 0, cTokenSeperator ),
+ INET_HEX_ESCAPE,
+ INetURLObject::DECODE_UNAMBIGUOUS,
+ RTL_TEXTENCODING_UTF8 );
}
return sLinkFile;
}
@@ -1020,7 +1023,6 @@ IMPL_LINK( SwEditRegionDlg, FileSearchHdl, PushButton *, EMPTYARG )
if( GetFileFilterNameDlg( *this, sFileName, &sFilePasswd,
&sFilterName, &pMed ))
{
- aFileNameED.SetText( sFileName );
::lcl_ReadSections( rSh, *pMed, aSubRegionED );
delete pMed;
}
@@ -1033,6 +1035,7 @@ IMPL_LINK( SwEditRegionDlg, FileSearchHdl, PushButton *, EMPTYARG )
pSectRepr->SetFile( sFileName );
pSectRepr->SetFilter( sFilterName );
pSectRepr->SetFilePasswd( sFilePasswd );
+ aFileNameED.SetText( pSectRepr->GetFile());
}
return 0;
}
@@ -1900,7 +1903,10 @@ IMPL_LINK( SwInsertSectionTabPage, FileSearchHdl, PushButton *, EMPTYARG )
if( GetFileFilterNameDlg( *this, sFileName, &sFilePasswd,
&sFilterName, &pMed ))
{
- aFileNameED.SetText( sFileName );
+ aFileNameED.SetText( INetURLObject::decode( sFileName, INET_HEX_ESCAPE,
+ INetURLObject::DECODE_UNAMBIGUOUS,
+ RTL_TEXTENCODING_UTF8 ));
+
::lcl_ReadSections( *pWrtSh, *pMed, aSubRegionED );
delete pMed; // das brauchen wir nicht mehr !
}
@@ -2302,6 +2308,9 @@ void SwSectionPropertyTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
/*-------------------------------------------------------------------------
$Log: not supported by cvs2svn $
+ Revision 1.3 2001/02/16 09:31:07 mtg
+ Added XML support for Section Lists
+
Revision 1.2 2000/10/20 13:40:42 jp
use correct INetURL-Decode enum
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index b89a9dc685e1..6e95cf770d01 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: glbltree.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: os $ $Date: 2000-09-21 15:04:59 $
+ * last change: $Author: os $ $Date: 2001-02-23 15:05:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -921,7 +921,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* pCont,
if(sFileName.Len())
{
INetURLObject aFileUrl(sFileName);
- String sSectionName(aFileUrl.GetLastName().GetToken(0, cTokenSeperator));
+ String sSectionName(aFileUrl.GetLastName(INetURLObject::DECODE_UNAMBIGUOUS).GetToken(0, cTokenSeperator));
USHORT nSectCount = rSh.GetSectionFmtCount();
String sTempSectionName(sSectionName);
USHORT nAddNumber = 0;