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
a270394a
Kaydet (Commit)
a270394a
authored
Mar 01, 2001
tarafından
Daniel Boelzle
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
applied dialog id
üst
a648581e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
17 deletions
+28
-17
dialog.dtd
xmlscript/dtd/dialog.dtd
+3
-2
xmldlg_export.cxx
xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+4
-2
xmldlg_impmodels.cxx
xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+19
-11
test.xml
xmlscript/test/test.xml
+2
-2
No files found.
xmlscript/dtd/dialog.dtd
Dosyayı görüntüle @
a270394a
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id: dialog.dtd,v 1.
4 2001-03-01 11:22:4
5 dbo Exp $
$Id: dialog.dtd,v 1.
5 2001-03-01 11:52:0
5 dbo Exp $
The Contents of this file are made available subject to the terms of
either of the following licenses
...
...
@@ -91,7 +91,8 @@
<!ATTLIST dialog:dialogs xmlns:dialog CDATA #FIXED "http://openoffice.org/2000/dialog">
<!ELEMENT dialog:window (dialog:styles*, dialog:bulletinboard*)>
<!ATTLIST dialog:window dialog:left %numeric; #IMPLIED
<!ATTLIST dialog:window dialog:id CDATA #REQUIRED
dialog:left %numeric; #IMPLIED
dialog:top %numeric; #IMPLIED
dialog:width %numeric; #IMPLIED
dialog:height %numeric; #IMPLIED
...
...
xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
Dosyayı görüntüle @
a270394a
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_export.cxx,v $
*
* $Revision: 1.
8
$
* $Revision: 1.
9
$
*
* last change: $Author: dbo $ $Date: 2001-03-01 11:
22:4
5 $
* last change: $Author: dbo $ $Date: 2001-03-01 11:
52:0
5 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -1122,6 +1122,8 @@ static void exportDialogModel(
OUString
aWindowName
(
RTL_CONSTASCII_USTRINGPARAM
(
XMLNS_DIALOGS_PREFIX
":window"
)
);
ElementDescriptor
*
pWindow
=
new
ElementDescriptor
(
xProps
,
xPropState
,
aWindowName
);
Reference
<
xml
::
sax
::
XAttributeList
>
xWindow
(
pWindow
);
pWindow
->
readStringAttr
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Name"
)
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
XMLNS_DIALOGS_PREFIX
":id"
)
)
);
pWindow
->
readStringAttr
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title"
)
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
XMLNS_DIALOGS_PREFIX
":title"
)
)
);
pWindow
->
readLongAttr
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"PositionX"
)
),
...
...
xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
Dosyayı görüntüle @
a270394a
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_impmodels.cxx,v $
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
* last change: $Author: dbo $ $Date: 2001-03-01 11:
22:4
5 $
* last change: $Author: dbo $ $Date: 2001-03-01 11:
52:0
5 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -1509,7 +1509,23 @@ void WindowElement::endElement()
OSL_ASSERT
(
xProps
.
is
()
);
OUString
aValue
(
_xAttributes
->
getValueByUidName
(
XMLNS_DIALOGS_UID
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"left"
)
)
)
);
XMLNS_DIALOGS_UID
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"id"
)
)
)
);
if
(
aValue
.
getLength
())
{
xProps
->
setPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Name"
)
),
makeAny
(
aValue
)
);
}
aValue
=
_xAttributes
->
getValueByUidName
(
XMLNS_DIALOGS_UID
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"title"
)
)
);
if
(
aValue
.
getLength
())
{
xProps
->
setPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title"
)
),
makeAny
(
aValue
)
);
}
aValue
=
_xAttributes
->
getValueByUidName
(
XMLNS_DIALOGS_UID
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"left"
)
)
);
if
(
aValue
.
getLength
())
{
xProps
->
setPropertyValue
(
...
...
@@ -1540,14 +1556,6 @@ void WindowElement::endElement()
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Height"
)
),
makeAny
(
aValue
.
toInt32
()
)
);
}
aValue
=
_xAttributes
->
getValueByUidName
(
XMLNS_DIALOGS_UID
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"title"
)
)
);
if
(
aValue
.
getLength
())
{
xProps
->
setPropertyValue
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title"
)
),
makeAny
(
aValue
)
);
}
}
//##################################################################################################
...
...
xmlscript/test/test.xml
Dosyayı görüntüle @
a270394a
...
...
@@ -4,7 +4,7 @@
<dialogs
xmlns=
"http://openoffice.org/2000/dialog"
>
<window
xmlns:dlg=
"http://openoffice.org/2000/dialog"
title=
"Test-Dialog"
left=
"50"
top=
"50"
height=
"660"
width=
"400"
>
id=
"window1"
title=
"Test-Dialog"
left=
"50"
top=
"50"
height=
"660"
width=
"400"
>
<dlg:styles>
<dlg:style
style-id=
"bla"
background-color=
"0xffffff"
dlg:text-color=
"255"
/>
...
...
@@ -71,7 +71,7 @@
</window>
<window
xmlns:dlg2=
"http://openoffice.org/2000/dialog"
title=
"Test-Dialog2"
left=
"100"
top=
"100"
height=
"200"
width=
"200"
>
id=
"window2"
title=
"Test-Dialog2"
left=
"100"
top=
"100"
height=
"200"
width=
"200"
>
<dlg2:bulletinboard>
...
...
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