|
LibreOffice Module avmedia (master) 1
|
#include <mediaitem.hxx>
Classes | |
| struct | Impl |
Public Member Functions | |
| MediaItem (sal_uInt16 i_nWhich=0, AVMediaSetMask nMaskSet=AVMediaSetMask::NONE) | |
| MediaItem (const MediaItem &rMediaItem) | |
| virtual | ~MediaItem () override |
| virtual bool | operator== (const SfxPoolItem &) const override |
| virtual MediaItem * | Clone (SfxItemPool *pPool=nullptr) const override |
| virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreUnit, MapUnit ePresUnit, OUString &rText, const IntlWrapper &rIntl) const override |
| virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
| virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
| bool | merge (const MediaItem &rMediaItem) |
| AVMediaSetMask | getMaskSet () const |
| bool | setState (MediaState eState) |
| MediaState | getState () const |
| bool | setDuration (double fDuration) |
| double | getDuration () const |
| bool | setTime (double fTime) |
| double | getTime () const |
| bool | setLoop (bool bLoop) |
| bool | isLoop () const |
| bool | setMute (bool bMute) |
| bool | isMute () const |
| bool | setVolumeDB (sal_Int16 nDB) |
| sal_Int16 | getVolumeDB () const |
| bool | setZoom (css::media::ZoomLevel eZoom) |
| ::css::media::ZoomLevel | getZoom () const |
| bool | setURL (const OUString &rURL, const OUString &rTempURL, const OUString &rReferer) |
| const OUString & | getURL () const |
| bool | setMimeType (const OUString &rMimeType) |
| OUString | getMimeType () const |
| bool | setGraphic (const Graphic &rGraphic) |
| const Graphic & | getGraphic () const |
| bool | setCrop (const css::text::GraphicCrop &rCrop) |
| const css::text::GraphicCrop & | getCrop () const |
| const OUString & | getTempURL () const |
| const OUString & | getReferer () const |
Public Member Functions inherited from SfxPoolItem | |
| void | AddRef (sal_uInt32 n=1) const |
| virtual | ~SfxPoolItem () |
| void | SetWhich (sal_uInt16 nId) |
| sal_uInt16 | Which () const |
| T & | StaticWhichCast (TypedWhichId< T > nId) |
| const T & | StaticWhichCast (TypedWhichId< T > nId) const |
| T * | DynamicWhichCast (TypedWhichId< T > nId) |
| const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
| virtual bool | operator== (const SfxPoolItem &) const=0 |
| bool | operator!= (const SfxPoolItem &rItem) const |
| virtual bool | operator< (const SfxPoolItem &) const |
| virtual bool | IsSortable () const |
| virtual bool | HasLookup () const |
| virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
| virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
| virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
| virtual bool | HasMetrics () const |
| virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
| virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
| virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
| std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
| std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
| sal_uInt32 | GetRefCount () const |
| SfxItemKind | GetKind () const |
| virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
| virtual boost::property_tree::ptree | dumpAsJSON () const |
| virtual bool | IsVoidItem () const |
Static Public Member Functions | |
| static SfxPoolItem * | CreateDefault () |
Private Attributes | |
| std::unique_ptr< Impl > | m_pImpl |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
| typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
| SfxPoolItem (sal_uInt16 nWhich=0) | |
| SfxPoolItem (const SfxPoolItem &rCopy) | |
Definition at line 70 of file mediaitem.hxx.
|
explicit |
Definition at line 85 of file mediaitem.cxx.
References m_pImpl.
Referenced by Clone(), and CreateDefault().
| avmedia::MediaItem::MediaItem | ( | const MediaItem & | rMediaItem | ) |
Definition at line 92 of file mediaitem.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 99 of file mediaitem.cxx.
|
overridevirtual |
|
static |
Definition at line 52 of file mediaitem.cxx.
References MediaItem().
| const text::GraphicCrop & avmedia::MediaItem::getCrop | ( | ) | const |
| double avmedia::MediaItem::getDuration | ( | ) | const |
| const Graphic & avmedia::MediaItem::getGraphic | ( | ) | const |
| AVMediaSetMask avmedia::MediaItem::getMaskSet | ( | ) | const |
Definition at line 227 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), avmedia::IMPL_LINK(), and merge().
| OUString avmedia::MediaItem::getMimeType | ( | ) | const |
Definition at line 270 of file mediaitem.cxx.
References AVMEDIA_MIMETYPE_COMMON, and m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 128 of file mediaitem.cxx.
| const OUString & avmedia::MediaItem::getReferer | ( | ) | const |
Definition at line 256 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| MediaState avmedia::MediaItem::getState | ( | ) | const |
Definition at line 306 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), avmedia::IMPL_LINK(), and merge().
| const OUString & avmedia::MediaItem::getTempURL | ( | ) | const |
Definition at line 251 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| double avmedia::MediaItem::getTime | ( | ) | const |
Definition at line 334 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), merge(), and avmedia::MediaControl::setState().
| const OUString & avmedia::MediaItem::getURL | ( | ) | const |
Definition at line 246 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), merge(), avmedia::MediaControl::setState(), and avmedia::MediaControl::UpdateURLField().
| sal_Int16 avmedia::MediaItem::getVolumeDB | ( | ) | const |
Definition at line 376 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| css::media::ZoomLevel avmedia::MediaItem::getZoom | ( | ) | const |
Definition at line 390 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| bool avmedia::MediaItem::isLoop | ( | ) | const |
Definition at line 348 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| bool avmedia::MediaItem::isMute | ( | ) | const |
Definition at line 362 of file mediaitem.cxx.
References m_pImpl.
Referenced by avmedia::priv::MediaWindowImpl::executeMediaItem(), and merge().
| bool avmedia::MediaItem::merge | ( | const MediaItem & | rMediaItem | ) |
Definition at line 185 of file mediaitem.cxx.
References CROP, DURATION, getCrop(), getDuration(), getGraphic(), getMaskSet(), getMimeType(), getReferer(), getState(), getTempURL(), getTime(), getURL(), getVolumeDB(), getZoom(), GRAPHIC, isLoop(), isMute(), LOOP, MIME_TYPE, MUTE, setCrop(), setDuration(), setGraphic(), setLoop(), setMimeType(), setMute(), setState(), setTime(), setURL(), setVolumeDB(), setZoom(), STATE, TIME, URL, VOLUMEDB, and ZOOM.
Referenced by avmedia::MediaToolBoxControl::implExecuteMediaControl(), and avmedia::MediaControl::setState().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 157 of file mediaitem.cxx.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 138 of file mediaitem.cxx.
Referenced by avmedia::MediaToolBoxControl::implExecuteMediaControl().
| bool avmedia::MediaItem::setCrop | ( | const css::text::GraphicCrop & | rCrop | ) |
| bool avmedia::MediaItem::setDuration | ( | double | fDuration | ) |
Definition at line 311 of file mediaitem.cxx.
References DURATION, and m_pImpl.
Referenced by merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setGraphic | ( | const Graphic & | rGraphic | ) |
Definition at line 275 of file mediaitem.cxx.
References GRAPHIC, and m_pImpl.
Referenced by merge().
| bool avmedia::MediaItem::setLoop | ( | bool | bLoop | ) |
Definition at line 339 of file mediaitem.cxx.
Referenced by merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setMimeType | ( | const OUString & | rMimeType | ) |
| bool avmedia::MediaItem::setMute | ( | bool | bMute | ) |
Definition at line 353 of file mediaitem.cxx.
Referenced by merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setState | ( | MediaState | eState | ) |
Definition at line 297 of file mediaitem.cxx.
References m_pImpl, and STATE.
Referenced by avmedia::IMPL_LINK(), avmedia::IMPL_LINK_NOARG(), merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setTime | ( | double | fTime | ) |
Definition at line 325 of file mediaitem.cxx.
Referenced by avmedia::IMPL_LINK_NOARG(), merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setURL | ( | const OUString & | rURL, |
| const OUString & | rTempURL, | ||
| const OUString & | rReferer | ||
| ) |
Definition at line 232 of file mediaitem.cxx.
References avmedia::GetFilename(), m_pImpl, setMimeType(), and URL.
Referenced by avmedia::IMPL_LINK(), merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setVolumeDB | ( | sal_Int16 | nDB | ) |
Definition at line 367 of file mediaitem.cxx.
References m_pImpl, and VOLUMEDB.
Referenced by avmedia::IMPL_LINK(), merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
| bool avmedia::MediaItem::setZoom | ( | css::media::ZoomLevel | eZoom | ) |
Definition at line 381 of file mediaitem.cxx.
Referenced by avmedia::IMPL_LINK(), merge(), and avmedia::priv::MediaWindowImpl::updateMediaItem().
|
private |
Definition at line 133 of file mediaitem.hxx.
Referenced by getCrop(), getDuration(), getGraphic(), getMaskSet(), getMimeType(), getReferer(), getState(), getTempURL(), getTime(), getURL(), getVolumeDB(), getZoom(), isLoop(), isMute(), operator==(), PutValue(), QueryValue(), setCrop(), setDuration(), setGraphic(), setLoop(), setMimeType(), setMute(), setState(), setTime(), setURL(), setVolumeDB(), and setZoom().