/** @short enable/disable special features ofaloadrequest.
@desrcSuchfeaturesmustoutcomewithout anyspecialparameters. Tomakeenabling/disablingof featuresveryeasy(e.g.atthectorof thisclass)thesevaluesmustbecombinable asflags.Thatmeans:itsvaluesmustbein rangeof[2^n]!
*/ enumclass LoadEnvFeatures
{ /// we should be informed, if no feature is enabled :-)
NONE = 0, /// enable using of UI elements during loading (means progress, interaction handler etcpp.)
WorkWithUI = 1, /// enable loading of resources, which are not related to a target frame! (see concept of ContentHandler)
AllowContentHandler = 2
}; namespace o3tl { template<> struct typed_flags<LoadEnvFeatures> : is_typed_flags<LoadEnvFeatures, 0x3> {};
}
namespace framework {
class QuietInteraction;
/** @short implements general mechanism for loading documents.
@descrAninstanceofthisclasscanbeusedinsidetheAPIcalls XComponentLoader::loadComponentFromURL()and XDispatch::dispatch().
*/ class LoadEnv
{ public: /** @short classify a content.
Andlastbutnotleastacontentcanbe"notvalid"ingeneral.
*/ enum EContentType
{ /// identifies a content, which seems to be invalid in general
E_UNSUPPORTED_CONTENT, /// identifies a content, which can be used with a ContentHandler and is not related to a target frame
E_CAN_BE_HANDLED, /// identifies a content, which can be loaded into a target frame
E_CAN_BE_LOADED, /// special mode for non real loading, In such case the model is given directly!
E_CAN_BE_SET
};
private: mutable osl::Mutex m_mutex;
/** @short reference to a uno service manager, which must be used tocreatedonneededservicesondemand.
*/
css::uno::Reference< css::uno::XComponentContext > m_xContext;
/** @short points to the frame, which uses this LoadEnv object andmustbeusedtostarttargetsearchthere.
*/
css::uno::Reference< css::frame::XFrame > m_xBaseFrame;
/** @short points to the frame, into which the new component was loaded.
/** @short because the mediadescriptor contains the complete URL ... but somefunctionalityneedthestructuredversion,weholdittwice:-(.
*/
css::util::URL m_aURL;
/** @short enable/disable special features of a load request. */
LoadEnvFeatures m_eFeature;
/** @short classify the content, which should be loaded by this instance. */
EContentType m_eContentType;
/** @short it indicates, that the member m_xTargetFrame was new created for this loadrequestandmustbeclosedincaseloading(nothandling!) operationfailed.Thedefaultvalueissal_False!
*/ bool m_bCloseFrameOnError;
/** @short it indicates, that the old document (which was located inside m_xBaseFrame incombinationwiththem_sTargetvalue"_self")wassuspended. Normallyitwillbereplacedbythenewloadeddocument.Butincase loading(nothandling!)failed,itmustbereactivated. Thedefaultvalueissal_False!
*/ bool m_bReactivateControllerOnError;
/** @short it holds one (!) asynchronous used contenthandler or frameloader alive,tilltheasynchronousoperationwillbefinished.
*/
css::uno::Reference< css::uno::XInterface > m_xAsynchronousJob;
/** @short holds the information about the finished load process.
/** @short If we already brought it to front; do not do that again (theusercouldswitchelsewhereafterthefirstactivation, andweshouldn'tnagthemagain).
*/ bool m_bFocusedAndToFront = false;
/** @short holds an XActionLock on the internal used task member.
/** TODO document me ... */
css::uno::Reference< css::lang::XComponent > getTargetComponent() const;
public:
/** @short checks if the specified content can be handled by a ContentHandleronlyandisnotrelatedtoatargetframe, orifitcanbeloadedbyaFrameLoaderintoatargetframe as"visible"component.
/** TODO document me ... */ staticvoid initializeUIDefaults( const css::uno::Reference< css::uno::XComponentContext >& i_rxContext,
utl::MediaDescriptor& io_lMediaDescriptor, constbool _bUIMode,
rtl::Reference<QuietInteraction>* o_ppQuiteInteraction
);
/** TODO document me ... */ void impl_setResult(bool bResult);
/** TODO document me ... */
css::uno::Reference< css::uno::XInterface > impl_searchLoader();
/** @short it means; show the frame, bring it to front, mightsettherighticonetcpp.incaseloadingwas successfullyorreactivateamightexistingolddocumentor closetheframeifitwascreatedbeforeincaseloadingfailed.
/** @short try to determine the used application module ofthisloadrequestandapplyrightpositionandsize forthisdocumentwindow...hopefullybeforeweshowit.-)
*/ void impl_applyPersistentWindowState(const css::uno::Reference< css::awt::XWindow >& xWindow);
/** @short determine if it's allowed to open new document frames.
*/ bool impl_furtherDocsAllowed();
/** @short jumps to the requested bookmark inside a given document.
*/ void impl_jumpToMark(const css::uno::Reference< css::frame::XFrame >& xFrame, const css::util::URL& aURL );
/** @short determine if this loader has an interactive dialog shown before loadingthedocument.
*/ bool impl_filterHasInteractiveDialog() const;
/** @short checks if this should bring to front and get focus on load, accordingtousersettingsandtotheloadflags.
*/ bool shouldFocusAndToFront() const;
};
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.21Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-01)
¤
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.