Daniel's XL Toolbox NG
XLToolbox.Export.ViewModels.SingleExportSettingsViewModel Class Reference

View model for the Settings class. More...

Inheritance diagram for XLToolbox.Export.ViewModels.SingleExportSettingsViewModel:
Collaboration diagram for XLToolbox.Export.ViewModels.SingleExportSettingsViewModel:

Public Member Functions

 SingleExportSettingsViewModel ()
 
 SingleExportSettingsViewModel (SingleExportSettings singleExportSettings)
 
- Public Member Functions inherited from XLToolbox.Export.ViewModels.SettingsViewModelBase
 SettingsViewModelBase (Bovender.Mvvm.Models.ProcessModel exporter)
 
override object RevealModelObject ()
 

Protected Member Functions

override void DoExport ()
 Determins the suggested target directory and sends the ChooseFileNameMessage. More...
 
override bool CanExport ()
 
override bool BeforeStartProcess ()
 
override void UpdateProcessMessageContent (ProcessMessageContent processMessageContent)
 
override void DoEditPresets ()
 
override void SaveExportPath ()
 Saves the current export path for reuse. More...
 
- Protected Member Functions inherited from XLToolbox.Export.ViewModels.SettingsViewModelBase
string LoadExportPath ()
 Returns the default path for export; this is either the path that was previously used to export from the current workbook, or the last used path, or the path of the current workbook, or the path for 'My Documents'. More...
 

Properties

double Width [get, set]
 Gets or sets the desired width of the exported graphic. More...
 
double Height [get, set]
 Gets or sets the desired width of the exported graphic. More...
 
EnumProvider< UnitUnits [get]
 Returns an enumerable list of available units and provides a bindable converter for a WPF ComboBox. More...
 
bool PreserveAspect [get, set]
 Preserve aspect ratio if width or height are changed. More...
 
double MegaPixels [get]
 Gets the number of megapixels for the resulting image. More...
 
double MegaBytes [get]
 
string ImageSize [get]
 
bool MegaPixelsWarning [get]
 
DelegatingCommand ResetDimensionsCommand [get]
 Resets the Height and Width properties to the dimensions of the current selection in Excel. More...
 
DelegatingCommand ChooseFileNameCommand [get]
 Causes the ChooseFileNameMessage to be sent. Upon confirmation of this message, the Export process will be started. More...
 
Message< FileNameMessageContentChooseFileNameMessage [get]
 
- Properties inherited from XLToolbox.Export.ViewModels.SettingsViewModelBase
PresetViewModel SelectedPreset [get, set]
 
PresetsRepositoryViewModel PresetViewModels [get]
 
string FileName [get, set]
 
Settings Settings [get, set]
 
DelegatingCommand EditPresetsCommand [get]
 
DelegatingCommand ExportCommand [get]
 
Message< ViewModelMessageContentEditPresetsMessage [get]
 
static NLog.Logger Logger [get]
 

Detailed Description

View model for the Settings class.

Constructor & Destructor Documentation

◆ SingleExportSettingsViewModel() [1/2]

XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.SingleExportSettingsViewModel ( )
inline

◆ SingleExportSettingsViewModel() [2/2]

XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.SingleExportSettingsViewModel ( SingleExportSettings  singleExportSettings)
inline

Member Function Documentation

◆ BeforeStartProcess()

override bool XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.BeforeStartProcess ( )
inlineprotected

◆ CanExport()

override bool XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.CanExport ( )
inlineprotectedvirtual

◆ DoEditPresets()

override void XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.DoEditPresets ( )
inlineprotectedvirtual

◆ DoExport()

override void XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.DoExport ( )
inlineprotectedvirtual

Determins the suggested target directory and sends the ChooseFileNameMessage.

Implements XLToolbox.Export.ViewModels.SettingsViewModelBase.

◆ SaveExportPath()

override void XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.SaveExportPath ( )
inlineprotectedvirtual

Saves the current export path for reuse.

Reimplemented from XLToolbox.Export.ViewModels.SettingsViewModelBase.

◆ UpdateProcessMessageContent()

override void XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.UpdateProcessMessageContent ( ProcessMessageContent  processMessageContent)
inlineprotected

Property Documentation

◆ ChooseFileNameCommand

DelegatingCommand XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.ChooseFileNameCommand
get

Causes the ChooseFileNameMessage to be sent. Upon confirmation of this message, the Export process will be started.

◆ ChooseFileNameMessage

Message<FileNameMessageContent> XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.ChooseFileNameMessage
get

◆ Height

double XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.Height
getset

Gets or sets the desired width of the exported graphic.

◆ ImageSize

string XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.ImageSize
get

◆ MegaBytes

double XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.MegaBytes
get

◆ MegaPixels

double XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.MegaPixels
get

Gets the number of megapixels for the resulting image.

◆ MegaPixelsWarning

bool XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.MegaPixelsWarning
get

◆ PreserveAspect

bool XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.PreserveAspect
getset

Preserve aspect ratio if width or height are changed.

◆ ResetDimensionsCommand

DelegatingCommand XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.ResetDimensionsCommand
get

Resets the Height and Width properties to the dimensions of the current selection in Excel.

◆ Units

EnumProvider<Unit> XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.Units
get

Returns an enumerable list of available units and provides a bindable converter for a WPF ComboBox.

◆ Width

double XLToolbox.Export.ViewModels.SingleExportSettingsViewModel.Width
getset

Gets or sets the desired width of the exported graphic.


The documentation for this class was generated from the following file: