Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
71e13c13
Kaydet (Commit)
71e13c13
authored
Ara 17, 2001
tarafından
Christian Lippka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#96027# added support for linked pages
üst
0f055c04
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
13 deletions
+72
-13
drawing.mod
xmloff/dtd/drawing.mod
+5
-1
sdxmlexp.cxx
xmloff/source/draw/sdxmlexp.cxx
+28
-2
sdxmlimp.cxx
xmloff/source/draw/sdxmlimp.cxx
+4
-3
sdxmlimp_impl.hxx
xmloff/source/draw/sdxmlimp_impl.hxx
+4
-3
ximpbody.cxx
xmloff/source/draw/ximpbody.cxx
+28
-2
ximpbody.hxx
xmloff/source/draw/ximpbody.hxx
+3
-2
No files found.
xmloff/dtd/drawing.mod
Dosyayı görüntüle @
71e13c13
<!--
<!--
$Id: drawing.mod,v 1.7
0 2001-11-15 17:07:26
cl Exp $
$Id: drawing.mod,v 1.7
1 2001-12-17 15:54:45
cl Exp $
The Contents of this file are made available subject to the terms of
The Contents of this file are made available subject to the terms of
either of the following licenses
either of the following licenses
...
@@ -510,6 +510,10 @@
...
@@ -510,6 +510,10 @@
<!ATTLIST draw:page draw:master-page-name %styleName; #REQUIRED>
<!ATTLIST draw:page draw:master-page-name %styleName; #REQUIRED>
<!ATTLIST draw:page presentation:presentation-page-layout-name %styleName; #IMPLIED>
<!ATTLIST draw:page presentation:presentation-page-layout-name %styleName; #IMPLIED>
<!ATTLIST draw:page draw:id %nonNegativeInteger; #IMPLIED>
<!ATTLIST draw:page draw:id %nonNegativeInteger; #IMPLIED>
<!ATTLIST draw:page xlink:href %uriReference; #IMPLIED>
<!ATTLIST draw:page xlink:type (simple) #IMPLIED>
<!ATTLIST draw:page xlink:show (replace) #IMPLIED>
<!ATTLIST draw:page xlink:actuate (onRequest) #IMPLIED>
<!-- Presentation notes -->
<!-- Presentation notes -->
<!ELEMENT presentation:notes (%shapes;)*>
<!ELEMENT presentation:notes (%shapes;)*>
...
...
xmloff/source/draw/sdxmlexp.cxx
Dosyayı görüntüle @
71e13c13
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: sdxmlexp.cxx,v $
* $RCSfile: sdxmlexp.cxx,v $
*
*
* $Revision: 1.7
8
$
* $Revision: 1.7
9
$
*
*
* last change: $Author: cl $ $Date: 2001-1
1-27 14:14:16
$
* last change: $Author: cl $ $Date: 2001-1
2-17 15:51:30
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -1773,6 +1773,32 @@ void SdXMLExport::_ExportContent()
...
@@ -1773,6 +1773,32 @@ void SdXMLExport::_ExportContent()
AddAttribute
(
XML_NAMESPACE_PRESENTATION
,
XML_PRESENTATION_PAGE_LAYOUT_NAME
,
maDrawPagesAutoLayoutNames
[
nPageInd
+
1
]);
AddAttribute
(
XML_NAMESPACE_PRESENTATION
,
XML_PRESENTATION_PAGE_LAYOUT_NAME
,
maDrawPagesAutoLayoutNames
[
nPageInd
+
1
]);
}
}
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
xDrawPage
,
uno
::
UNO_QUERY
);
if
(
xProps
.
is
()
)
{
OUString
aBookmarkURL
;
xProps
->
getPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"BookmarkURL"
)
)
)
>>=
aBookmarkURL
;
if
(
aBookmarkURL
.
getLength
()
)
{
sal_Int32
nIndex
=
aBookmarkURL
.
lastIndexOf
(
(
sal_Unicode
)
'#'
);
if
(
nIndex
!=
-
1
)
{
OUString
aFileName
(
aBookmarkURL
.
copy
(
0
,
nIndex
)
);
OUString
aBookmarkName
(
aBookmarkURL
.
copy
(
nIndex
+
1
)
);
aBookmarkURL
=
GetRelativeReference
(
aFileName
);
aBookmarkURL
+=
OUString
(
(
sal_Unicode
)
'#'
);
aBookmarkURL
+=
aBookmarkName
;
}
AddAttribute
(
XML_NAMESPACE_XLINK
,
XML_HREF
,
aBookmarkURL
);
AddAttribute
(
XML_NAMESPACE_XLINK
,
XML_TYPE
,
XML_SIMPLE
);
AddAttribute
(
XML_NAMESPACE_XLINK
,
XML_SHOW
,
XML_REPLACE
);
AddAttribute
(
XML_NAMESPACE_XLINK
,
XML_ACTUATE
,
XML_ONREQUEST
);
}
}
// write page
// write page
SvXMLElementExport
aDPG
(
*
this
,
XML_NAMESPACE_DRAW
,
XML_PAGE
,
sal_True
,
sal_True
);
SvXMLElementExport
aDPG
(
*
this
,
XML_NAMESPACE_DRAW
,
XML_PAGE
,
sal_True
,
sal_True
);
...
...
xmloff/source/draw/sdxmlimp.cxx
Dosyayı görüntüle @
71e13c13
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: sdxmlimp.cxx,v $
* $RCSfile: sdxmlimp.cxx,v $
*
*
* $Revision: 1.3
3
$
* $Revision: 1.3
4
$
*
*
* last change: $Author: cl $ $Date: 2001-1
1-08 15:40:58
$
* last change: $Author: cl $ $Date: 2001-1
2-17 15:51:30
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -216,7 +216,8 @@ static __FAR_DATA SvXMLTokenMapEntry aDrawPageAttrTokenMap[] =
...
@@ -216,7 +216,8 @@ static __FAR_DATA SvXMLTokenMapEntry aDrawPageAttrTokenMap[] =
{
XML_NAMESPACE_DRAW
,
XML_STYLE_NAME
,
XML_TOK_DRAWPAGE_STYLE_NAME
},
{
XML_NAMESPACE_DRAW
,
XML_STYLE_NAME
,
XML_TOK_DRAWPAGE_STYLE_NAME
},
{
XML_NAMESPACE_DRAW
,
XML_MASTER_PAGE_NAME
,
XML_TOK_DRAWPAGE_MASTER_PAGE_NAME
},
{
XML_NAMESPACE_DRAW
,
XML_MASTER_PAGE_NAME
,
XML_TOK_DRAWPAGE_MASTER_PAGE_NAME
},
{
XML_NAMESPACE_PRESENTATION
,
XML_PRESENTATION_PAGE_LAYOUT_NAME
,
XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME
},
{
XML_NAMESPACE_PRESENTATION
,
XML_PRESENTATION_PAGE_LAYOUT_NAME
,
XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME
},
{
XML_NAMESPACE_DRAW
,
XML_ID
,
XML_TOK_DRAWPAGE_ID
},
{
XML_NAMESPACE_DRAW
,
XML_ID
,
XML_TOK_DRAWPAGE_ID
},
{
XML_NAMESPACE_XLINK
,
XML_HREF
,
XML_TOK_DRAWPAGE_HREF
},
XML_TOKEN_MAP_END
XML_TOKEN_MAP_END
};
};
...
...
xmloff/source/draw/sdxmlimp_impl.hxx
Dosyayı görüntüle @
71e13c13
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: sdxmlimp_impl.hxx,v $
* $RCSfile: sdxmlimp_impl.hxx,v $
*
*
* $Revision: 1.1
8
$
* $Revision: 1.1
9
$
*
*
* last change: $Author:
thb $ $Date: 2001-10-24 15:22:21
$
* last change: $Author:
cl $ $Date: 2001-12-17 15:51:30
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -175,7 +175,8 @@ enum SdXMLDrawPageAttrTokenMap
...
@@ -175,7 +175,8 @@ enum SdXMLDrawPageAttrTokenMap
XML_TOK_DRAWPAGE_STYLE_NAME
,
XML_TOK_DRAWPAGE_STYLE_NAME
,
XML_TOK_DRAWPAGE_MASTER_PAGE_NAME
,
XML_TOK_DRAWPAGE_MASTER_PAGE_NAME
,
XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME
,
XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME
,
XML_TOK_DRAWPAGE_ID
XML_TOK_DRAWPAGE_ID
,
XML_TOK_DRAWPAGE_HREF
};
};
enum
SdXMLDrawPageElemTokenMap
enum
SdXMLDrawPageElemTokenMap
...
...
xmloff/source/draw/ximpbody.cxx
Dosyayı görüntüle @
71e13c13
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ximpbody.cxx,v $
* $RCSfile: ximpbody.cxx,v $
*
*
* $Revision: 1.1
7
$
* $Revision: 1.1
8
$
*
*
* last change: $Author: cl $ $Date: 2001-
09-28 08:48:46
$
* last change: $Author: cl $ $Date: 2001-
12-17 15:51:30
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -171,6 +171,12 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport,
...
@@ -171,6 +171,12 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport,
sal_Int32
nId
;
sal_Int32
nId
;
if
(
SvXMLUnitConverter
::
convertNumber
(
nId
,
sValue
)
)
if
(
SvXMLUnitConverter
::
convertNumber
(
nId
,
sValue
)
)
nPageId
=
nId
;
nPageId
=
nId
;
break
;
}
case
XML_TOK_DRAWPAGE_HREF
:
{
maHREF
=
sValue
;
break
;
}
}
}
}
}
}
...
@@ -298,6 +304,26 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport,
...
@@ -298,6 +304,26 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport,
}
}
}
}
if
(
maHREF
.
getLength
()
)
{
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
xDrawPage
,
uno
::
UNO_QUERY
);
if
(
xProps
.
is
()
)
{
sal_Int32
nIndex
=
maHREF
.
lastIndexOf
(
(
sal_Unicode
)
'#'
);
if
(
nIndex
!=
-
1
)
{
OUString
aFileName
(
maHREF
.
copy
(
0
,
nIndex
)
);
OUString
aBookmarkName
(
maHREF
.
copy
(
nIndex
+
1
)
);
maHREF
=
GetImport
().
GetAbsoluteReference
(
aFileName
);
maHREF
+=
OUString
(
(
sal_Unicode
)
'#'
);
maHREF
+=
aBookmarkName
;
}
xProps
->
setPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"BookmarkURL"
)
),
uno
::
makeAny
(
maHREF
)
);
}
}
SetLayout
();
SetLayout
();
DeleteAllShapes
();
DeleteAllShapes
();
...
...
xmloff/source/draw/ximpbody.hxx
Dosyayı görüntüle @
71e13c13
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ximpbody.hxx,v $
* $RCSfile: ximpbody.hxx,v $
*
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
*
* last change: $Author: cl $ $Date: 2001-
05-28 13:32:2
0 $
* last change: $Author: cl $ $Date: 2001-
12-17 15:51:3
0 $
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -86,6 +86,7 @@ class SdXMLDrawPageContext : public SdXMLGenericPageContext
...
@@ -86,6 +86,7 @@ class SdXMLDrawPageContext : public SdXMLGenericPageContext
rtl
::
OUString
maName
;
rtl
::
OUString
maName
;
rtl
::
OUString
maStyleName
;
rtl
::
OUString
maStyleName
;
rtl
::
OUString
maMasterPageName
;
rtl
::
OUString
maMasterPageName
;
rtl
::
OUString
maHREF
;
public
:
public
:
SdXMLDrawPageContext
(
SdXMLImport
&
rImport
,
USHORT
nPrfx
,
SdXMLDrawPageContext
(
SdXMLImport
&
rImport
,
USHORT
nPrfx
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment