1 // OpenDoc.cpp : implementation file
7 #include "OptionsDef.h"
8 #include "OptionsMgr.h"
13 IMPLEMENT_DYNCREATE(COpenDoc, CDocument)
19 , m_cTableDelimiter(',')
21 , m_bTableAllowNewLinesInQuotes(false)
23 PackingInfo infoUnpacker;
24 PrediffingInfo infoPrediffer;
25 m_strUnpackerPipeline = GetOptionsMgr()->GetBool(OPT_PLUGINS_ENABLED) ? infoUnpacker.GetPluginPipeline() : _T("");
26 m_strPredifferPipeline = GetOptionsMgr()->GetBool(OPT_PLUGINS_ENABLED) ? infoPrediffer.GetPluginPipeline() : _T("");
29 BOOL COpenDoc::OnNewDocument()
31 if (!CDocument::OnNewDocument())
40 void COpenDoc::RefreshOptions()
42 m_bRecurse = GetOptionsMgr()->GetBool(OPT_CMP_INCLUDE_SUBDIRS);
43 UpdateAllViews(nullptr);
47 * @brief Update any resources necessary after a GUI language change
49 void COpenDoc::UpdateResources()
51 SetTitle(_("Select Files or Folders").c_str());
52 POSITION pos = GetFirstViewPosition();
53 COpenView *pView = static_cast<COpenView *>(GetNextView(pos));
54 pView->UpdateResources();
57 BEGIN_MESSAGE_MAP(COpenDoc, CDocument)