X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormShowFile.C;h=d348e1273a39c816c0ba1b4e675641d15ab7cf3a;hb=b2652e0fe6e4b1c38c692d894d7b21beb301fd4a;hp=9067ebb401ae05b888a860835d88bee44877da8f;hpb=a97c4f51c3763ec213ecf84b4badec0bba8c0f60;p=lyx.git diff --git a/src/frontends/xforms/FormShowFile.C b/src/frontends/xforms/FormShowFile.C index 9067ebb401..d348e1273a 100644 --- a/src/frontends/xforms/FormShowFile.C +++ b/src/frontends/xforms/FormShowFile.C @@ -1,26 +1,26 @@ /** * \file FormShowFile.C - * Copyright 2001 The LyX Team. - * See the file COPYING. + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author Herbert Voss, voss@perce.de + * \author Herbert Voss + * + * Full author contact details are available in file CREDITS. */ #include -#ifdef __GNUG__ -#pragma implementation -#endif #include "xformsBC.h" #include "ControlShowFile.h" #include "FormShowFile.h" #include "forms/form_browser.h" #include "gettext.h" -#include FORMS_H_LOCATION +#include "lyx_forms.h" + -FormShowFile::FormShowFile(ControlShowFile & c) - : FormCB(c, string()) +FormShowFile::FormShowFile(Dialog & parent) + : FormController(parent, _("Show File")) {} @@ -28,9 +28,12 @@ void FormShowFile::update() { fl_hide_object(dialog_->button_update); fl_clear_browser(dialog_->browser); + // courier medium fl_set_browser_fontstyle(dialog_->browser,FL_FIXED_STYLE); - fl_set_form_title(dialog_->form, controller().getFileName().c_str()); + + string const title = controller().getFileName(); + setTitle(title); string const contents = controller().getFileContents(); if (contents.empty())