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
6695b269
Kaydet (Commit)
6695b269
authored
Mar 16, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added column separator style in ODF
üst
5c983682
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
2 deletions
+52
-2
XMLTextColumnsContext.hxx
xmloff/inc/XMLTextColumnsContext.hxx
+1
-0
XMLTextColumnsExport.hxx
xmloff/inc/XMLTextColumnsExport.hxx
+1
-0
XMLTextColumnsContext.cxx
xmloff/source/text/XMLTextColumnsContext.cxx
+29
-0
XMLTextColumnsExport.cxx
xmloff/source/text/XMLTextColumnsExport.cxx
+21
-2
No files found.
xmloff/inc/XMLTextColumnsContext.hxx
Dosyayı görüntüle @
6695b269
...
@@ -46,6 +46,7 @@ class XMLTextColumnsContext :public XMLElementPropertyContext
...
@@ -46,6 +46,7 @@ class XMLTextColumnsContext :public XMLElementPropertyContext
const
::
rtl
::
OUString
sSeparatorLineVerticalAlignment
;
const
::
rtl
::
OUString
sSeparatorLineVerticalAlignment
;
const
::
rtl
::
OUString
sIsAutomatic
;
const
::
rtl
::
OUString
sIsAutomatic
;
const
::
rtl
::
OUString
sAutomaticDistance
;
const
::
rtl
::
OUString
sAutomaticDistance
;
const
::
rtl
::
OUString
sSeparatorLineStyle
;
XMLTextColumnsArray_Impl
*
pColumns
;
XMLTextColumnsArray_Impl
*
pColumns
;
...
...
xmloff/inc/XMLTextColumnsExport.hxx
Dosyayı görüntüle @
6695b269
...
@@ -43,6 +43,7 @@ class XMLTextColumnsExport
...
@@ -43,6 +43,7 @@ class XMLTextColumnsExport
const
::
rtl
::
OUString
sSeparatorLineVerticalAlignment
;
const
::
rtl
::
OUString
sSeparatorLineVerticalAlignment
;
const
::
rtl
::
OUString
sIsAutomatic
;
const
::
rtl
::
OUString
sIsAutomatic
;
const
::
rtl
::
OUString
sAutomaticDistance
;
const
::
rtl
::
OUString
sAutomaticDistance
;
const
::
rtl
::
OUString
sSeparatorLineStyle
;
protected
:
protected
:
...
...
xmloff/source/text/XMLTextColumnsContext.cxx
Dosyayı görüntüle @
6695b269
...
@@ -68,6 +68,7 @@ enum SvXMLSepTokenMapAttrs
...
@@ -68,6 +68,7 @@ enum SvXMLSepTokenMapAttrs
XML_TOK_COLUMN_SEP_HEIGHT
,
XML_TOK_COLUMN_SEP_HEIGHT
,
XML_TOK_COLUMN_SEP_COLOR
,
XML_TOK_COLUMN_SEP_COLOR
,
XML_TOK_COLUMN_SEP_ALIGN
,
XML_TOK_COLUMN_SEP_ALIGN
,
XML_TOK_COLUMN_SEP_STYLE
,
XML_TOK_COLUMN_SEP_END
=
XML_TOK_UNKNOWN
XML_TOK_COLUMN_SEP_END
=
XML_TOK_UNKNOWN
};
};
...
@@ -85,9 +86,19 @@ static SvXMLTokenMapEntry aColSepAttrTokenMap[] =
...
@@ -85,9 +86,19 @@ static SvXMLTokenMapEntry aColSepAttrTokenMap[] =
{
XML_NAMESPACE_STYLE
,
XML_COLOR
,
XML_TOK_COLUMN_SEP_COLOR
},
{
XML_NAMESPACE_STYLE
,
XML_COLOR
,
XML_TOK_COLUMN_SEP_COLOR
},
{
XML_NAMESPACE_STYLE
,
XML_HEIGHT
,
XML_TOK_COLUMN_SEP_HEIGHT
},
{
XML_NAMESPACE_STYLE
,
XML_HEIGHT
,
XML_TOK_COLUMN_SEP_HEIGHT
},
{
XML_NAMESPACE_STYLE
,
XML_VERTICAL_ALIGN
,
XML_TOK_COLUMN_SEP_ALIGN
},
{
XML_NAMESPACE_STYLE
,
XML_VERTICAL_ALIGN
,
XML_TOK_COLUMN_SEP_ALIGN
},
{
XML_NAMESPACE_STYLE
,
XML_STYLE
,
XML_TOK_COLUMN_SEP_STYLE
},
XML_TOKEN_MAP_END
XML_TOKEN_MAP_END
};
};
SvXMLEnumMapEntry
const
pXML_Sep_Style_Enum
[]
=
{
{
XML_NONE
,
0
},
{
XML_SOLID
,
1
},
{
XML_DOTTED
,
2
},
{
XML_DASHED
,
3
},
{
XML_TOKEN_INVALID
,
0
}
};
SvXMLEnumMapEntry
const
pXML_Sep_Align_Enum
[]
=
SvXMLEnumMapEntry
const
pXML_Sep_Align_Enum
[]
=
{
{
{
XML_TOP
,
VerticalAlignment_TOP
},
{
XML_TOP
,
VerticalAlignment_TOP
},
...
@@ -181,6 +192,7 @@ class XMLTextColumnSepContext_Impl: public SvXMLImportContext
...
@@ -181,6 +192,7 @@ class XMLTextColumnSepContext_Impl: public SvXMLImportContext
sal_Int32
nWidth
;
sal_Int32
nWidth
;
sal_Int32
nColor
;
sal_Int32
nColor
;
sal_Int8
nHeight
;
sal_Int8
nHeight
;
sal_Int8
nStyle
;
VerticalAlignment
eVertAlign
;
VerticalAlignment
eVertAlign
;
...
@@ -198,6 +210,7 @@ public:
...
@@ -198,6 +210,7 @@ public:
sal_Int32
GetWidth
()
const
{
return
nWidth
;
}
sal_Int32
GetWidth
()
const
{
return
nWidth
;
}
sal_Int32
GetColor
()
const
{
return
nColor
;
}
sal_Int32
GetColor
()
const
{
return
nColor
;
}
sal_Int8
GetHeight
()
const
{
return
nHeight
;
}
sal_Int8
GetHeight
()
const
{
return
nHeight
;
}
sal_Int8
GetStyle
()
const
{
return
nStyle
;
}
VerticalAlignment
GetVertAlign
()
const
{
return
eVertAlign
;
}
VerticalAlignment
GetVertAlign
()
const
{
return
eVertAlign
;
}
};
};
...
@@ -214,6 +227,7 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl(
...
@@ -214,6 +227,7 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl(
nWidth
(
2
),
nWidth
(
2
),
nColor
(
0
),
nColor
(
0
),
nHeight
(
100
),
nHeight
(
100
),
nStyle
(
1
),
eVertAlign
(
VerticalAlignment_TOP
)
eVertAlign
(
VerticalAlignment_TOP
)
{
{
sal_Int16
nAttrCount
=
xAttrList
.
is
()
?
xAttrList
->
getLength
()
:
0
;
sal_Int16
nAttrCount
=
xAttrList
.
is
()
?
xAttrList
->
getLength
()
:
0
;
...
@@ -257,6 +271,15 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl(
...
@@ -257,6 +271,15 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl(
eVertAlign
=
(
VerticalAlignment
)
nAlign
;
eVertAlign
=
(
VerticalAlignment
)
nAlign
;
}
}
break
;
break
;
case
XML_TOK_COLUMN_SEP_STYLE
:
{
sal_uInt16
nStyleVal
;
if
(
GetImport
().
GetMM100UnitConverter
().
convertEnum
(
nStyleVal
,
rValue
,
pXML_Sep_Style_Enum
)
)
nStyle
=
(
sal_Int8
)
nStyleVal
;
}
break
;
}
}
}
}
}
}
...
@@ -287,6 +310,7 @@ XMLTextColumnsContext::XMLTextColumnsContext(
...
@@ -287,6 +310,7 @@ XMLTextColumnsContext::XMLTextColumnsContext(
,
sSeparatorLineVerticalAlignment
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineVerticalAlignment"
))
,
sSeparatorLineVerticalAlignment
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineVerticalAlignment"
))
,
sIsAutomatic
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomatic"
))
,
sIsAutomatic
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomatic"
))
,
sAutomaticDistance
(
RTL_CONSTASCII_USTRINGPARAM
(
"AutomaticDistance"
))
,
sAutomaticDistance
(
RTL_CONSTASCII_USTRINGPARAM
(
"AutomaticDistance"
))
,
sSeparatorLineStyle
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineStyle"
))
,
pColumns
(
0
)
,
pColumns
(
0
)
,
pColumnSep
(
0
)
,
pColumnSep
(
0
)
,
pColumnAttrTokenMap
(
new
SvXMLTokenMap
(
aColAttrTokenMap
)
)
,
pColumnAttrTokenMap
(
new
SvXMLTokenMap
(
aColAttrTokenMap
)
)
...
@@ -478,6 +502,11 @@ void XMLTextColumnsContext::EndElement( )
...
@@ -478,6 +502,11 @@ void XMLTextColumnsContext::EndElement( )
xPropSet
->
setPropertyValue
(
sSeparatorLineRelativeHeight
,
xPropSet
->
setPropertyValue
(
sSeparatorLineRelativeHeight
,
aAny
);
aAny
);
}
}
if
(
pColumnSep
->
GetStyle
()
)
{
aAny
<<=
pColumnSep
->
GetStyle
();
xPropSet
->
setPropertyValue
(
sSeparatorLineStyle
,
aAny
);
}
aAny
<<=
pColumnSep
->
GetColor
();
aAny
<<=
pColumnSep
->
GetColor
();
...
...
xmloff/source/text/XMLTextColumnsExport.cxx
Dosyayı görüntüle @
6695b269
...
@@ -61,7 +61,8 @@ XMLTextColumnsExport::XMLTextColumnsExport( SvXMLExport& rExp ) :
...
@@ -61,7 +61,8 @@ XMLTextColumnsExport::XMLTextColumnsExport( SvXMLExport& rExp ) :
sSeparatorLineRelativeHeight
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineRelativeHeight"
)),
sSeparatorLineRelativeHeight
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineRelativeHeight"
)),
sSeparatorLineVerticalAlignment
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineVerticalAlignment"
)),
sSeparatorLineVerticalAlignment
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineVerticalAlignment"
)),
sIsAutomatic
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomatic"
)),
sIsAutomatic
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomatic"
)),
sAutomaticDistance
(
RTL_CONSTASCII_USTRINGPARAM
(
"AutomaticDistance"
))
sAutomaticDistance
(
RTL_CONSTASCII_USTRINGPARAM
(
"AutomaticDistance"
)),
sSeparatorLineStyle
(
RTL_CONSTASCII_USTRINGPARAM
(
"SeparatorLineStyle"
))
{
{
}
}
...
@@ -133,12 +134,30 @@ void XMLTextColumnsExport::exportXML( const Any& rAny )
...
@@ -133,12 +134,30 @@ void XMLTextColumnsExport::exportXML( const Any& rAny )
GetExport
().
AddAttribute
(
XML_NAMESPACE_STYLE
,
XML_HEIGHT
,
GetExport
().
AddAttribute
(
XML_NAMESPACE_STYLE
,
XML_HEIGHT
,
sValue
.
makeStringAndClear
()
);
sValue
.
makeStringAndClear
()
);
// style::style
aAny
=
xPropSet
->
getPropertyValue
(
sSeparatorLineStyle
);
sal_Int8
nStyle
=
0
;
aAny
>>=
nStyle
;
enum
XMLTokenEnum
eStr
=
XML_TOKEN_INVALID
;
switch
(
nStyle
)
{
case
0
:
eStr
=
XML_NONE
;
break
;
case
1
:
eStr
=
XML_SOLID
;
break
;
case
2
:
eStr
=
XML_DOTTED
;
break
;
case
3
:
eStr
=
XML_DASHED
;
break
;
default
:
break
;
}
if
(
eStr
!=
XML_TOKEN_INVALID
)
GetExport
().
AddAttribute
(
XML_NAMESPACE_STYLE
,
XML_STYLE
,
eStr
);
// style:vertical-align
// style:vertical-align
aAny
=
xPropSet
->
getPropertyValue
(
sSeparatorLineVerticalAlignment
);
aAny
=
xPropSet
->
getPropertyValue
(
sSeparatorLineVerticalAlignment
);
VerticalAlignment
eVertAlign
;
VerticalAlignment
eVertAlign
;
aAny
>>=
eVertAlign
;
aAny
>>=
eVertAlign
;
e
num
XMLTokenEnum
e
Str
=
XML_TOKEN_INVALID
;
eStr
=
XML_TOKEN_INVALID
;
switch
(
eVertAlign
)
switch
(
eVertAlign
)
{
{
// case VerticalAlignment_TOP: eStr = XML_TOP;
// case VerticalAlignment_TOP: eStr = XML_TOP;
...
...
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