LibreOffice Module sfx2 (master) 1
|
Public Member Functions | |
SfxPickListImpl (SfxApplication &rApp) | |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Static Private Member Functions | |
static void | AddDocumentToPickList (const SfxObjectShell *pDocShell) |
Adds the given document to the pick list (recent documents) if it satisfies certain requirements, e.g. More... | |
Definition at line 48 of file sfxpicklist.cxx.
SfxPickListImpl::SfxPickListImpl | ( | SfxApplication & | rApp | ) |
Definition at line 151 of file sfxpicklist.cxx.
References SfxListener::StartListening().
|
staticprivate |
Adds the given document to the pick list (recent documents) if it satisfies certain requirements, e.g.
being writable. Check implementation for requirement details.
Definition at line 62 of file sfxpicklist.cxx.
References aBuffer, Application::AddToRecentDocumentList(), SvtHistoryOptions::AppendItem(), aURL, comphelper::Base64::encode(), SfxObjectShell::GetCreateMode(), SvMemoryStream::GetData(), SfxMedium::GetFilter(), SfxViewFrame::GetFirst(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxMedium::GetOrigURL(), SfxObjectShell::GetPreviewBitmap(), SfxObjectShell::GetSharedFileURL(), SfxObjectShell::GetTitle(), SfxObjectShell::HasName(), comphelper::LibreOfficeKit::isActive(), SfxObjectShell::IsAvoidRecentDocs(), SfxObjectShell::IsDocShared(), BitmapEx::IsEmpty(), Application::IsHeadlessModeEnabled(), SfxObjectShell::IsModified(), SfxMedium::IsOriginallyLoadedReadOnly(), SfxMedium::IsUpdatePickList(), INetURLObject::NONE, SFX_TITLE_PICKLIST, STANDARD, SvStream::Tell(), and vcl::PngImageWriter::write().
Referenced by Notify().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 156 of file sfxpicklist.cxx.
References AddDocumentToPickList(), CloseDoc, CreateDoc, SfxObjectShell::EnableSetModified(), SfxObjectShell::getDocProperties(), SfxOpenUrlHint::GetDocumentURL(), SfxEventHint::GetEventId(), SfxObjectShell::GetMedium(), SfxEventHint::GetObjShell(), INetURLHistory::GetOrCreate(), SfxMedium::GetOrigURL(), DateTime::GetUNODateTime(), SfxObjectShell::IsEnableSetModified(), now, OpenDoc, INetURLHistory::PutUrl(), SaveAsDoc, SaveAsDocDone, SaveDocDone, SaveToDocDone, and DateTime::SYSTEM.