"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bCoreCiter.cpp" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bCoreCiter.cpp  (cb2bib-1.9.9):c2bCoreCiter.cpp  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
* *
* The LyX pipe procedure in citeToLyXPipe has been adapted from Tellico * The LyX pipe procedure in citeToLyXPipe has been adapted from Tellico
* (Tellico (C) 2003-2005 by Robby Stephenson) * (Tellico (C) 2003-2005 by Robby Stephenson)
***************************************************************************/ ***************************************************************************/
#include "c2bCoreCiter.h" #include "c2bCoreCiter.h"
#include "c2bFileDialog.h" #include "c2bFileDialog.h"
#include <settings.h> #include <settings.h>
skipping to change at line 30 skipping to change at line 30
// fifo to lyx // fifo to lyx
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
c2bCoreCiter::c2bCoreCiter(QWidget* parentw) : QObject(parentw) c2bCoreCiter::c2bCoreCiter(QWidget* parentw) : QObject(parentw)
{ {
_parentWP = parentw; _parentWP = parentw;
_settingsP = settings::instance(); _settingsP = settings::instance();
_settingsP->setDefaultValue("c2bCoreCiter/LyXPipe", QDir::cleanPath(QDir::ho _settingsP->setDefaultValue("c2bCoreCiter/LyXPipe",
mePath() + QDir::separator() + ".lyx/lyxpipe.in")); QDir::cleanPath(QDir::homePath() + QDir::separat
or() + ".lyx/lyxpipe.in"));
_lyxpipe = _settingsP->value("c2bCoreCiter/LyXPipe").toString(); _lyxpipe = _settingsP->value("c2bCoreCiter/LyXPipe").toString();
} }
c2bCoreCiter::~c2bCoreCiter() c2bCoreCiter::~c2bCoreCiter() {}
{}
void c2bCoreCiter::cite(const QStringList& keys) const void c2bCoreCiter::cite(const QStringList& keys) const
{ {
QByteArray pipe = QFile::encodeName(_lyxpipe); QByteArray pipe = QFile::encodeName(_lyxpipe);
if (QFile::exists(pipe)) if (QFile::exists(pipe))
citeToLyXPipe(keys); citeToLyXPipe(keys);
else else
citeToClipboard(keys); citeToClipboard(keys);
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)