24#include <com/sun/star/uno/Reference.h>
33class XCommandEnvironment;
Representation of a template or layout file.
TemplateEntry(OUString sTitle, OUString sPath)
This class scans the template folders for impress templates.
State GatherFolderList()
Collect all available top-level folders in an ordered list which can then be processed by ScanFolder(...
State ScanEntry()
Scan one entry.
css::uno::Reference< css::ucb::XCommandEnvironment > mxEntryEnvironment
State
The current state determines which step will be executed next by RunNextStep().
@ INITIALIZE_FOLDER_SCANNING
::ucbhelper::Content maFolderContent
virtual ~TemplateScanner()
The destructor deletes any remaining entries of the local list of templates.
std::unique_ptr< FolderDescriptorList > mpFolderDescriptors
TemplateScanner()
Create a new template scanner and prepare but do not execute the scanning.
virtual bool HasNextStep() override
Implementation of the AsynchronousTask interface method.
const TemplateEntry * GetLastAddedEntry() const
Return the TemplateDir object that was last added to mpTemplateEntries.
State InitializeFolderScanning()
Initialize the scanning of folders.
css::uno::Reference< css::ucb::XContent > mxTemplateRoot
Set of state variables used by the methods InitializeFolderScanning(), GatherFolderList(),...
State GetTemplateRoot()
Obtain the root folder of the template folder hierarchy.
css::uno::Reference< css::sdbc::XResultSet > mxFolderResultSet
State InitializeEntryScanning()
Initialize the scanning of entries of a top-level folder.
State ScanFolder()
From the list of top-level folders collected by GatherFolderList() the one with highest priority is p...
virtual void RunNextStep() override
Implementation of the AsynchronousTask interface method.
css::uno::Reference< css::sdbc::XResultSet > mxEntryResultSet
css::uno::Reference< css::ucb::XCommandEnvironment > mxFolderEnvironment
::std::vector< std::unique_ptr< TemplateEntry > > mpTemplateEntries