|
@@ -291,7 +291,7 @@ namespace HTEXLib.Helpers.ShapeHelpers
|
|
}
|
|
}
|
|
}
|
|
}
|
|
TbStyle tbStyle =DoTableStyle(TableStyle,slide,type,partForm);
|
|
TbStyle tbStyle =DoTableStyle(TableStyle,slide,type,partForm);
|
|
- if (fill != null && fill.type == -1)
|
|
|
|
|
|
+ if (fill != null )
|
|
{
|
|
{
|
|
tbStyle.fill = fill;
|
|
tbStyle.fill = fill;
|
|
}
|
|
}
|
|
@@ -545,7 +545,7 @@ namespace HTEXLib.Helpers.ShapeHelpers
|
|
/// <param name="partForm"></param>
|
|
/// <param name="partForm"></param>
|
|
public static CellStyle DoTablePartStyleType(TablePartStyleType tablePartStyleType, PPTSlide slide, string type, string partForm) {
|
|
public static CellStyle DoTablePartStyleType(TablePartStyleType tablePartStyleType, PPTSlide slide, string type, string partForm) {
|
|
//表格单元格文本样式。
|
|
//表格单元格文本样式。
|
|
- CellStyle cellStyle = new CellStyle() { type= tablePartStyleType.GetType().Name};
|
|
|
|
|
|
+ CellStyle cellStyle = new CellStyle() { type= tablePartStyleType.LocalName};
|
|
var TableCellTextStyle = tablePartStyleType.GetFirstChild<TableCellTextStyle>();
|
|
var TableCellTextStyle = tablePartStyleType.GetFirstChild<TableCellTextStyle>();
|
|
if (TableCellTextStyle != null) {
|
|
if (TableCellTextStyle != null) {
|
|
FontStyle fontStyle = new FontStyle { };
|
|
FontStyle fontStyle = new FontStyle { };
|
|
@@ -730,7 +730,7 @@ namespace HTEXLib.Helpers.ShapeHelpers
|
|
var TopLeftToBottomRightBorder = TableCellBorders.TopLeftToBottomRightBorder;
|
|
var TopLeftToBottomRightBorder = TableCellBorders.TopLeftToBottomRightBorder;
|
|
if (TopLeftToBottomRightBorder != null)
|
|
if (TopLeftToBottomRightBorder != null)
|
|
{
|
|
{
|
|
- Border border = DoOutline(TopLeftToBottomRightBorder.Outline, slide, type);
|
|
|
|
|
|
+ Border border = DoOutline(TopLeftToBottomRightBorder.Outline, slide, type);
|
|
if (TopLeftToBottomRightBorder.LineReference != null && (border.color.type == null || border.color.type == -1))
|
|
if (TopLeftToBottomRightBorder.LineReference != null && (border.color.type == null || border.color.type == -1))
|
|
{
|
|
{
|
|
border.color.solidFill = DoMatrixReferenceColors(TopLeftToBottomRightBorder.LineReference, slide);
|
|
border.color.solidFill = DoMatrixReferenceColors(TopLeftToBottomRightBorder.LineReference, slide);
|
|
@@ -1404,7 +1404,7 @@ namespace HTEXLib.Helpers.ShapeHelpers
|
|
var ang = lin.Attribute("ang");
|
|
var ang = lin.Attribute("ang");
|
|
var scaledNode = lin.Attribute("scaled");
|
|
var scaledNode = lin.Attribute("scaled");
|
|
if (ang != null) {
|
|
if (ang != null) {
|
|
- rot= ShapeHelper.AngleToDegrees(ang.Value) + 90;
|
|
|
|
|
|
+ rot= ShapeHelper.AngleToDegrees(ang.Value);
|
|
}
|
|
}
|
|
if (scaledNode != null) {
|
|
if (scaledNode != null) {
|
|
scaled = scaledNode.Value;
|
|
scaled = scaledNode.Value;
|