Commit d94a0e92 authored by Ilya Kirillov's avatar Ilya Kirillov Committed by Alexander.Trofimov

Убран из файла билдера тестовые функции.

parent fb6753d3
......@@ -4619,1262 +4619,3 @@
};
}(window, null));
\ No newline at end of file
function TEST_BUILDER()
{
var oLD = editor.WordControl.m_oLogicDocument;
oLD.Create_NewHistoryPoint();
//------------------------------------------------------------------------------------------------------------------
// Воссоздаем документ DemoHyden
var Api = editor;
var oParagraph, oRun, oDrawing, oParaMark;
var oDocument = Api.GetDocument();
var oNoSpacingStyle = oDocument.GetStyle("No Spacing");
var oFinalSection = oDocument.GetFinalSection();
oFinalSection.SetEqualColumns(2, 720);
oFinalSection.SetPageSize(12240, 15840);
oFinalSection.SetPageMargins(1440, 1440, 1440, 1440);
oFinalSection.SetHeaderDistance(720);
oFinalSection.SetFooterDistance(720);
oFinalSection.SetType("continuous");
// Генерим стили, которые будем использовать в документе
var oTextPr, oParaPr, oTablePr;
oTextPr = oDocument.GetDefaultTextPr();
oTextPr.SetFontSize(22);
oTextPr.SetLanguage("en-US");
oTextPr.SetFontFamily("Calibri");
oParaPr = oDocument.GetDefaultParaPr();
oParaPr.SetSpacingLine(276, "auto");
oParaPr.SetSpacingAfter(200);
var oNormalStyle = oDocument.GetDefaultStyle("paragraph");
oParaPr = oNormalStyle.GetParaPr();
oParaPr.SetSpacingLine(240, "auto");
oParaPr.SetJc("both");
oTextPr = oNormalStyle.GetTextPr();
oTextPr.SetColor(0x26, 0x26, 0x26, false);
var oHeading1Style = oDocument.CreateStyle("Heading 1", "paragraph");
oParaPr = oHeading1Style.GetParaPr();
oParaPr.SetKeepNext(true);
oParaPr.SetKeepLines(true);
oParaPr.SetSpacingAfter(240);
oTextPr = oHeading1Style.GetTextPr();
oTextPr.SetColor(0xff, 0x68, 0x00, false);
oTextPr.SetFontSize(40);
oTextPr.SetFontFamily("Calibri Light");
var oSubtitleStyle = oDocument.CreateStyle("Subtitle");
oParaPr = oSubtitleStyle.GetParaPr();
oParaPr.SetSpacingAfter(0);
oParaPr.SetSpacingBefore(240);
oTextPr = oSubtitleStyle.GetTextPr();
oTextPr.SetColor(0xff, 0x68, 0x00, false);
oTextPr.SetFontSize(32);
oTextPr.SetFontFamily("Calibri Light");
var oNormalTableStyle = oDocument.GetDefaultStyle("table");
oTablePr = oNormalTableStyle.GetTablePr();
oTablePr.SetTableInd(0);
oTablePr.SetTableCellMarginTop(0);
oTablePr.SetTableCellMarginLeft(108);
oTablePr.SetTableCellMarginRight(108);
oTablePr.SetTableCellMarginBottom(0);
var oTableGridStyle = oDocument.CreateStyle("TableGrid", "table");
oTableGridStyle.SetBasedOn(oNormalTableStyle);
oParaPr = oTableGridStyle.GetParaPr();
oParaPr.SetSpacingAfter(0);
oParaPr.SetSpacingLine("auto", 240);
oTablePr = oTableGridStyle.GetTablePr();
oTablePr.SetTableInd(0);
oTablePr.SetTableBorderTop("single", 4, 0, 0, 0, 0);
oTablePr.SetTableBorderLeft("single", 4, 0, 0, 0, 0);
oTablePr.SetTableBorderRight("single", 4, 0, 0, 0, 0);
oTablePr.SetTableBorderBottom("single", 4, 0, 0, 0, 0);
oTablePr.SetTableBorderInsideH("single", 4, 0, 0, 0, 0);
oTablePr.SetTableBorderInsideV("single", 4, 0, 0, 0, 0);
oTablePr.SetTableCellMarginTop(0);
oTablePr.SetTableCellMarginLeft(108);
oTablePr.SetTableCellMarginBottom(0);
oTablePr.SetTableCellMarginRight(108);
var oFooterStyle = oDocument.CreateStyle("Footer", "paragraph");
oParaPr = oFooterStyle.GetParaPr();
oParaPr.SetTabs([4680, 9360], ["center", "right"]);
oParaPr.SetSpacingAfter(0);
oParaPr.SetJc("left");
oTextPr = oFooterStyle.GetTextPr();
oTextPr.SetColor(0, 0, 0, true);
oTextPr.SetFontSize(22);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingLine(276, "auto");
oParagraph.SetJc("left");
oParaMark = oParagraph.GetParagraphMarkTextPr();
oParaMark.SetFontSize(52);
oParaMark.SetColor(0x14, 0x14, 0x14, false);
oParaMark.SetSpacing(5);
oParagraph.AddPageBreak();
var oFill = Api.CreateSolidFill(Api.CreateRGBColor(38, 38, 38));
var oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect",5363210, 9655810, oFill, oStroke);
oParagraph.AddDrawing(oDrawing);
oDrawing.SetWrappingStyle("inFront");
oDrawing.SetHorPosition("page", 155575);
oDrawing.SetVerPosition("page", 201295);
var oDocContent = oDrawing.GetDocContent();
oDocContent.RemoveAllElements();
var oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
var oRun2 = oParagraph2.AddText("HAYDEN MANAGEMENT");
oRun2.SetFontSize(64);
oRun2.SetColor(255, 255, 255);
oRun2.SetFontFamily("Calibri Light");
oParagraph2.SetBottomBorder("single", 1, 0, 255, 104, 0);
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oRun2 = oParagraph2.AddText("Product Launch Revenue Plan");
oRun2.SetFontSize(44);
oRun2.SetColor(255, 255, 255);
oRun2.SetFontFamily("Calibri Light");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oRun2 = oParagraph2.AddText("Confidential");
oRun2.SetFontSize(28);
oRun2.SetColor(255, 255, 255);
oRun2.SetFontFamily("Calibri Light");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oRun2 = oParagraph2.AddText("May 2013");
oRun2.SetFontSize(28);
oRun2.SetColor(255, 255, 255);
oRun2.SetFontFamily("Calibri Light");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("right");
oDocContent.Push(oParagraph2);
oFill = Api.CreateSolidFill(Api.CreateRGBColor(255, 104, 0));
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect", 1880870, 9655810, oFill, oStroke);
oDrawing.SetWrappingStyle("inFront");
oDrawing.SetHorPosition("page", 5673725);
oDrawing.SetVerPosition("page", 201295);
oParagraph.AddDrawing(oDrawing);
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oNoSpacingStyle);
var oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 224, 204), 0);
var oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 164, 101), 100000);
oFill = Api.CreateLinearGradientFill([oGs1, oGs2], 5400000);
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect", 5930900, 395605, oFill, oStroke);
oDrawing.SetWrappingStyle("topAndBottom");
oDrawing.SetHorAlign("margin", "left");
oDrawing.SetVerPosition("paragraph", 5715);
oDrawing.SetDistances(114300, 0, 114300, 0);
oDocContent = oDrawing.GetDocContent();
oDocContent.RemoveAllElements();
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("Product Launch Revenue Plan");
oRun2.SetFontSize(44);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri Light");
oDocContent.Push(oParagraph2);
oParagraph.AddDrawing(oDrawing);
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oHeading1Style);
oDrawing = Api.CreateImage("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA3ADcAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ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qF6E4/DisKiW50U9rFFtlxcRtGZ2DuwV1G0c/h+X0rVZxp+mWqxyTJNKp3ybnKO27b0APJAHSqpZmu2XcwBuAvB6Dk8VbtLiWC12+bM6MkqBXmfC/vDgqM/KeOo9T61yS01OlK4koaafLtIVSfMW8bSBtHByBkZJrsBMsVqV+3OlxEu6VxGxQkHlRj2+v4Vzd5MzToMcZwMktt5U8Ekmug0+5keODzCXKRuMuSd2TnLZPJ+tTJ9Sqa0Ls8sf2+FjKZ2y4tWDYCttAy/JI6t0FXIWuizMb+KYg4d/u/QAheR0/XioRHH5xkESB96qWx6gZOOgJzzjrUz2tultNshVRGSFAJxjn1PuazbXQ1Sa3NCzWV/MJRepwcZA59f8AD0q/GQNwUEZBJ561kWIEalV/ij3E55J4rT3Fc4OOK9DDaxscGKVpXJpZljBbzcZCkDdj8KsWipJ88hUr95RnqQO/41QuyWjBJ6KuBgY/KmF3jAVXwEMmOB2GfSuue1kzjp76n//Z", 720725, 1204595);
oDrawing.SetWrappingStyle("tight");
oDrawing.SetHorAlign("margin", "left");
oDrawing.SetVerPosition("page", 1810470);
oDrawing.SetDistances(114300, 0, 114300, 0);
oParagraph.AddDrawing(oDrawing);
oParagraph.AddText("Overview");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.AddText("In the previous meeting of the board of directors funds were approved to take the product “Innovate 1” to market. They have also allocated a sum of $250,000 towards market identification and launch efforts. This document describes in brief the objective set forth by the VP of marketing pursuant to the board’s decision.");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oHeading1Style);
oParagraph.SetSpacingAfter(100, true);
oParagraph.SetSpacingBefore(100, true);
oParagraph.AddText("Summary");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingAfter(100, true);
oParagraph.SetSpacingBefore(100, true);
oFill = Api.CreateSolidFill(Api.CreateRGBColor(255, 104, 0));
oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 224, 204), 0);
oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 164, 101), 100000);
oFill = Api.CreateLinearGradientFill([oGs1, oGs2], 5400000);
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect", 3212465, 963295, oFill, oStroke);
oDrawing.SetWrappingStyle("topAndBottom");
oDrawing.SetHorPosition("margin", 370205);
oDrawing.SetVerPosition("paragraph", 1170888);
oDrawing.SetDistances(114300, 0, 114300, 0);
oDocContent = oDrawing.GetDocContent();
oDocContent.RemoveAllElements();
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("Phase 1");
oRun2.SetFontSize(20);
oRun2.SetBold(true);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oRun2 = oParagraph2.AddText(": Review market tests, marketing plans, and expected sales goals.");
oRun2.SetFontSize(20);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("Phase 2");
oRun2.SetFontSize(20);
oRun2.SetBold(true);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oRun2 = oParagraph2.AddText(": Developers complete final build of the solution.");
oRun2.SetFontSize(20);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("Phase 3");
oRun2.SetFontSize(20);
oRun2.SetBold(true);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oRun2 = oParagraph2.AddText(": The launch phase.");
oRun2.SetFontSize(20);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oDocContent.Push(oParagraph2);
oParagraph.AddDrawing(oDrawing);
oParagraph.AddText("After years of market research and focused creative effort we are in a position to take our “Innovate 1” to market. We have a three phase approach in place to complete the product and take the product to market. The first step of this initiative is to test the market. Once we have identified the market, then we will make any final product product to drive that effectively keeps down costs while meeting sales goals. ");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oHeading1Style);
oParagraph.SetSpacingAfter(100, true);
oParagraph.SetSpacingBefore(100, true);
oDrawing = Api.CreateChart("bar3D", [[200, 240, 280, 300, 390],[250, 260, 280, 280, 285]], ["Projected Revenue", "Estimated Costs"], [2014, 2015, 2016, 2017, 2018], 4051300, 2347595);
oDrawing.SetWrappingStyle("tight");
oDrawing.SetHorPosition("column", 2347595);
oDrawing.SetVerPosition("paragraph", 346075);
oDrawing.SetDistances(114300, 0, 114300, 0);
oDrawing.SetVerAxisTitle("USD In Hundred Thousands");
oDrawing.SetLegendPos("bottom");
oDrawing.SetShowDataLabels(false, false, true);
oParagraph.AddDrawing(oDrawing);
oParagraph.AddText("Financial Overview");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndRight(5040);
oParagraph.AddText("Included are the estimated investment costs to introduce the new product. As you can see for the first 3 years we will be in the investment phase. Generating market demand and building our reputation in this category. By 201");
oParagraph.AddText("7");
oParagraph.AddText(" we expect to be profitable.");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndRight(5040);
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oHeading1Style);
oParagraph.SetSpacingAfter(100, true);
oParagraph.SetSpacingBefore(100, true);
oParagraph.AddText("Details");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingAfter(240);
oParagraph.AddText("Out of the $250,000 allocated for this effort, we would like to spend about $50,000 towards the identification of the market. For this we are allowed to engage with a marketing consulting organization. Let us start with creating an RFP for this and start inviting the bids. We would like to get the selection process completed by no later than end of first quarter.");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingBefore(100, true);
oParagraph.SetSpacingAfter(360);
oDocument.Push(oParagraph);
var oSection1 = oDocument.CreateSection(oParagraph);
oSection1.SetEqualColumns(1, 720);
oSection1.SetPageSize(12240, 15840);
oSection1.SetPageMargins(1440, 1440, 1440, 1440);
oSection1.SetHeaderDistance(720);
oSection1.SetFooterDistance(576);
oParagraph = Api.CreateParagraph();
oParagraph.SetStyle(oSubtitleStyle);
oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 224, 204), 0);
oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 164, 101), 100000);
oFill = Api.CreateLinearGradientFill([oGs1, oGs2], 5400000);
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("rect", 2718435, 762000, oFill, oStroke);
oDrawing.SetWrappingStyle("square");
oDrawing.SetHorAlign("margin", "right");
oDrawing.SetVerPosition("paragraph", 17780);
oDrawing.SetDistances(114300, 0, 114300, 0);
var oContent = oDrawing.GetDocContent();
oContent.RemoveAllElements();
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("Innovation. Profit.");
oRun2.SetFontSize(20);
oRun2.SetBold(true);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
oParagraph2.SetJc("left");
oRun2 = oParagraph2.AddText("After years of market research and focused creative effort we are in a position to take our “Innovate 1” to market.");
oRun2.SetFontSize(20);
oRun2.SetColor(0, 0, 0);
oRun2.SetFontFamily("Calibri");
oContent.Push(oParagraph2);
oParagraph.AddDrawing(oDrawing);
oParagraph.AddText("Legal Issues");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oDrawing = Api.CreateChart("pie", [[53, 32, 5, 9]], [], ["Enterprise", "Small Business", "Individual", "Government"], 2741295, 2273300);
oDrawing.SetWrappingStyle("square");
oDrawing.SetHorAlign("margin", "right");
oDrawing.SetVerPosition("paragraph", 632460);
oDrawing.SetDistances(114300, 0, 114300, 0);
oDrawing.SetTitle("Projected Market Share by Audience");
oDrawing.SetShowDataLabels(false, false, true);
oParagraph.AddDrawing(oDrawing);
oParagraph.AddText("To support the new product, the Legal Department will maintain a centralized repository for all patent investigations as well as marketing claims. The release team will adhere to all of the standardized processes for releasing new products. ");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingAfter(0);
oParagraph.AddText("As we approach release of the product, the Legal Department is prepared ");
oParagraph.AddText("to develop all licensing agreements and has streamlined coordination with the marketing and sales department on the license terms and addendums. ");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetStyle(oSubtitleStyle);
oParagraph.AddText("Statement on Timeline");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetSpacingAfter(0);
oParagraph.AddText("All timelines in this report are estimated and highly dependent upon each team meeting their individual objectives. There are many interdependencies that are detailed in the related project plan. ");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetStyle(oSubtitleStyle);
oParagraph.AddText("Productivity Gains");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.AddText("To support the new product, the Legal Department will maintain a centralized repository for all patent investigations");
oParagraph.AddText(" as well as marketing claims. ");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetStyle(oSubtitleStyle);
oParagraph.AddText("License Agreements");
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingAfter(0);
oParagraph.AddText("All timelines in this report are estimated and highly dependent upon each team meetin");
oParagraph.AddText("g their individual objectives. I");
oParagraph.AddText("nterdependencies are detailed in the related project plan. ");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetStyle(oSubtitleStyle);
oParagraph.SetKeepNext(true);
oParagraph.SetKeepLines(true);
oParagraph.AddText("Revenue Forecasting");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.SetKeepNext(true);
oParagraph.SetKeepLines(true);
oParagraph.AddText("To support the new product, the Legal Department will maintain a centralized repository for all ");
oParagraph.AddText("patent investigations and");
oParagraph.AddText(" marketing claims. The release team will adhere to all of the stand");
oParagraph.AddText("ardized processes for releasing ");
oParagraph.AddText("new products. ");
var oTable = Api.CreateTable(2, 2);
oDocument.Push(oTable);
oTable.SetStyle(oTableGridStyle);
oTable.SetWidth("twips", 4311);
oTable.SetTableLook(true, true, false, false, true, false);
oTable.SetTableBorderTop("single", 4, 0, 0xAF, 0xAD, 0x91);
oTable.SetTableBorderBottom("single", 4, 0, 0xAF, 0xAD, 0x91);
oTable.SetTableBorderLeft("single", 4, 0, 0xAF, 0xAD, 0x91);
oTable.SetTableBorderRight("single", 4, 0, 0xAF, 0xAD, 0x91);
oTable.SetTableBorderInsideH("single", 4, 0, 0xAF, 0xAD, 0x91);
oTable.SetTableBorderInsideV("single", 4, 0, 0xAF, 0xAD, 0x91);
var oRow = oTable.GetRow(0), oCell, oCellContent;
if (oRow)
{
oRow.SetHeight("atLeast", 201);
oCell = oRow.GetCell(0);
oCell.SetWidth("twips", 1637);
oCell.SetShd("clear", 0xff, 0x68, 0x00, false);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetJc("center");
oRun = oParagraph.AddText("2014");
oRun.SetBold(true);
oRun.SetColor(0, 0, 0, false);
oCell = oRow.GetCell(1);
oCell.SetWidth("twips", 2674);
oCell.SetShd("clear", 0xff, 0x68, 0x00, false);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetJc("center");
oRun = oParagraph.AddText("2015");
oRun.SetBold(true);
oRun.SetColor(0, 0, 0, false);
}
oRow = oTable.GetRow(1);
if (oRow)
{
oRow.SetHeight("atLeast", 1070);
oCell = oRow.GetCell(0);
oCell.SetWidth("twips", 1637);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetJc("center");
oParagraph.AddText("All Projects");
oParagraph.AddLineBreak();
oParagraph.AddText("Pending");
oCell = oRow.GetCell(1);
oCell.SetWidth("twips", 2674);
oCell.SetShd("clear", 0, 0, 0, true);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oCellContent.RemoveAllElements();
var oInnerTable = Api.CreateTable(3, 3);
oCellContent.Push(oInnerTable);
oInnerTable.SetStyle(oTableGridStyle);
oInnerTable.SetWidth("twips", 2448);
oInnerTable.SetTableLook(true, true, false, false, true, false);
var oMergeCells = [];
oRow = oInnerTable.GetRow(0);
if(oRow)
{
oRow.SetHeight("atLeast", 201);
oCell = oRow.GetCell(0);
if (oCell)
{
oMergeCells.push(oCell);
}
oCell = oRow.GetCell(1);
if (oCell)
{
oCell.SetWidth("twips", 865);
oCell.SetShd("clear", 0xFF, 0xc2, 0x99, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("West");
}
oCell = oRow.GetCell(2);
if (oCell)
{
oCell.SetWidth("twips", 1092);
oCell.SetShd("clear", 0xff, 0xe0, 0xcc, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Approved");
}
}
oRow = oInnerTable.GetRow(1);
if (oRow)
{
oRow.SetHeight("atLeast", 196);
oCell = oRow.GetCell(0);
if (oCell)
{
oMergeCells.push(oCell);
}
oCell = oRow.GetCell(1);
if (oCell)
{
oCell.SetWidth("twips", 865);
oCell.SetShd("clear", 0xFF, 0xc2, 0x99, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Central");
}
oCell = oRow.GetCell(2);
if (oCell)
{
oCell.SetWidth("twips", 1092);
oCell.SetShd("clear", 0xff, 0xe0, 0xcc, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Pending");
}
}
oRow = oInnerTable.GetRow(2);
if (oRow)
{
oRow.SetHeight("atLeast", 196);
oCell = oRow.GetCell(0);
if (oCell)
{
oMergeCells.push(oCell);
}
oCell = oRow.GetCell(1);
if (oCell)
{
oCell.SetWidth("twips", 865);
oCell.SetShd("clear", 0xFF, 0xc2, 0x99, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("East");
}
oCell = oRow.GetCell(2);
if (oCell)
{
oCell.SetWidth("twips", 1092);
oCell.SetShd("clear", 0xff, 0xe0, 0xcc, false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Approved");
}
}
var oMergedCell = oInnerTable.MergeCells(oMergeCells);
oMergedCell.SetVerticalAlign("center");
oMergedCell.SetTextDirection("btlr");
oMergedCell.SetWidth("twips", 491);
oMergedCell.SetShd("clear", 0xff, 0xa4, 0x66, false);
oCellContent = oMergedCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetIndLeft(113);
oParagraph.SetIndRight(113);
oParagraph.SetJc("center");
oRun = oParagraph.AddText("USA");
oRun.SetBold(true);
}
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oTextPr = oParagraph.GetParagraphMarkTextPr();
oTextPr.SetColor(0xff, 0x00, 0x00);
oTextPr.SetFontFamily("Segoe UI");
// Filling ups header and footer
oSection1.SetTitlePage(true);
oDocContent = oSection1.GetHeader("default", true);
oDocContent.RemoveAllElements();
oTable = Api.CreateTable(2, 1);
oDocContent.Push(oTable);
oTable.SetWidth("auto");
oTable.SetJc("right");
oTable.SetTableLook(true, true, false, false, true, false);
oRow = oTable.GetRow(0);
if (oRow)
{
oRow.SetHeight("atLeast", 792);
oCell = oRow.GetCell(0);
if (oCell)
{
oCell.SetWidth("twips", 3337);
oCell.SetVerticalAlign("bottom");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetStyle("Header");
oParagraph.SetJc("right");
oTextPr = oParagraph.GetParagraphMarkTextPr();
oTextPr.SetFontFamily("Calibri Light");
oTextPr.SetFontSize(28);
oRun = oParagraph.AddText("HAYDEN MANAGEMENT");
oRun.SetSmallCaps(true);
oRun.SetFontSize(32);
oRun.SetFontFamily("Calibri Light");
}
oCell = oRow.GetCell(1);
if (oCell)
{
oCell.SetWidth("twips", 792);
oCell.SetShd("clear", 0xff, 0xa4, 0x65);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetStyle("Header");
oParagraph.SetJc("center");
oParagraph.GetParagraphMarkTextPr().SetColor(0xff, 0xff, 0xff);
oRun = oParagraph.AddText("1");
oRun.SetColor(0xff, 0xff, 0xff);
}
}
oParagraph = Api.CreateParagraph();
oDocContent.Push(oParagraph);
oDocContent = oSection1.GetFooter("default", true);
oDocContent.RemoveAllElements();
oTable = Api.CreateTable(2, 1);
oDocContent.Push(oTable);
oTable.SetWidth("auto");
oTable.SetJc("right");
oTable.SetTableLook(true, true, false, false, true, false);
oRow = oTable.GetRow(0);
if (oRow)
{
oCell = oRow.GetCell(0);
if (oCell)
{
oCell.SetWidth("auto");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetStyle(oFooterStyle);
oParagraph.SetJc("right");
oParagraph.AddText("Hayden Management");
oParagraph.AddText(" | Confidential");
}
oCell = oRow.GetCell(1);
if (oCell)
{
oCell.SetWidth("auto");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.SetStyle(oFooterStyle);
oParagraph.SetJc("right");
// TODO: Заполнить автофигуру
oDrawing = Api.CreateImage("", 495300, 481965);
oDrawing.SetWrappingStyle("inline");
oParagraph.AddDrawing(oDrawing);
}
}
oParagraph = Api.CreateParagraph();
oDocContent.Push(oParagraph);
oParagraph.SetStyle(oFooterStyle);
//------------------------------------------------------------------------------------------------------------------
oLD.Recalculate_FromStart(true);
}
function TEST_BUILDER2()
{
var oLD = editor.WordControl.m_oLogicDocument;
oLD.Create_NewHistoryPoint();
//------------------------------------------------------------------------------------------------------------------
var Api = editor;
var oDocument = Api.GetDocument();
var oParagraph, oTable, oTableRow, oCell, oCellContent, oRun, oDrawing;
//------------------------------------------------------------------------------------------------------------------
// TextPr
//------------------------------------------------------------------------------------------------------------------
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.AddText("Plain");
oParagraph.AddText("Bold").SetBold(true);
oParagraph.AddText("Italic").SetItalic(true);
oParagraph.AddText("Strikeout").SetStrikeout(true);
oParagraph.AddText("Underline").SetUnderline(true);
oParagraph.AddText("Calibri").SetFontFamily("Calibri");
oParagraph.AddText("FontSize40").SetFontSize(40);
oParagraph.AddText("ColorGreen").SetColor(0, 255, 0);
oParagraph.AddText("Superscript").SetVertAlign("superscript");
oParagraph.AddText("Subscript").SetVertAlign("subscript");
oParagraph.AddText("HighlightBlue").SetHighlight(0, 0, 255);
oParagraph.AddText("Spacing 1pt").SetSpacing(20);
oParagraph.AddText("Spacing -1pt").SetSpacing(-20);
oParagraph.AddText("DoubleStrikeout").SetDoubleStrikeout(true);
oParagraph.AddText("Capitals").SetCaps(true);
oParagraph.AddText("SmallCapitals").SetSmallCaps(true);
oParagraph.AddText("Position +10pt").SetPosition(20);
oParagraph.AddText("Position -10pt").SetPosition(-20);
oParagraph.AddText("Language English(Canada)").SetLanguage("en-CA");
oParagraph.AddText("Language Russia").SetLanguage("ru-RU");
oParagraph.AddText("ShadeRed").SetShd("clear", 255, 0, 0);
//------------------------------------------------------------------------------------------------------------------
// ParaPr
//------------------------------------------------------------------------------------------------------------------
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Normal paragraph");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetContextualSpacing(true);
oParagraph.AddText("ContextualSpacing is true");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndLeft(300);
oParagraph.AddText("Left indent is 15pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndRight(600);
oParagraph.AddText("Right indent is 30pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndFirstLine(100);
oParagraph.AddText("First line indent is 5pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetIndFirstLine(-100);
oParagraph.AddText("First line indent is -5pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetJc("left");
oParagraph.AddText("Paragraph align: left");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetJc("right");
oParagraph.AddText("Paragraph align: right");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetJc("center");
oParagraph.AddText("Paragraph align: center");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetJc("both");
oParagraph.AddText("Paragraph align: both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both both ");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetKeepLines(true);
oParagraph.AddText("KeepLines");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetKeepNext(true);
oParagraph.AddText("KeepNext");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetPageBreakBefore(true);
oParagraph.AddText("PageBreakBefore");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingLine(3 * 240, "auto");
oParagraph.AddText("Spacing: multiply 3");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingLine(200, "exact");
oParagraph.AddText("Spacing: exact 10pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingLine(400, "atLeast");
oParagraph.AddText("Spacing: atLeast 20pt");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingBefore(200);
oParagraph.SetSpacingAfter(0);
oParagraph.AddText("Spacing: before 10pt after 0");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetSpacingBefore(0, true);
oParagraph.SetSpacingAfter(0, true);
oParagraph.AddText("Spacing: before auto after auto");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetShd("clear", 0, 255, 0, false);
oParagraph.AddText("Shading: green");
oDocument.Push(oParagraph);
for (var nIndex = 0; nIndex < 3; ++nIndex)
{
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.AddText("Borders");
oParagraph.SetTopBorder("single", 24, 0, 255, 0, 0);
oParagraph.SetBottomBorder("single", 24, 0, 0, 255, 0);
oParagraph.SetLeftBorder("single", 48, 0, 0, 0, 255);
oParagraph.SetRightBorder("single", 48, 0, 255, 255, 0);
oParagraph.SetBetweenBorder("single", 36, 0, 255, 0, 255);
}
oParagraph = Api.CreateParagraph();
oParagraph.SetWidowControl(false);
oParagraph.AddText("Widow control is off");
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.SetTabs([1000, 1500, 3000], ["center", "left", "right"]);
oParagraph.AddText("Custom tabs (center, left, right)");
oDocument.Push(oParagraph);
var oNumbering = oDocument.CreateNumbering("bullet");
var oNumLvl;
for (var nLvl = 0; nLvl < 8; ++nLvl)
{
oNumLvl = oNumbering.GetLevel(nLvl);
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Default bullet lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
}
oNumbering = oDocument.CreateNumbering("numbered");
for (var nLvl = 0; nLvl < 8; ++nLvl)
{
oNumLvl = oNumbering.GetLevel(nLvl);
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Default numbered lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
}
oNumbering = oDocument.CreateNumbering("numbered");
for (var nLvl = 0; nLvl < 8; ++nLvl)
{
oNumLvl = oNumbering.GetLevel(nLvl);
var sFormatString = "";
for (var nTempLvl = 0; nTempLvl <= nLvl; ++nTempLvl)
sFormatString += "%" + nTempLvl + ".";
oNumLvl.SetCustomType("lowerRoman", sFormatString, "left");
oNumLvl.SetStart(nLvl + 1);
oNumLvl.SetSuff("space");
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Custom numbered lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Custom numbered lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
}
oNumbering = oDocument.CreateNumbering("bullet");
for (var nLvl = 0; nLvl < 8; ++nLvl)
{
oNumLvl = oNumbering.GetLevel(nLvl);
var sSymbolCharCode = 'a'.charCodeAt(0) + nLvl;
oNumLvl.SetTemplateType("bullet", String.fromCharCode(sSymbolCharCode));
oNumLvl.SetSuff("none");
oNumLvl.GetTextPr().SetBold(true);
oNumLvl.GetParaPr().SetJc("center");
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Template bullet lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Template bullet lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
}
//------------------------------------------------------------------------------------------------------------------
// Header - Footer
//------------------------------------------------------------------------------------------------------------------
var oSection = oDocument.GetFinalSection();
var oHeader = oSection.GetHeader("default", true);
oParagraph = oHeader.GetElement(0);
oParagraph.AddText("I'm in default header");
//------------------------------------------------------------------------------------------------------------------
// TablePr
//------------------------------------------------------------------------------------------------------------------
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetJc("left");
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetJc("center");
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetJc("right");
var oTableStyle = oDocument.GetStyle("Bordered & Lined - Accent 3");
oTable = Api.CreateTable(10, 10);
oDocument.Push(oTable);
oTable.SetStyle(oTableStyle);
oTable = Api.CreateTable(10, 10);
oDocument.Push(oTable);
oTable.SetStyle(oTableStyle);
oTable.SetTableLook(false, false, true, true, false, true);
oTable = Api.CreateTable(10, 10);
oDocument.Push(oTable);
oTable.SetTableLook(true, true, true, true, true, true);
oTable.SetStyle(oTableStyle);
oTable.SetStyleColBandSize(2);
oTable.SetStyleRowBandSize(3);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetShd("clear", 255, 0, 0);
oTable.SetTableBorderTop("single", 32, 0, 0, 255, 0);
oTable.SetTableBorderBottom("single", 64, 0, 0, 255, 0);
oTable.SetTableBorderLeft("single", 32, 0, 0, 0, 255);
oTable.SetTableBorderRight("single", 16, 0, 0, 0, 255);
oTable.SetTableBorderInsideV("single", 32, 0, 0, 0, 0);
oTable.SetTableBorderInsideH("single", 32, 0, 0, 0, 0);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetTableInd(1000);
oTable.SetTableCellMarginBottom(200);
oTable.SetTableCellMarginTop(100);
oTable.SetTableCellMarginLeft(400);
oTable.SetTableCellMarginRight(200);
oTable.SetCellSpacing(200);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetWidth("auto");
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetWidth("twips", 3000);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetWidth("percent", 100);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetTableLayout("fixed");
//------------------------------------------------------------------------------------------------------------------
// TableRowPr
//------------------------------------------------------------------------------------------------------------------
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTableRow = oTable.GetRow(0);
oTableRow.SetHeight("auto");
oTableRow = oTable.GetRow(1);
oTableRow.SetHeight("atLeast", 1000);
oTableRow = oTable.GetRow(2);
oTableRow.SetHeight("atLeast", 2000);
oTable = Api.CreateTable(10, 40);
oDocument.Push(oTable);
oTable.SetStyle(oTableStyle);
oTable.GetRow(0).SetTableHeader(true);
oTable.GetRow(1).SetTableHeader(true);
//------------------------------------------------------------------------------------------------------------------
// TableCellPr
//------------------------------------------------------------------------------------------------------------------
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTableRow = oTable.GetRow(0);
oCell = oTableRow.GetCell(1);
oCell.SetShd("clear", 255, 0, 0);
oTableRow = oTable.GetRow(1);
oCell = oTableRow.GetCell(0);
oCell.SetCellBorderTop("single", 32, 0, 0, 255, 0);
oCell.SetCellBorderBottom("single", 64, 0, 0, 255, 0);
oCell.SetCellBorderLeft("single", 32, 0, 0, 0, 255);
oCell.SetCellBorderRight("single", 16, 0, 0, 0, 255);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTableRow = oTable.GetRow(0);
oCell = oTableRow.GetCell(1);
oCell.SetCellMarginBottom(300);
oCell.SetCellMarginLeft(100);
oCell.SetCellMarginRight(null);
oCell.SetCellMarginTop(400);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTableRow = oTable.GetRow(0);
oCell = oTableRow.GetCell(0);
oCell.SetWidth("twips", 2000);
oTableRow = oTable.GetRow(1);
oTableRow.SetHeight("atLeast", 2000);
oCell = oTableRow.GetCell(0);
oCell.SetVerticalAlign("top");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Top");
oCell = oTableRow.GetCell(1);
oCell.SetVerticalAlign("center");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Center");
oCell = oTableRow.GetCell(2);
oCell.SetVerticalAlign("bottom");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Bottom");
oTableRow = oTable.GetRow(2);
oCell = oTableRow.GetCell(0);
oCell.SetTextDirection("lrtb");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("left to right");
oParagraph.AddLineBreak();
oParagraph.AddText("top to bottom");
oCell = oTableRow.GetCell(1);
oCell.SetTextDirection("tbrl");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("top to bottom");
oParagraph.AddLineBreak();
oParagraph.AddText("right to left");
oCell = oTableRow.GetCell(2);
oCell.SetTextDirection("btlr");
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("bottom to top");
oParagraph.AddLineBreak();
oParagraph.AddText("left to right");
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTableRow = oTable.GetRow(0);
oCell = oTableRow.GetCell(0);
oCell.SetNoWrap(false);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap");
oCell = oTableRow.GetCell(1);
oCell.SetNoWrap(true);
oCellContent = oCell.GetContent();
oParagraph = oCellContent.GetElement(0);
oParagraph.AddText("No wrap No wrap No wrap No wrap No wrap No wrap No wrap");
//------------------------------------------------------------------------------------------------------------------
// TableStylePr
//------------------------------------------------------------------------------------------------------------------
oTableStyle = oDocument.CreateStyle("CustomTableStyle", "table");
oTable = Api.CreateTable(10, 10);
oDocument.Push(oTable);
oTable.SetStyle(oTableStyle);
oTable.SetTableLook(true, true, true, true, true, true);
oTableStyle.GetConditionalTableStyle("topLeftCell").GetTableCellPr().SetShd("clear", 255, 0, 0);
oTableStyle.GetConditionalTableStyle("topRightCell").GetTableCellPr().SetShd("clear", 0, 255, 0);
oTableStyle.GetConditionalTableStyle("bottomLeftCell").GetTableCellPr().SetShd("clear", 0, 0, 255);
oTableStyle.GetConditionalTableStyle("bottomRightCell").GetTableCellPr().SetShd("clear", 255, 255, 0);
oTableStyle.GetConditionalTableStyle("firstRow").GetParaPr().SetShd("clear", 255, 0, 0);
oTableStyle.GetConditionalTableStyle("lastRow").GetParaPr().SetShd("clear", 0, 255, 0);
oTableStyle.GetConditionalTableStyle("firstColumn").GetParaPr().SetShd("clear", 0, 0, 255);
oTableStyle.GetConditionalTableStyle("lastColumn").GetParaPr().SetShd("clear", 255, 255, 0);
oTableStyle.GetConditionalTableStyle("bandedRow").GetTableRowPr().SetHeight("atLeast", 500);
oTableStyle.GetConditionalTableStyle("bandedRowEven").GetTableRowPr().SetHeight("atLeast", 1000);
oTableStyle.GetConditionalTableStyle("bandedColumn").GetTextPr().SetBold(true);
oTableStyle.GetConditionalTableStyle("bandedColumnEven").GetTextPr().SetItalic(true);
oTableStyle.GetConditionalTableStyle("wholeTable").GetParaPr().SetSpacingAfter(0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderLeft("single", 4, 0, 0, 0, 0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderRight("single", 4, 0, 0, 0, 0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderTop("single", 4, 0, 0, 0, 0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderBottom("single", 4, 0, 0, 0, 0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderInsideV("single", 4, 0, 0, 0, 0);
oTableStyle.GetConditionalTableStyle("wholeTable").GetTablePr().SetTableBorderInsideH("single", 4, 0, 0, 0, 0);
//------------------------------------------------------------------------------------------------------------------
// Add/Remove/Merge column and row
//------------------------------------------------------------------------------------------------------------------
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.GetRow(0).GetCell(0).GetContent().GetElement(0).AddText("Start rows count " + oTable.GetRowsCount() + " start columns count 3");
oTableRow = oTable.AddRow(oTable.GetRow(1).GetCell(0), true);
oTableRow.GetCell(0).GetContent().GetElement(0).AddText("A new row in position 1");
oTableRow = oTable.AddRow();
oTableRow.GetCell(0).GetContent().GetElement(0).AddText("A new row without position");
oTableRow.GetCell(oTableRow.GetCellsCount() - 1).GetContent().GetElement(0).AddText("Last cell before add column");
oTable.AddColumn();
oTableRow.GetCell(oTableRow.GetCellsCount() - 1).GetContent().GetElement(0).AddText("Last cell after add column");
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oParagraph.AddText("Remove row 1, remove column 3");
oTable = Api.CreateTable(5, 5);
oDocument.Push(oTable);
for (var nRowIndex = 0; nRowIndex < 5; ++nRowIndex)
{
for (var nCellIndex = 0; nCellIndex < 5; ++nCellIndex)
{
oTable.GetRow(nRowIndex).GetCell(nCellIndex).GetContent().GetElement(0).AddText("" + nRowIndex + nCellIndex);
}
}
oTable.RemoveRow(oTable.GetRow(1).GetCell(0));
oTable.RemoveColumn(oTable.GetRow(0).GetCell(3));
oTable = Api.CreateTable(5, 5);
oDocument.Push(oTable);
oCell = oTable.MergeCells([oTable.GetRow(1).GetCell(1), oTable.GetRow(1).GetCell(2), oTable.GetRow(2).GetCell(1), oTable.GetRow(2).GetCell(2)]);
oCell.GetContent().GetElement(0).AddText("Merged cell");
//------------------------------------------------------------------------------------------------------------------
// Create/Add/Change Run
//------------------------------------------------------------------------------------------------------------------
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oRun = Api.CreateRun();
oRun.AddText("Before add count : ");
oRun.AddTabStop();
oRun.AddText("" + oParagraph.GetElementsCount());
oRun.AddLineBreak();
oParagraph.AddElement(oRun);
oRun.AddText("After add count : ");
oRun.AddTabStop();
oRun.AddText("" + oParagraph.GetElementsCount());
//------------------------------------------------------------------------------------------------------------------
// Drawings
//------------------------------------------------------------------------------------------------------------------
oParagraph = Api.CreateParagraph();
oDocument.Push(oParagraph);
oDrawing = Api.CreateImage("", 1000 * 635, 2000 * 635);
oParagraph.AddDrawing(oDrawing);
oDrawing = Api.CreateImage("", 1000 * 635, 2000 * 635);
oParagraph.AddDrawing(oDrawing);
oDrawing.SetSize(2000 * 635, 2000 * 635);
oDrawing = Api.CreateImage("", 1000 * 635, 2000 * 635);
oParagraph.AddDrawing(oDrawing);
oDrawing.SetWrappingStyle("square");
oDrawing = Api.CreateImage("", 1000 * 635, 2000 * 635);
oParagraph.AddDrawing(oDrawing);
oDrawing.SetWrappingStyle("inFront");
oDrawing.SetHorAlign("margin", "right");
oDrawing.SetVerAlign("page", "bottom");
oDrawing = Api.CreateImage("", 1000 * 635, 2000 * 635);
oParagraph.AddDrawing(oDrawing);
oDrawing.SetWrappingStyle("inFront");
oDrawing.SetHorPosition("page", 36000 * 30);
oDrawing.SetVerPosition("page", 36000 * 60);
//------------------------------------------------------------------------------------------------------------------
oLD.Recalculate_FromStart();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment