LibreOffice Module unotools (master) 1
Namespaces | Functions
historyoptions.cxx File Reference
#include <unotools/historyoptions.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <optional>
Include dependency graph for historyoptions.cxx:

Go to the source code of this file.

Namespaces

namespace  SvtHistoryOptions
 Collect information about history features.
 

Functions

static uno::Reference< container::XNameAccess > GetConfig ()
 
static uno::Reference< container::XNameAccess > GetCommonXCU ()
 
static uno::Reference< container::XNameAccess > GetListAccess (uno::Reference< container::XNameAccess > const &xCfg, EHistoryType eHistory)
 
static void TruncateList (const uno::Reference< container::XNameAccess > &xCfg, const uno::Reference< container::XNameAccess > &xList, sal_uInt32 nSize)
 
static void PrependItem (const uno::Reference< container::XNameAccess > &xCfg, uno::Reference< container::XNameContainer > &xList, std::u16string_view sURL)
 
static void MoveItemToUnpinned (const uno::Reference< container::XNameAccess > &xCfg, uno::Reference< container::XNameContainer > &xOrderList, uno::Reference< container::XNameContainer > &xItemList, std::u16string_view sURL)
 
static sal_uInt32 GetCapacity (const uno::Reference< container::XNameAccess > &xCommonXCU, EHistoryType eHistory)
 
void SvtHistoryOptions::Clear (EHistoryType eHistory)
 Clear complete specified list. More...
 
std::vector< HistoryItem > SvtHistoryOptions::GetList (EHistoryType eHistory)
 
void SvtHistoryOptions::AppendItem (EHistoryType eHistory, const OUString &sURL, const OUString &sFilter, const OUString &sTitle, const std::optional< OUString > &sThumbnail, ::std::optional< bool > const oIsReadOnly)
 
void SvtHistoryOptions::DeleteItem (EHistoryType eHistory, const OUString &sURL)
 Delete item from the specified list. More...
 
void SvtHistoryOptions::TogglePinItem (EHistoryType eHistory, const OUString &sURL)
 

Function Documentation

◆ GetCapacity()

static sal_uInt32 GetCapacity ( const uno::Reference< container::XNameAccess > &  xCommonXCU,
EHistoryType  eHistory 
)
static

Definition at line 563 of file historyoptions.cxx.

References HelpBookmarks, and PickList.

Referenced by SvtHistoryOptions::AppendItem(), and SvtHistoryOptions::GetList().

◆ GetCommonXCU()

static uno::Reference< container::XNameAccess > GetCommonXCU ( )
static

◆ GetConfig()

static uno::Reference< container::XNameAccess > GetConfig ( )
static

◆ GetListAccess()

static uno::Reference< container::XNameAccess > GetListAccess ( uno::Reference< container::XNameAccess > const &  xCfg,
EHistoryType  eHistory 
)
static

◆ MoveItemToUnpinned()

static void MoveItemToUnpinned ( const uno::Reference< container::XNameAccess > &  xCfg,
uno::Reference< container::XNameContainer > &  xOrderList,
uno::Reference< container::XNameContainer > &  xItemList,
std::u16string_view  sURL 
)
static

◆ PrependItem()

static void PrependItem ( const uno::Reference< container::XNameAccess > &  xCfg,
uno::Reference< container::XNameContainer > &  xList,
std::u16string_view  sURL 
)
static

◆ TruncateList()

static void TruncateList ( const uno::Reference< container::XNameAccess > &  xCfg,
const uno::Reference< container::XNameAccess > &  xList,
sal_uInt32  nSize 
)
static