LibreOffice Module sfx2 (master) 1
|
#include <opengrf.hxx>
Public Member Functions | |
SvxOpenGraphicDialog (const OUString &rTitle, weld::Window *pPreferredParent) | |
SvxOpenGraphicDialog (const OUString &rTitle, weld::Window *pPreferredParent, sal_Int16 nDialogType) | |
~SvxOpenGraphicDialog () | |
ErrCode | Execute () |
void | SetPath (const OUString &rPath, bool bLinkState) |
OUString | GetPath () const |
ErrCode | GetGraphic (Graphic &) const |
void | EnableLink (bool) |
void | AsLink (bool) |
bool | IsAsLink () const |
OUString | GetCurrentFilter () const |
void | SetCurrentFilter (const OUString &) |
OUString const & | GetDetectedFilter () const |
void | SetDetectedFilter (const OUString &) |
css::uno::Reference< css::ui::dialogs::XFilePickerControlAccess > const & | GetFilePickerControlAccess () const |
Private Member Functions | |
SvxOpenGraphicDialog (const SvxOpenGraphicDialog &)=delete | |
SvxOpenGraphicDialog & | operator= (const SvxOpenGraphicDialog &)=delete |
Private Attributes | |
const std::unique_ptr< SvxOpenGrf_Impl > | mpImpl |
Definition at line 34 of file opengrf.hxx.
SvxOpenGraphicDialog::SvxOpenGraphicDialog | ( | const OUString & | rTitle, |
weld::Window * | pPreferredParent | ||
) |
Definition at line 85 of file opengrf.cxx.
References sfx2::FileDialogHelper::InsertImage, and mpImpl.
SvxOpenGraphicDialog::SvxOpenGraphicDialog | ( | const OUString & | rTitle, |
weld::Window * | pPreferredParent, | ||
sal_Int16 | nDialogType | ||
) |
Definition at line 92 of file opengrf.cxx.
References sfx2::FileDialogHelper::InsertImage, and mpImpl.
SvxOpenGraphicDialog::~SvxOpenGraphicDialog | ( | ) |
Definition at line 100 of file opengrf.cxx.
|
privatedelete |
void SvxOpenGraphicDialog::AsLink | ( | bool | bState | ) |
void SvxOpenGraphicDialog::EnableLink | ( | bool | state | ) |
ErrCode SvxOpenGraphicDialog::Execute | ( | ) |
Definition at line 104 of file opengrf.cxx.
References GraphicFilter::CanImportGraphic(), Application::CreateMessageDialog(), SfxMedium::Download(), ERRCODE_NONE, GetCurrentFilter(), GraphicFilter::GetGraphicFilter(), GraphicFilter::GetImportFormatCount(), GraphicFilter::GetImportFormatName(), GraphicFilter::GetImportFormatNumber(), SfxMedium::GetInStream(), INetURLObject::GetMainURL(), GetPath(), INetURLObject::GetProtocol(), GetStandardText(), GRFILTER_FORMAT_DONTKNOW, mpImpl, INetURLObject::NONE, RET_CANCEL, RET_RETRY, SetDetectedFilter(), SfxResId(), and SvxOpenGrfErr2ResId().
Referenced by SvFileObject::Edit().
OUString SvxOpenGraphicDialog::GetCurrentFilter | ( | ) | const |
OUString const & SvxOpenGraphicDialog::GetDetectedFilter | ( | ) | const |
Reference< ui::dialogs::XFilePickerControlAccess > const & SvxOpenGraphicDialog::GetFilePickerControlAccess | ( | ) | const |
Definition at line 281 of file opengrf.cxx.
References mpImpl.
Definition at line 251 of file opengrf.cxx.
References mpImpl.
OUString SvxOpenGraphicDialog::GetPath | ( | ) | const |
Definition at line 256 of file opengrf.cxx.
References mpImpl.
Referenced by SvFileObject::Edit(), and Execute().
bool SvxOpenGraphicDialog::IsAsLink | ( | ) | const |
Definition at line 230 of file opengrf.cxx.
References Any, DBG_ASSERT, and mpImpl.
|
privatedelete |
void SvxOpenGraphicDialog::SetCurrentFilter | ( | const OUString & | rStr | ) |
void SvxOpenGraphicDialog::SetDetectedFilter | ( | const OUString & | rStr | ) |
void SvxOpenGraphicDialog::SetPath | ( | const OUString & | rPath, |
bool | bLinkState | ||
) |
Definition at line 187 of file opengrf.cxx.
References AsLink(), and mpImpl.
Referenced by SvFileObject::Edit().
|
private |
Definition at line 67 of file opengrf.hxx.
Referenced by AsLink(), EnableLink(), Execute(), GetCurrentFilter(), GetDetectedFilter(), GetFilePickerControlAccess(), GetGraphic(), GetPath(), IsAsLink(), SetCurrentFilter(), SetDetectedFilter(), SetPath(), and SvxOpenGraphicDialog().