Exemple #1
0
        public LibreOfficeTests()
        {
            _serviceManager = new ComObject("com.sun.star.ServiceManager");

            _desktop = _serviceManager.createInstance("com.sun.star.frame.Desktop");

            var prop1 = _serviceManager.Bridge_GetStruct("com.sun.star.beans.PropertyValue");

            prop1.Name  = "Hidden";
            prop1.Value = true;

            var prop2 = _serviceManager.Bridge_GetStruct("com.sun.star.beans.PropertyValue");

            prop2.Name  = "ShowTrackedChanges";
            prop2.Value = false;

            _loadProps = new object[]
            {
                prop1,
                prop2
            };
        }