Example #1
0
 public Component(ucss.uno.XComponentContext ctx, uno.Any[] args) {
     m_args = new Any[args.Length + 1];
     m_args[0] = new Any(typeof(ucss.uno.XComponentContext), ctx);
     for (int i = 0; i < args.Length; i ++) {
         m_args[i+1] = args[i];
     }
 }
Example #2
0
 public Component(ucss.uno.XComponentContext ctx) {
     m_args = new Any[] {new Any(typeof(ucss.uno.XComponentContext), ctx)};
     m_A2 = 0;
     m_A4 = 0;
 }
Example #3
0
 void SetText(OOo.sheet.XSpreadsheet f, int x, int y, string text, int size)
 {
     SetText(f, x, y, text);
     SetStyleTitle(f, x, y, size);
 }
Example #4
0
 void SetText(OOo.sheet.XSpreadsheet f, int x, int y, string text)
 {
     OOo.table.XCell cc = f.getCellByPosition(x, y);
     cc.setFormula(text);
 }
Example #5
0
 void SetStyleTitle(OOo.sheet.XSpreadsheet f, int x, int y, int FontSize)
 {
     OOo.table.XCellRange xRange = (OOo.table.XCellRange)f.getCellByPosition(x, y);
     OOo.beans.XPropertySet options = (OOo.beans.XPropertySet)xRange;
     options.setPropertyValue("CharHeight", new uno.Any((Single)FontSize));
 }
Example #6
0
        int infoAnsw(OOo.sheet.XSpreadsheet f, int stroka, string find)
        {
            oprosnikElem x = new oprosnikElem();
            int nAnsw = 0;
            for (int i = 0; i < res.selectedOprosnik.elements.Count; i++)
            {
                if (res.selectedOprosnik.elements[i].question == find)
                {
                    x = res.selectedOprosnik.elements[i];
                    nAnsw = i;
                    break;
                }
            }

            for (int i = 0; i < x.answers.Count; i++)
            {
                SetText(f, 0, stroka, x.answers[i]);

                float temp = 0;
                foreach (var it in res.testers)
                {
                    if (it.answers[nAnsw].SelectedAnswers[i] == true) temp++;
                }
                SetText(f, 1, stroka, temp.ToString());
                if (res.testers.Count != 0) temp = temp * 100 / res.testers.Count;
                SetText(f, 2, stroka, temp.ToString());
                stroka++;
            }

            return stroka;
        }