/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
if (officecfg::Office::Impress::MultiPaneGUI::NotesPane::Visible::ImpressView::get().value_or( false))
AddActiveMainView(FrameworkHelper::msImpressViewURL); if (officecfg::Office::Impress::MultiPaneGUI::NotesPane::Visible::OutlineView::get().value_or( false))
AddActiveMainView(FrameworkHelper::msOutlineViewURL); if (officecfg::Office::Impress::MultiPaneGUI::NotesPane::Visible::NotesView::get().value_or( false))
AddActiveMainView(FrameworkHelper::msNotesViewURL);
}
void SAL_CALL NotesPaneModule::notifyConfigurationChange(const ConfigurationChangeEvent& rEvent)
{ if (!mxConfigurationController.is()) return;
// the late init is hacked here since there's EventMultiplexer isn't available when the // NotesPaneModule is constructed if (!mbListeningEventMultiplexer)
{
mpViewShellBase->GetEventMultiplexer()->AddEventListener(
LINK(this, NotesPaneModule, EventMultiplexerListener));
mbListeningEventMultiplexer = true;
}
void SAL_CALL NotesPaneModule::disposing(const lang::EventObject& rEvent)
{ if (mxConfigurationController.is() && rEvent.Source == mxConfigurationController)
{
SaveResourceState(); // Without the configuration controller this class can do nothing.
mxConfigurationController = nullptr;
dispose();
}
}
// do not record the state of bottom pane when in master edit modes if (!IsMasterView({ mxConfigurationController->getResource(aCenterViews[0]), UNO_QUERY }))
{ if (bActivation)
{
maActiveMainViewContainer.insert(aCenterViews[0]->getResourceURL());
} else
{
maActiveMainViewContainer.erase(aCenterViews[0]->getResourceURL());
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.