23#include <com/sun/star/frame/XComponentLoader.hpp>
24#include <com/sun/star/frame/XFrame.hpp>
25#include <com/sun/star/uno/XComponentContext.hpp>
26#include <com/sun/star/util/URL.hpp>
59class QuietInteraction;
104 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
209 LoadEnv(css::uno::Reference< css::uno::XComponentContext > xContext);
218 static css::uno::Reference< css::lang::XComponent >
loadComponentFromURL(
const css::uno::Reference< css::frame::XComponentLoader >& xLoader,
219 const css::uno::Reference< css::uno::XComponentContext >& xContext,
220 const OUString& sURL ,
221 const OUString& sTarget,
223 const css::uno::Sequence< css::beans::PropertyValue >& lArgs );
273 const css::uno::Sequence< css::beans::PropertyValue >& lMediaDescriptor,
274 const css::uno::Reference< css::frame::XFrame >& xBaseFrame ,
275 const OUString& sTarget ,
276 sal_Int32 nSearchFlags ,
336 const css::uno::Sequence< css::beans::PropertyValue >& lMediaDescriptor);
340 const css::uno::Reference< css::uno::XComponentContext >& i_rxContext,
535 void impl_jumpToMark(
const css::uno::Reference< css::frame::XFrame >& xFrame,
536 const css::util::URL& aURL );
implements a guard, which can use the interface <type scope="css::document">XActionLockable</type>.
implements general mechanism for loading documents.
bool impl_isFrameAlreadyUsedForLoading(const css::uno::Reference< css::frame::XFrame > &xFrame) const
checks whether a frame is already used for another load request or not.
bool impl_handleContent()
tries to use ContentHandler objects for loading.
rtl::Reference< QuietInteraction > m_pQuietInteraction
bool m_bCloseFrameOnError
it indicates, that the member m_xTargetFrame was new created for this load request and must be closed...
void impl_setResult(bool bResult)
TODO document me ...
bool m_bLoaded
holds the information about the finished load process.
css::uno::Reference< css::frame::XFrame > impl_searchAlreadyLoaded()
checks if the specified content is already loaded.
bool shouldFocusAndToFront() const
checks if this should bring to front and get focus on load, according to user settings and to the loa...
void impl_reactForLoadingState()
it means; show the frame, bring it to front, might set the right icon etcpp.
bool impl_loadContent()
tries to use FrameLoader objects for loading.
void startLoading(const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &lMediaDescriptor, const css::uno::Reference< css::frame::XFrame > &xBaseFrame, const OUString &sTarget, sal_Int32 nSearchFlags, LoadEnvFeatures eFeature=LoadEnvFeatures::NONE)
start loading of a resource
css::uno::Reference< css::frame::XFrame > m_xBaseFrame
points to the frame, which uses this LoadEnv object and must be used to start target search there.
css::uno::Reference< css::uno::XInterface > m_xAsynchronousJob
it holds one (!) asynchronous used contenthandler or frameloader alive, till the asynchronous operati...
void impl_makeFrameWindowVisible(const css::uno::Reference< css::awt::XWindow > &xWindow, bool bForceToFront)
because showing of a frame is needed more than once... it's implemented as a separate method .
static void initializeUIDefaults(const css::uno::Reference< css::uno::XComponentContext > &i_rxContext, utl::MediaDescriptor &io_lMediaDescriptor, const bool _bUIMode, rtl::Reference< QuietInteraction > *o_ppQuiteInteraction)
TODO document me ...
css::uno::Reference< css::frame::XFrame > impl_searchRecycleTarget()
search for any target frame, which seems to be usable for this load request.
void impl_jumpToMark(const css::uno::Reference< css::frame::XFrame > &xFrame, const css::util::URL &aURL)
jumps to the requested bookmark inside a given document.
css::uno::Reference< css::uno::XInterface > impl_searchLoader()
TODO document me ...
void impl_detectTypeAndFilter()
tries to detect the type and the filter of the specified content.
bool impl_filterHasInteractiveDialog() const
determine if this loader has an interactive dialog shown before loading the document.
sal_Int32 m_nSearchFlags
if m_sTarget is not a special one, this flags regulate searching of a suitable one.
EContentType m_eContentType
classify the content, which should be loaded by this instance.
bool waitWhileLoading(sal_uInt32 nTimeout=0)
wait for an already running load request (started by calling startLoading() before).
css::uno::Reference< css::frame::XFrame > m_xTargetFrame
points to the frame, into which the new component was loaded.
bool impl_furtherDocsAllowed()
determine if it's allowed to open new document frames.
LoadEnvFeatures m_eFeature
enable/disable special features of a load request.
~LoadEnv()
deinitialize an instance of this class in the right way.
css::uno::Reference< css::uno::XComponentContext > m_xContext
reference to a uno service manager, which must be used to created on needed services on demand.
static EContentType classifyContent(const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &lMediaDescriptor)
checks if the specified content can be handled by a ContentHandler only and is not related to a targe...
void impl_applyPersistentWindowState(const css::uno::Reference< css::awt::XWindow > &xWindow)
try to determine the used application module of this load request and apply right position and size f...
OUString m_sTarget
contains the name of the target, in which the specified resource of this instance must be loaded.
bool m_bReactivateControllerOnError
it indicates, that the old document (which was located inside m_xBaseFrame in combination with the m_...
EContentType
classify a content.
@ E_CAN_BE_SET
special mode for non real loading, In such case the model is given directly!
@ E_CAN_BE_LOADED
identifies a content, which can be loaded into a target frame
@ E_UNSUPPORTED_CONTENT
identifies a content, which seems to be invalid in general
@ E_CAN_BE_HANDLED
identifies a content, which can be used with a ContentHandler and is not related to a target frame
utl::MediaDescriptor m_lMediaDescriptor
contains all needed information about the resource, which should be loaded.
static css::uno::Reference< css::lang::XComponent > loadComponentFromURL(const css::uno::Reference< css::frame::XComponentLoader > &xLoader, const css::uno::Reference< css::uno::XComponentContext > &xContext, const OUString &sURL, const OUString &sTarget, sal_Int32 nFlags, const css::uno::Sequence< css::beans::PropertyValue > &lArgs)
LoadEnv(css::uno::Reference< css::uno::XComponentContext > xContext)
initialize a new instance of this load environment.
ActionLockGuard m_aTargetLock
holds an XActionLock on the internal used task member.
bool m_bFocusedAndToFront
If we already brought it to front; do not do that again (the user could switch elsewhere after the fi...
css::uno::Reference< css::lang::XComponent > getTargetComponent() const
TODO document me ...
css::util::URL m_aURL
because the mediadescriptor contains the complete URL ... but some functionality need the structured ...
LoadEnvFeatures
enable/disable special features of a load request.
@ WorkWithUI
enable using of UI elements during loading (means progress, interaction handler etcpp....
@ NONE
we should be informed, if no feature is enabled :-)
@ AllowContentHandler
enable loading of resources, which are not related to a target frame! (see concept of ContentHandler)