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
6f2bd847
Kaydet (Commit)
6f2bd847
authored
Kas 27, 2000
tarafından
Armin Weiss
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#80012# changed style:page-master to contain a style:properties section
üst
c8c062e2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
21 deletions
+69
-21
sdxmlexp.cxx
xmloff/source/draw/sdxmlexp.cxx
+8
-4
sdxmlimp.cxx
xmloff/source/draw/sdxmlimp.cxx
+26
-9
ximpstyl.cxx
xmloff/source/draw/ximpstyl.cxx
+0
-0
ximpstyl.hxx
xmloff/source/draw/ximpstyl.hxx
+35
-8
No files found.
xmloff/source/draw/sdxmlexp.cxx
Dosyayı görüntüle @
6f2bd847
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: sdxmlexp.cxx,v $
* $RCSfile: sdxmlexp.cxx,v $
*
*
* $Revision: 1.1
6
$
* $Revision: 1.1
7
$
*
*
* last change: $Author:
cl $ $Date: 2000-11-26 19:43:50
$
* last change: $Author:
aw $ $Date: 2000-11-27 12:52:59
$
*
*
* 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
...
@@ -1414,6 +1414,10 @@ void SdXMLExport::ImpWritePageMasterInfos()
...
@@ -1414,6 +1414,10 @@ void SdXMLExport::ImpWritePageMasterInfos()
sString
=
sNewName
;
sString
=
sNewName
;
AddAttribute
(
XML_NAMESPACE_STYLE
,
sXML_name
,
sString
);
AddAttribute
(
XML_NAMESPACE_STYLE
,
sXML_name
,
sString
);
// write page-master
SvXMLElementExport
aPME
(
*
this
,
XML_NAMESPACE_STYLE
,
sXML_page_master
,
sal_True
,
sal_True
);
// prepare style:properties inside page-master
GetMM100UnitConverter
().
convertMeasure
(
sStringBuffer
,
pInfo
->
GetBorderTop
());
GetMM100UnitConverter
().
convertMeasure
(
sStringBuffer
,
pInfo
->
GetBorderTop
());
sString
=
sStringBuffer
.
makeStringAndClear
();
sString
=
sStringBuffer
.
makeStringAndClear
();
AddAttribute
(
XML_NAMESPACE_FO
,
sXML_margin_top
,
sString
);
AddAttribute
(
XML_NAMESPACE_FO
,
sXML_margin_top
,
sString
);
...
@@ -1443,8 +1447,8 @@ void SdXMLExport::ImpWritePageMasterInfos()
...
@@ -1443,8 +1447,8 @@ void SdXMLExport::ImpWritePageMasterInfos()
else
else
AddAttributeASCII
(
XML_NAMESPACE_FO
,
sXML_page_orientation
,
sXML_orientation_landscape
);
AddAttributeASCII
(
XML_NAMESPACE_FO
,
sXML_page_orientation
,
sXML_orientation_landscape
);
// write
page-master
// write
style:properties
SvXMLElementExport
aPM
E
(
*
this
,
XML_NAMESPACE_STYLE
,
sXML_page_master
,
sal_True
,
sal_True
);
SvXMLElementExport
aPM
F
(
*
this
,
XML_NAMESPACE_STYLE
,
sXML_properties
,
sal_True
,
sal_True
);
}
}
}
}
}
}
...
...
xmloff/source/draw/sdxmlimp.cxx
Dosyayı görüntüle @
6f2bd847
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: sdxmlimp.cxx,v $
* $RCSfile: sdxmlimp.cxx,v $
*
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
*
* last change: $Author:
hr $ $Date: 2000-09-18 17:07:03
$
* last change: $Author:
aw $ $Date: 2000-11-27 12:52:59
$
*
*
* 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
...
@@ -170,13 +170,18 @@ static __FAR_DATA SvXMLTokenMapEntry aMasterPageAttrTokenMap[] =
...
@@ -170,13 +170,18 @@ static __FAR_DATA SvXMLTokenMapEntry aMasterPageAttrTokenMap[] =
static
__FAR_DATA
SvXMLTokenMapEntry
aPageMasterAttrTokenMap
[]
=
static
__FAR_DATA
SvXMLTokenMapEntry
aPageMasterAttrTokenMap
[]
=
{
{
{
XML_NAMESPACE_STYLE
,
sXML_name
,
XML_TOK_PAGEMASTER_NAME
},
{
XML_NAMESPACE_STYLE
,
sXML_name
,
XML_TOK_PAGEMASTER_NAME
},
{
XML_NAMESPACE_FO
,
sXML_margin_top
,
XML_TOK_PAGEMASTER_MARGIN_TOP
},
XML_TOKEN_MAP_END
{
XML_NAMESPACE_FO
,
sXML_margin_bottom
,
XML_TOK_PAGEMASTER_MARGIN_BOTTOM
},
};
{
XML_NAMESPACE_FO
,
sXML_margin_left
,
XML_TOK_PAGEMASTER_MARGIN_LEFT
},
{
XML_NAMESPACE_FO
,
sXML_margin_right
,
XML_TOK_PAGEMASTER_MARGIN_RIGHT
},
static
__FAR_DATA
SvXMLTokenMapEntry
aPageMasterStyleAttrTokenMap
[]
=
{
XML_NAMESPACE_FO
,
sXML_page_width
,
XML_TOK_PAGEMASTER_PAGE_WIDTH
},
{
{
XML_NAMESPACE_FO
,
sXML_page_height
,
XML_TOK_PAGEMASTER_PAGE_HEIGHT
},
{
XML_NAMESPACE_FO
,
sXML_margin_top
,
XML_TOK_PAGEMASTERSTYLE_MARGIN_TOP
},
{
XML_NAMESPACE_FO
,
sXML_page_orientation
,
XML_TOK_PAGEMASTER_PAGE_ORIENTATION
},
{
XML_NAMESPACE_FO
,
sXML_margin_bottom
,
XML_TOK_PAGEMASTERSTYLE_MARGIN_BOTTOM
},
{
XML_NAMESPACE_FO
,
sXML_margin_left
,
XML_TOK_PAGEMASTERSTYLE_MARGIN_LEFT
},
{
XML_NAMESPACE_FO
,
sXML_margin_right
,
XML_TOK_PAGEMASTERSTYLE_MARGIN_RIGHT
},
{
XML_NAMESPACE_FO
,
sXML_page_width
,
XML_TOK_PAGEMASTERSTYLE_PAGE_WIDTH
},
{
XML_NAMESPACE_FO
,
sXML_page_height
,
XML_TOK_PAGEMASTERSTYLE_PAGE_HEIGHT
},
{
XML_NAMESPACE_FO
,
sXML_page_orientation
,
XML_TOK_PAGEMASTERSTYLE_PAGE_ORIENTATION
},
XML_TOKEN_MAP_END
XML_TOKEN_MAP_END
};
};
...
@@ -311,6 +316,7 @@ SdXMLImport::SdXMLImport(
...
@@ -311,6 +316,7 @@ SdXMLImport::SdXMLImport(
mpMasterPageElemTokenMap
(
0L
),
mpMasterPageElemTokenMap
(
0L
),
mpMasterPageAttrTokenMap
(
0L
),
mpMasterPageAttrTokenMap
(
0L
),
mpPageMasterAttrTokenMap
(
0L
),
mpPageMasterAttrTokenMap
(
0L
),
mpPageMasterStyleAttrTokenMap
(
0L
),
mpDrawPageAttrTokenMap
(
0L
),
mpDrawPageAttrTokenMap
(
0L
),
mpDrawPageElemTokenMap
(
0L
),
mpDrawPageElemTokenMap
(
0L
),
mpPresentationPlaceholderAttrTokenMap
(
0L
),
mpPresentationPlaceholderAttrTokenMap
(
0L
),
...
@@ -399,6 +405,8 @@ SdXMLImport::~SdXMLImport()
...
@@ -399,6 +405,8 @@ SdXMLImport::~SdXMLImport()
delete
mpMasterPageAttrTokenMap
;
delete
mpMasterPageAttrTokenMap
;
if
(
mpPageMasterAttrTokenMap
)
if
(
mpPageMasterAttrTokenMap
)
delete
mpPageMasterAttrTokenMap
;
delete
mpPageMasterAttrTokenMap
;
if
(
mpPageMasterStyleAttrTokenMap
)
delete
mpPageMasterStyleAttrTokenMap
;
if
(
mpDrawPageAttrTokenMap
)
if
(
mpDrawPageAttrTokenMap
)
delete
mpDrawPageAttrTokenMap
;
delete
mpDrawPageAttrTokenMap
;
if
(
mpDrawPageElemTokenMap
)
if
(
mpDrawPageElemTokenMap
)
...
@@ -472,6 +480,15 @@ const SvXMLTokenMap& SdXMLImport::GetPageMasterAttrTokenMap()
...
@@ -472,6 +480,15 @@ const SvXMLTokenMap& SdXMLImport::GetPageMasterAttrTokenMap()
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
const
SvXMLTokenMap
&
SdXMLImport
::
GetPageMasterStyleAttrTokenMap
()
{
if
(
!
mpPageMasterStyleAttrTokenMap
)
mpPageMasterStyleAttrTokenMap
=
new
SvXMLTokenMap
(
aPageMasterStyleAttrTokenMap
);
return
*
mpPageMasterStyleAttrTokenMap
;
}
//////////////////////////////////////////////////////////////////////////////
const
SvXMLTokenMap
&
SdXMLImport
::
GetDrawPageAttrTokenMap
()
const
SvXMLTokenMap
&
SdXMLImport
::
GetDrawPageAttrTokenMap
()
{
{
if
(
!
mpDrawPageAttrTokenMap
)
if
(
!
mpDrawPageAttrTokenMap
)
...
...
xmloff/source/draw/ximpstyl.cxx
Dosyayı görüntüle @
6f2bd847
This diff is collapsed.
Click to expand it.
xmloff/source/draw/ximpstyl.hxx
Dosyayı görüntüle @
6f2bd847
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ximpstyl.hxx,v $
* $RCSfile: ximpstyl.hxx,v $
*
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
*
* last change: $Author:
hr $ $Date: 2000-09-18 17:07:04
$
* last change: $Author:
aw $ $Date: 2000-11-27 12:52:59
$
*
*
* 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
...
@@ -83,9 +83,9 @@
...
@@ -83,9 +83,9 @@
#endif
#endif
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// style:page-master context
// s
pecial style:style context inside s
tyle:page-master context
class
SdXMLPageMasterContext
:
public
SvXMLStyleContext
class
SdXMLPageMaster
Style
Context
:
public
SvXMLStyleContext
{
{
sal_Int32
mnBorderBottom
;
sal_Int32
mnBorderBottom
;
sal_Int32
mnBorderLeft
;
sal_Int32
mnBorderLeft
;
...
@@ -94,7 +94,6 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
...
@@ -94,7 +94,6 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
sal_Int32
mnWidth
;
sal_Int32
mnWidth
;
sal_Int32
mnHeight
;
sal_Int32
mnHeight
;
com
::
sun
::
star
::
view
::
PaperOrientation
meOrientation
;
com
::
sun
::
star
::
view
::
PaperOrientation
meOrientation
;
rtl
::
OUString
msName
;
const
SdXMLImport
&
GetSdImport
()
const
{
return
(
const
SdXMLImport
&
)
GetImport
();
}
const
SdXMLImport
&
GetSdImport
()
const
{
return
(
const
SdXMLImport
&
)
GetImport
();
}
SdXMLImport
&
GetSdImport
()
{
return
(
SdXMLImport
&
)
GetImport
();
}
SdXMLImport
&
GetSdImport
()
{
return
(
SdXMLImport
&
)
GetImport
();
}
...
@@ -102,14 +101,13 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
...
@@ -102,14 +101,13 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
public
:
public
:
TYPEINFO
();
TYPEINFO
();
SdXMLPageMasterContext
(
SdXMLPageMaster
Style
Context
(
SdXMLImport
&
rImport
,
SdXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
sal_uInt16
nPrfx
,
const
rtl
::
OUString
&
rLName
,
const
rtl
::
OUString
&
rLName
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
virtual
~
SdXMLPageMasterContext
();
virtual
~
SdXMLPageMaster
Style
Context
();
const
rtl
::
OUString
&
GetName
()
const
{
return
msName
;
}
sal_Int32
GetBorderBottom
()
const
{
return
mnBorderBottom
;
}
sal_Int32
GetBorderBottom
()
const
{
return
mnBorderBottom
;
}
sal_Int32
GetBorderLeft
()
const
{
return
mnBorderLeft
;
}
sal_Int32
GetBorderLeft
()
const
{
return
mnBorderLeft
;
}
sal_Int32
GetBorderRight
()
const
{
return
mnBorderRight
;
}
sal_Int32
GetBorderRight
()
const
{
return
mnBorderRight
;
}
...
@@ -119,6 +117,35 @@ public:
...
@@ -119,6 +117,35 @@ public:
com
::
sun
::
star
::
view
::
PaperOrientation
GetOrientation
()
const
{
return
meOrientation
;
}
com
::
sun
::
star
::
view
::
PaperOrientation
GetOrientation
()
const
{
return
meOrientation
;
}
};
};
//////////////////////////////////////////////////////////////////////////////
// style:page-master context
class
SdXMLPageMasterContext
:
public
SvXMLStyleContext
{
rtl
::
OUString
msName
;
SdXMLPageMasterStyleContext
*
mpPageMasterStyle
;
const
SdXMLImport
&
GetSdImport
()
const
{
return
(
const
SdXMLImport
&
)
GetImport
();
}
SdXMLImport
&
GetSdImport
()
{
return
(
SdXMLImport
&
)
GetImport
();
}
public
:
TYPEINFO
();
SdXMLPageMasterContext
(
SdXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
rtl
::
OUString
&
rLName
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
virtual
~
SdXMLPageMasterContext
();
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
rtl
::
OUString
&
rLocalName
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
const
rtl
::
OUString
&
GetName
()
const
{
return
msName
;
}
const
SdXMLPageMasterStyleContext
*
GetPageMasterStyle
()
const
{
return
mpPageMasterStyle
;
}
};
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// style:masterpage context
// style:masterpage context
...
...
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