// Introduce frame/controller/model to each other inlinevoid
ConnectFrameControllerModel(const css::uno::Reference<css::frame::XFrame>& xFrame, const css::uno::Reference<css::frame::XController2>& xController, const css::uno::Reference<css::frame::XModel>& xModel)
{ auto xModifiable = xModel.query<css::util::XModifiable2>(); bool bOldModifiable = false; if (xModifiable)
{
bOldModifiable = xModifiable->isSetModifiedEnabled(); if (bOldModifiable)
xModifiable->disableSetModified();
}
ConnectModelController(xModel, xController); if (xFrame)
xFrame->setComponent(xController->getComponentWindow(), xController); // creates the view and menu // for correct menu creation the initialized component must be already set into the frame
xController->attachFrame(xFrame); if (xModifiable && bOldModifiable)
xModifiable->enableSetModified();
}
}
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.