private void GetPrintInfo() { //if (_findPrint == null || !_findPrint.found) if (!_findPrint.Found) return; _found = true; MatchValues matchValues = _findPrint.matchValues; //MatchValuesInfos matchValues = _findPrint.MatchValues; _name = matchValues.Name; _print = _findPrintManager.PrintManager[_name]; if (_print == null) { _findPrintType = FindPrintType.PrintType1; if (matchValues.Attributes.ContainsKey("title")) _title = matchValues.Attributes["title"]; if (matchValues.Attributes.ContainsKey("directory")) _directory = matchValues.Attributes["directory"]; string directory; if (_directory != null) directory = _directory; else directory = _findPrintManager.DefaultPrintDirectory; _print = new Print(_name, _title, GetDirectory(directory)); } else _findPrintType = FindPrintType.PrintType2; PrintIssue printIssue = _print.NewPrintIssue(); if (_date != null) { printIssue.Date = _date; printIssue.DateType = _dateType; printIssue.Special = _special; printIssue.SpecialText = _specialText; if (_number != null) { if (printIssue.CanCalculatePrintNumber()) { int calculatedPrintNumber = printIssue.Print.GetPrintNumber((Date)printIssue.Date); if (calculatedPrintNumber != (int)_number) { if (__traceWarning) Trace.WriteLine("warning number in title {0} is different than calculated number {1}", (int)_number, calculatedPrintNumber); } } // utilise de préférence le no du titre plutot que celui calculé // sauf pour le monde ex : "Le Monde week-end + Magazine + 3 suppléments du samedi 30 aout 2014" le 3 n'est pas le bon numéro printIssue.PrintNumber = (int)_number; } } else if (_number != null) { printIssue.PrintNumber = (int)_number; printIssue.Special = _special; } printIssue.TrySetValues(_findPrint.matchValues.GetAllValues()); _label = printIssue.Label; _file = zPath.Combine(_print.Directory, zPath.GetFileNameWithoutExtension(printIssue.GetFilename())); }
public PrintIssueLeVifExpress(Print print, Date date) : base(print, date) { }
public PrintIssueLeVifExpress(Print print, int printNumber) : base(print, printNumber) { }
public PrintIssueLExpress(Print print, int printNumber) : base(print, printNumber) { }
public PrintIssueLeVifExpress(Print print) : base(print) { }
public PrintIssueLExpress(Print print) : base(print) { }
public PrintIssueLExpress(Print print, Date date) : base(print, date) { }
public PrintIssue(Print print, Date date) { _print = print; _date = date; }
public PrintIssue(Print print, int printNumber) { _print = print; _printNumber = printNumber; }
public PrintIssueLeMonde(Print print, int printNumber) : base(print, printNumber) { }
public PrintIssue(Print print) { _print = print; }
public PrintIssueLeMonde(Print print, Date date) : base(print, date) { }
public PrintIssueLeMonde(Print print) : base(print) { }
public PrintIssueLeParisien(Print print, int printNumber) : base(print, printNumber) { }
public PrintIssueLeParisien(Print print, Date date) : base(print, date) { }
public PrintIssueLeParisien(Print print) : base(print) { }