https://bugs.documentfoundation.org/show_bug.cgi?id=152248
Bug ID: 152248
Summary: LibreOffice window size bug after using
XClosable.close or XDesktop.terminate on C#
Product: LibreOffice
Version: 7.4.3.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: sdk
Assignee: [email protected]
Reporter: [email protected]
Description:
LibreOffice and SDK 7.4.3
This example for LibreOffice Writer:
using unoidl.com.sun.star.lang;
using unoidl.com.sun.star.uno;
using unoidl.com.sun.star.frame;
using unoidl.com.sun.star.util;
using unoidl.com.sun.star.beans;
namespace LibreOffice
{
internal class Program
{
static void Main(string[] args)
{
XComponentContext m_xContext = uno.util.Bootstrap.bootstrap();
XMultiServiceFactory mxMSFactory =
(XMultiServiceFactory)m_xContext.getServiceManager();
XComponentLoader aLoader = (XComponentLoader)
mxMSFactory.createInstance("com.sun.star.frame.Desktop");
PropertyValue[] arr = new PropertyValue[2];
arr[0] = new PropertyValue();
arr[0].Name = "Hidden";
arr[0].Value = new uno.Any(true);
XComponent xComponent = aLoader.loadComponentFromURL(
"private:factory/swriter", "_default", 0,
arr);
XCloseable close = (XCloseable)xComponent;
close.close(false);
XDesktop desktop = (XDesktop)aLoader;
desktop.terminate();
}
}
}
Steps to Reproduce:
1.Create .NET framework 4.8 project (.net 6 is not supported)
2.Open LibreOffice Writer as usual application
3.Set the maximum window size and close LibreOffice
4.Complete code in description
5.Open again LibreOffice Writer
Actual Results:
Window size changed
Expected Results:
Window size shoudn't changed
Reproducible: Always
User Profile Reset: Yes
Additional Info:
I noticed, that after using XClosable.close or XDesktop.terminate the config
file registrymodifications.xcu is overwritten
--
You are receiving this mail because:
You are the assignee for the bug.