PresenterWindowManager.cxx (5d03e972) PresenterWindowManager.cxx (45b93914)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 735 unchanged lines hidden (view full) ---

744
745
746
747void PresenterWindowManager::RestoreViewMode (void)
748{
749 sal_Int32 nMode (0);
750 PresenterConfigurationAccess aConfiguration (
751 mxComponentContext,
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 735 unchanged lines hidden (view full) ---

744
745
746
747void PresenterWindowManager::RestoreViewMode (void)
748{
749 sal_Int32 nMode (0);
750 PresenterConfigurationAccess aConfiguration (
751 mxComponentContext,
752 OUString::createFromAscii("/org.openoffice.Office.PresenterScreen/"),
752 OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"),
753 PresenterConfigurationAccess::READ_ONLY);
754 aConfiguration.GetConfigurationNode(A2S("Presenter/InitialViewMode")) >>= nMode;
755 switch (nMode)
756 {
757 default:
758 case 0:
759 SetViewMode(VM_Standard);
760 break;

--- 12 unchanged lines hidden (view full) ---

773
774
775void PresenterWindowManager::StoreViewMode (const ViewMode eViewMode)
776{
777 try
778 {
779 PresenterConfigurationAccess aConfiguration (
780 mxComponentContext,
753 PresenterConfigurationAccess::READ_ONLY);
754 aConfiguration.GetConfigurationNode(A2S("Presenter/InitialViewMode")) >>= nMode;
755 switch (nMode)
756 {
757 default:
758 case 0:
759 SetViewMode(VM_Standard);
760 break;

--- 12 unchanged lines hidden (view full) ---

773
774
775void PresenterWindowManager::StoreViewMode (const ViewMode eViewMode)
776{
777 try
778 {
779 PresenterConfigurationAccess aConfiguration (
780 mxComponentContext,
781 OUString::createFromAscii("/org.openoffice.Office.PresenterScreen/"),
781 OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"),
782 PresenterConfigurationAccess::READ_WRITE);
783 aConfiguration.GoToChild(A2S("Presenter"));
784 Any aValue;
785 switch (eViewMode)
786 {
787 default:
788 case VM_Standard:
789 aValue = Any(sal_Int32(0));

--- 848 unchanged lines hidden ---
782 PresenterConfigurationAccess::READ_WRITE);
783 aConfiguration.GoToChild(A2S("Presenter"));
784 Any aValue;
785 switch (eViewMode)
786 {
787 default:
788 case VM_Standard:
789 aValue = Any(sal_Int32(0));

--- 848 unchanged lines hidden ---