2010-11-04 17:46:19 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2011-06-24 22:53:21 +02:00
|
|
|
* Copyright (c) 2010-2011, Tomasz Sowa
|
2010-11-04 17:46:19 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "vim.h"
|
|
|
|
#include "functions.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
|
|
{
|
|
|
|
|
|
|
|
Vim::Vim()
|
|
|
|
{
|
2010-11-21 01:19:17 +01:00
|
|
|
fun.url = L"vim";
|
2010-11-04 17:46:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Vim::Init()
|
|
|
|
{
|
2011-06-24 22:53:21 +02:00
|
|
|
// WYMeditor doesn't work on different domains by default,
|
|
|
|
// solution: http://forum.wymeditor.org/forum/viewtopic.php?f=2&t=731&p=2507#p2504
|
|
|
|
// we add one file to winix: /var/wymiframe.html
|
2010-11-04 17:46:19 +01:00
|
|
|
|
2011-06-24 22:53:21 +02:00
|
|
|
system->AddCommonFileToVar(L"winix/wymiframe.html", L"wymiframe.html");
|
2010-11-04 17:46:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Vim::HasAccess()
|
|
|
|
{
|
|
|
|
return functions->fun_emacs.HasAccess();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Vim::MakePost()
|
|
|
|
{
|
|
|
|
functions->fun_emacs.MakePost();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|