LibreOffice Module avmedia (master) 1
|
#include <mediawindow.hxx>
Public Member Functions | |
MediaWindow (vcl::Window *parent, bool bInternalMediaControl) | |
virtual | ~MediaWindow () |
void | setURL (const OUString &rURL, const OUString &rReferer) |
const OUString & | getURL () const |
bool | isValid () const |
Size | getPreferredSize () const |
vcl::Window * | getWindow () const |
void | setPosSize (const tools::Rectangle &rNewRect) |
void | setPointer (PointerStyle aPointer) |
bool | start () |
void | updateMediaItem (MediaItem &rItem) const |
void | executeMediaItem (const MediaItem &rItem) |
void | show () |
void | hide () |
bool | isVisible () const |
virtual void | MouseMove (const MouseEvent &rMEvt) |
virtual void | MouseButtonDown (const MouseEvent &rMEvt) |
virtual void | MouseButtonUp (const MouseEvent &rMEvt) |
virtual void | KeyInput (const KeyEvent &rKEvt) |
virtual void | KeyUp (const KeyEvent &rKEvt) |
virtual void | Command (const CommandEvent &rCEvt) |
virtual sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt) |
virtual sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) |
virtual void | StartDrag (sal_Int8 nAction, const Point &rPosPixel) |
Static Public Member Functions | |
static FilterNameVector | getMediaFilters () |
static bool | executeMediaURLDialog (weld::Window *pParent, OUString &rURL, bool *const o_pbLink) |
static void | executeFormatErrorBox (weld::Window *pParent) |
static bool | isMediaURL (std::u16string_view rURL, const OUString &rReferer, bool bDeep=false, rtl::Reference< PlayerListener > xPreferredPixelSizeListener=nullptr) |
static css::uno::Reference< css::media::XPlayer > | createPlayer (const OUString &rURL, const OUString &rReferer, const OUString *pMimeType=nullptr) |
static css::uno::Reference< css::graphic::XGraphic > | grabFrame (const css::uno::Reference< css::media::XPlayer > &rPlayer, const css::uno::Reference< css::graphic::XGraphic > &rGraphic=nullptr) |
static css::uno::Reference< css::graphic::XGraphic > | grabFrame (const OUString &rURL, const OUString &rReferer, const OUString &sMimeType, rtl::Reference< PlayerListener > xPreferredPixelSizeListener) |
static void | dispatchInsertAVMedia (const css::uno::Reference< css::frame::XDispatchProvider > &, const css::awt::Size &rSize, const OUString &rURL, bool bLink) |
Private Member Functions | |
MediaWindow (const MediaWindow &)=delete | |
MediaWindow & | operator= (const MediaWindow &)=delete |
Private Attributes | |
VclPtr< priv::MediaWindowImpl > | mpImpl |
Definition at line 81 of file mediawindow.hxx.
avmedia::MediaWindow::MediaWindow | ( | vcl::Window * | parent, |
bool | bInternalMediaControl | ||
) |
Definition at line 52 of file mediawindow.cxx.
|
virtual |
Definition at line 59 of file mediawindow.cxx.
References mpImpl.
|
privatedelete |
|
virtual |
Definition at line 112 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::AcceptDrop().
|
virtual |
Definition at line 107 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::Command().
|
static |
Definition at line 362 of file mediawindow.cxx.
References avmedia::priv::MediaWindowImpl::createPlayer().
Referenced by avmedia::SoundHandler::dispatchWithNotification(), and grabFrame().
|
static |
Definition at line 444 of file mediawindow.cxx.
References comphelper::InitPropertySequence(), and xDispatch.
|
virtual |
Definition at line 118 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::ExecuteDrop().
|
static |
Definition at line 299 of file mediawindow.cxx.
References AvmResId(), and Application::CreateMessageDialog().
Referenced by avmedia::IMPL_LINK().
void avmedia::MediaWindow::executeMediaItem | ( | const MediaItem & | rItem | ) |
Definition at line 157 of file mediawindow.cxx.
References mpImpl.
|
static |
o_pbLink | if not 0, this is an "insert" dialog: display link checkbox and store its state in *o_pbLink |
Definition at line 214 of file mediawindow.cxx.
References sfx2::FileDialogHelper::AddFilter(), any, aTypes, aURL, AvmResId(), aWildcard, ERRCODE_NONE, sfx2::FileDialogHelper::Execute(), sfx2::FileDialogHelper::GetFilePicker(), getMediaFilters(), sfx2::FileDialogHelper::GetPath(), o3tl::getToken(), sfx2::FileDialogHelper::InsertMedia, nIndex, SAL_WARN, sfx2::FileDialogHelper::SetContext(), sfx2::FileDialogHelper::SetTitle(), and INetURLObject::Unambiguous.
Referenced by avmedia::IMPL_LINK().
|
static |
Definition at line 183 of file mediawindow.cxx.
Referenced by executeMediaURLDialog(), and isMediaURL().
Size avmedia::MediaWindow::getPreferredSize | ( | ) | const |
Definition at line 129 of file mediawindow.cxx.
References mpImpl.
const OUString & avmedia::MediaWindow::getURL | ( | ) | const |
Definition at line 71 of file mediawindow.cxx.
References mpImpl.
vcl::Window * avmedia::MediaWindow::getWindow | ( | ) | const |
Definition at line 177 of file mediawindow.cxx.
References mpImpl.
|
static |
Referenced by grabFrame().
|
static |
Definition at line 416 of file mediawindow.cxx.
References createPlayer(), and grabFrame().
void avmedia::MediaWindow::hide | ( | ) |
Definition at line 167 of file mediawindow.cxx.
References mpImpl.
|
static |
Definition at line 306 of file mediawindow.cxx.
References aURL, avmedia::priv::MediaWindowImpl::createPlayer(), getMediaFilters(), o3tl::getToken(), nIndex, and INetURLObject::Unambiguous.
Referenced by avmedia::SoundHandler::detect(), and avmedia::IMPL_LINK().
bool avmedia::MediaWindow::isValid | ( | ) | const |
Definition at line 77 of file mediawindow.cxx.
References mpImpl.
bool avmedia::MediaWindow::isVisible | ( | ) | const |
Definition at line 172 of file mediawindow.cxx.
References mpImpl.
|
virtual |
Definition at line 98 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::KeyInput().
|
virtual |
Definition at line 103 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::KeyUp().
|
virtual |
Definition at line 88 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::MouseButtonDown().
|
virtual |
Definition at line 93 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::MouseButtonUp().
|
virtual |
Definition at line 83 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::MouseMove().
|
privatedelete |
void avmedia::MediaWindow::setPointer | ( | PointerStyle | aPointer | ) |
Definition at line 141 of file mediawindow.cxx.
References mpImpl.
void avmedia::MediaWindow::setPosSize | ( | const tools::Rectangle & | rNewRect | ) |
Definition at line 135 of file mediawindow.cxx.
References mpImpl.
void avmedia::MediaWindow::setURL | ( | const OUString & | rURL, |
const OUString & | rReferer | ||
) |
Definition at line 65 of file mediawindow.cxx.
References mpImpl.
void avmedia::MediaWindow::show | ( | ) |
Definition at line 162 of file mediawindow.cxx.
References mpImpl.
bool avmedia::MediaWindow::start | ( | ) |
Definition at line 147 of file mediawindow.cxx.
References mpImpl.
Definition at line 124 of file mediawindow.cxx.
Referenced by avmedia::priv::MediaWindowImpl::StartDrag().
void avmedia::MediaWindow::updateMediaItem | ( | MediaItem & | rItem | ) | const |
Definition at line 152 of file mediawindow.cxx.
References mpImpl.
|
private |
Definition at line 150 of file mediawindow.hxx.
Referenced by executeMediaItem(), getPreferredSize(), getURL(), getWindow(), hide(), isValid(), isVisible(), MediaWindow(), setPointer(), setPosSize(), setURL(), show(), start(), updateMediaItem(), and ~MediaWindow().