summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-06-27 06:52:52 +0000
committerMichael Brauer <mib@openoffice.org>2001-06-27 06:52:52 +0000
commitea4f9161e457456f51a89b1a7a767cc361eb9a46 (patch)
tree4d79a2111ab4b2ba07f77264057a6c7699a35cc7 /xmloff
parent41357cd5f7efc4a555a99a78550a625572cef1c7 (diff)
#88691#: load/store relative URLs
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtflde.cxx8
-rw-r--r--xmloff/source/text/txtfldi.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 26e405712faa..9eabde20d397 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtflde.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: dvo $ $Date: 2001-06-15 10:37:08 $
+ * last change: $Author: mib $ $Date: 2001-06-27 07:52:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1624,7 +1624,7 @@ void XMLTextFieldExport::ExportFieldHelper(
{
// this field is a special case because it gets mapped onto a
// hyperlink, rather than one of the regular text field.
- ProcessString(sXML_href, GetStringProperty(sPropertyURL, rPropSet),
+ ProcessString(sXML_href, GetExport().GetRelativeReference(GetStringProperty(sPropertyURL, rPropSet)),
sal_True, XML_NAMESPACE_XLINK);
ProcessString(sXML_target_frame_name,
GetStringProperty(sPropertyTargetFrame,rPropSet),
@@ -1651,7 +1651,7 @@ void XMLTextFieldExport::ExportFieldHelper(
if (GetBoolProperty(sPropertyURLContent, rPropSet))
{
ProcessString(sXML_href,
- GetStringProperty(sPropertyContent, rPropSet),
+ GetExport().GetRelativeReference(GetStringProperty(sPropertyContent, rPropSet)),
sal_False, XML_NAMESPACE_XLINK);
ExportElement(sXML_script);
}
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index 82cc62f33a73..994b0436ceb3 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtfldi.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: dvo $ $Date: 2001-06-15 17:13:32 $
+ * last change: $Author: mib $ $Date: 2001-06-27 07:52:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3260,7 +3260,7 @@ void XMLUrlFieldImportContext::ProcessAttribute(
switch (nAttrToken)
{
case XML_TOK_TEXTFIELD_HREF:
- sURL = sAttrValue;
+ sURL = GetImport().GetAbsoluteReference( sAttrValue );
bValid = sal_True;
break;
case XML_TOK_TEXTFIELD_TARGET_FRAME:
@@ -3674,7 +3674,7 @@ void XMLScriptImportContext::ProcessAttribute(
switch (nAttrToken)
{
case XML_TOK_TEXTFIELD_HREF:
- sContent = sAttrValue;
+ sContent = GetImport().GetAbsoluteReference( sAttrValue );
bContentOK = sal_True;
break;