LibreOffice Module sd (master) 1
|
#include <sdgrffilter.hxx>
Public Member Functions | |
SdGRFFilter (SfxMedium &rMedium, ::sd::DrawDocShell &rDocShell) | |
virtual | ~SdGRFFilter () override |
bool | Import () |
bool | Export () override |
Public Member Functions inherited from SdFilter | |
SdFilter (SfxMedium &rMedium, ::sd::DrawDocShell &rDocShell) | |
virtual | ~SdFilter () |
bool | IsDraw () const |
virtual bool | Export ()=0 |
Static Public Member Functions | |
static void | HandleGraphicFilterError (ErrCode nFilterError, ErrCode nStreamError) |
static void | InsertSdrGrafObj (Graphic pGraphic, SdPage *pPage) |
Additional Inherited Members | |
Protected Member Functions inherited from SdFilter | |
void | CreateStatusIndicator () |
Protected Attributes inherited from SdFilter | |
css::uno::Reference< css::frame::XModel > | mxModel |
css::uno::Reference< css::task::XStatusIndicator > | mxStatusIndicator |
SfxMedium & | mrMedium |
::sd::DrawDocShell & | mrDocShell |
SdDrawDocument & | mrDocument |
bool | mbIsDraw: 1 |
Definition at line 26 of file sdgrffilter.hxx.
SdGRFFilter::SdGRFFilter | ( | SfxMedium & | rMedium, |
::sd::DrawDocShell & | rDocShell | ||
) |
Definition at line 97 of file sdgrffilter.cxx.
|
overridevirtual |
Definition at line 102 of file sdgrffilter.cxx.
|
overridevirtual |
Implements SdFilter.
Definition at line 224 of file sdgrffilter.cxx.
References SfxItemSet::Get(), sd::DrawViewShell::GetActualPage(), SfxViewShell::GetController(), GraphicFilter::GetExportFormatNumberForTypeName(), GraphicFilter::GetExportFormatShortName(), SfxMedium::GetFilter(), GraphicFilter::GetGraphicFilter(), SfxMedium::GetItemSet(), SfxItemSet::GetItemState(), GraphicFilter::GetLastError(), sd::DrawViewShell::GetPageKind(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPage(), SdrPage::getUnoPage(), sd::DrawDocShell::GetViewShell(), sd::ViewShell::GetViewShellBase(), GRFILTER_FORMAT_NOTFOUND, HandleGraphicFilterError(), Handout, SdFilter::mrDocShell, SdFilter::mrDocument, SdFilter::mrMedium, nCount, rSet, Standard, TransformItems(), and u.
Definition at line 106 of file sdgrffilter.cxx.
References Application::CreateMessageDialog(), ERRCODE_GRFILTER_FORMATERROR, ERRCODE_GRFILTER_IOERROR, ERRCODE_GRFILTER_OPENERROR, ERRCODE_GRFILTER_TOOBIG, ERRCODE_GRFILTER_VERSIONERROR, ERRCODE_IO_GENERAL, ERRCODE_NONE, ErrorHandler::HandleError(), and SdResId().
Referenced by sd::FuInsertGraphic::DoExecute(), Export(), and Import().
bool SdGRFFilter::Import | ( | ) |
Definition at line 141 of file sdgrffilter.cxx.
References Animation::Count(), SdDrawDocument::CreateFirstPages(), SdDrawDocument::DuplicatePage(), Animation::Get(), Graphic::GetAnimation(), SfxMedium::GetFilter(), Graphic::GetGfxLink(), GraphicFilter::GetGraphicFilter(), GraphicFilter::GetImportFormatNumberForTypeName(), SfxMedium::GetInStream(), GraphicFilter::GetLastError(), INetURLObject::GetMainURL(), SdrModel::GetPageCount(), SdDrawDocument::GetSdPage(), GfxLink::GetType(), SfxMedium::GetURLObject(), HandleGraphicFilterError(), i, GraphicFilter::ImportGraphic(), InsertSdrGrafObj(), Graphic::IsAnimated(), AnimationFrame::maBitmapEx, SdFilter::mrDocument, SdFilter::mrMedium, INetURLObject::NONE, and Standard.
Referenced by sd::DrawDocShell::ConvertFrom().
Definition at line 186 of file sdgrffilter.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), SdrPage::GetLeftBorder(), SdrPage::GetLowerBorder(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), SdrPage::GetRightBorder(), SdrPage::getSdrModelFromSdrPage(), SdrPage::GetSize(), SdrPage::GetUpperBorder(), Size::Height(), FmFormPage::InsertObject(), OutputDevice::LogicToLogic(), Size::setHeight(), Size::setWidth(), Point::setX(), Point::setY(), and Size::Width().
Referenced by Import().