|
LibreOffice Module svx (master) 1
|
#include <sal/config.h>#include <sot/storage.hxx>#include <unotools/streamwrap.hxx>#include <comphelper/processfactory.hxx>#include <comphelper/string.hxx>#include <ucbhelper/content.hxx>#include <com/sun/star/ucb/ContentCreationException.hpp>#include <tools/urlobj.hxx>#include <vcl/graphicfilter.hxx>#include <svl/itempool.hxx>#include <sfx2/docfile.hxx>#include <vcl/svapp.hxx>#include <vcl/window.hxx>#include <svx/svdpage.hxx>#include <svx/dialmgr.hxx>#include <svx/svdograf.hxx>#include <svx/fmmodel.hxx>#include <svx/unomodel.hxx>#include "codec.hxx"#include <svx/strings.hrc>#include <svx/galtheme.hxx>#include <svx/galmisc.hxx>#include <osl/diagnose.h>#include <com/sun/star/awt/XProgressMonitor.hpp>#include <com/sun/star/ucb/TransferInfo.hpp>#include <com/sun/star/ucb/NameClash.hpp>#include <memory>Go to the source code of this file.
Functions | |
| GalleryGraphicImportRet | GalleryGraphicImport (const INetURLObject &rURL, Graphic &rGraphic, OUString &rFilterName) |
| bool | GallerySvDrawImport (SvStream &rIStm, SdrModel &rModel) |
| bool | CreateIMapGraphic (const FmFormModel &rModel, Graphic &rGraphic, ImageMap &rImageMap) |
| OUString | GetReducedString (const INetURLObject &rURL, sal_Int32 nMaxLen) |
| OUString | GetSvDrawStreamNameFromURL (const INetURLObject &rSvDrawObjURL) |
| bool | FileExists (const INetURLObject &rURL) |
| bool | CreateDir (const INetURLObject &rURL) |
| bool | CopyFile (const INetURLObject &rSrcURL, const INetURLObject &rDstURL) |
| bool | KillFile (const INetURLObject &rURL) |
| INetURLObject | ImplGetURL (const GalleryObject *pObject) |
| bool CopyFile | ( | const INetURLObject & | rSrcURL, |
| const INetURLObject & | rDstURL | ||
| ) |
Definition at line 261 of file galmisc.cxx.
References ucbhelper::Content::executeCommand(), INetURLObject::GetLastName(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), and INetURLObject::NONE.
Referenced by GalleryFileStorage::updateTheme().
| bool CreateDir | ( | const INetURLObject & | rURL | ) |
Definition at line 229 of file galmisc.cxx.
References FileExists(), INetURLObject::GetLastName(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), ucbhelper::Content::insertNewContent(), INetURLObject::NONE, and INetURLObject::removeSegment().
Referenced by GalleryFileStorage::implCreateUniqueURL(), and GalleryFileStorage::implWrite().
| bool CreateIMapGraphic | ( | const FmFormModel & | rModel, |
| Graphic & | rGraphic, | ||
| ImageMap & | rImageMap | ||
| ) |
Definition at line 120 of file galmisc.cxx.
References SdrObjUserData::GetId(), SdrObjUserData::GetInventor(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdrObject::GetUserData(), SdrObject::GetUserDataCount(), i, ID_IMAPINFO, nCount, and SgaImap.
Referenced by SgaObjectSvDraw::CreateThumb(), and GalleryTheme::GetGraphic().
| bool FileExists | ( | const INetURLObject & | rURL | ) |
Definition at line 201 of file galmisc.cxx.
References INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), INetURLObject::GetProtocol(), and INetURLObject::NONE.
Referenced by CreateDir(), and KillFile().
| GalleryGraphicImportRet GalleryGraphicImport | ( | const INetURLObject & | rURL, |
| Graphic & | rGraphic, | ||
| OUString & | rFilterName | ||
| ) |
Definition at line 51 of file galmisc.cxx.
References SfxMedium::Download(), GraphicFilter::GetGraphicFilter(), GraphicFilter::GetImportFormatName(), SfxMedium::GetInStream(), INetURLObject::GetMainURL(), GRFILTER_FORMAT_DONTKNOW, IMPORT_FILE, IMPORT_NONE, GraphicFilter::ImportGraphic(), and INetURLObject::NONE.
Referenced by GalleryTheme::Actualize(), GalleryTheme::GetGraphic(), GalleryTheme::InsertURL(), and SgaObjectBmp::SgaObjectBmp().
Definition at line 76 of file galmisc.cxx.
References GallerySvDrawImport(), SdrModel::GetItemPool(), SdrModel::GetPageCount(), GalleryCodec::IsCoded(), nVersion, GalleryCodec::Read(), SvStream::Seek(), SfxItemPool::SetDefaultMetric(), and SvxDrawingLayerImport().
Referenced by GallerySvDrawImport(), GalleryFileStorage::readModel(), GalleryFileStorage::readModelStream(), and SgaObjectSvDraw::SgaObjectSvDraw().
| OUString GetReducedString | ( | const INetURLObject & | rURL, |
| sal_Int32 | nMaxLen | ||
| ) |
Definition at line 154 of file galmisc.cxx.
References aName, INetURLObject::getFSysPath(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), and INetURLObject::Unambiguous.
| OUString GetSvDrawStreamNameFromURL | ( | const INetURLObject & | rSvDrawObjURL | ) |
Definition at line 188 of file galmisc.cxx.
References INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), comphelper::string::getTokenCount(), and INetURLObject::NONE.
Referenced by GalleryFileStorage::insertModel(), GalleryFileStorage::insertModelStream(), GalleryFileStorage::readModel(), GalleryFileStorage::readModelStream(), GalleryFileStorage::updateSvDrawObject(), and GalleryFileStorage::writeGalleryTheme().
| INetURLObject ImplGetURL | ( | const GalleryObject * | pObject | ) |
Definition at line 553 of file galmisc.cxx.
Referenced by GalleryTheme::GetGraphic(), GalleryTheme::GetURL(), GalleryFileStorage::readModel(), and GalleryFileStorage::readModelStream().
| bool KillFile | ( | const INetURLObject & | rURL | ) |
Definition at line 287 of file galmisc.cxx.
References ucbhelper::Content::executeCommand(), FileExists(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), and INetURLObject::NONE.
Referenced by Gallery::ImplLoadSubDirs(), GalleryFileStorage::removeObject(), GalleryFileStorageEntry::removeTheme(), and GalleryFileStorage::updateTheme().