namespace com::sun::star::ui { class XSidebar; } class MouseEvent; class SdDrawDocument; class SdPage;
namespace sd { class ViewShellBase;
}
namespace sd::sidebar {
/** Base class of a menu that lets the user select from a list of templatesordesignsthatareloadedfromfiles.
*/ class MasterPagesSelector : public PanelLayout
, public sfx2::sidebar::ILayoutableWindow
{ public:
MasterPagesSelector(weld::Widget* pParent, SdDrawDocument& rDocument, ViewShellBase& rBase,
std::shared_ptr<MasterPageContainer> pContainer,
css::uno::Reference<css::ui::XSidebar> xSidebar, const OUString& rUIFileName, const OUString& rIconViewId); virtual ~MasterPagesSelector() override;
virtualvoid LateInit();
/** Make the selector empty. This method clear the value set from any entries.Overridethismethodtoaddfunctionality,especiallyto destroyobjectssetasdataitemsatthevalueset.
*/ void ClearPageSet();
void SetHelpId( const OUString& aId );
/** Mark the preview that belongs to the given index as not up-to-date anymorewithrespecttopagecontentorpreviewsize. Theimplementationofthismethodwilleithersunchronouslyor asynchronouslycallUpdatePreview(). @paramnIndex Indexintothevaluesetcontrolthatisusedfordisplayingthe previews.
*/ void InvalidatePreview (const SdPage* pPage);
/** Assign the given master page to all slides of the document. @parampMasterPage Themasterpagetoassigntoallslides.
*/ void AssignMasterPageToAllSlides (SdPage* pMasterPage);
/** Assign the given master page to all slides that are selected in a slidesorterthatisdisplayedintheleforcenterpane.Whenboth panesdisplayaslidesorterthentheoneinthecenterpaneis used.
*/ void AssignMasterPageToSelectedSlides (SdPage* pMasterPage);
sal_Int32 GetIndexForToken (MasterPageContainer::Token aToken) const; typedef ::std::vector<MasterPageContainer::Token> ItemList; void UpdateItemList (::std::unique_ptr<ItemList> && pList); void Clear(); /** Invalidate the specified item so that on the next Fill() this item isupdated.
*/ void InvalidateItem (MasterPageContainer::Token aToken);
// For every item in the ValueSet we store its associated token. This // allows a faster access and easier change tracking.
ItemList maCurrentItemList; typedef ::std::map<MasterPageContainer::Token,sal_Int32> TokenToValueSetIndex;
TokenToValueSetIndex maTokenToValueSetIndex;
ItemList maLockedMasterPages; /** Lock master pages in the given list and release locks that were previouslyacquired.
*/ void UpdateLocks (const ItemList& rItemList);
void Fill(); virtualvoid Fill (ItemList& rItemList) = 0;
/** Give derived classes the opportunity to provide their own context menu.Iftheydothentheyprobablyhavetoprovidetheirown Execute()andGetState()methodsaswell.
*/ virtual OUString GetContextMenuUIFile() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.