]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.cpp
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / PDFOptions.cpp
index 94896f562b3692dcbb55ece886a441579070b75f..307c9b169f05c89e8a4e4748f1b2e64b90e83fd0 100644 (file)
 #include <sstream>
 #include <string>
 
-namespace lyx {
+using namespace std;
+using namespace lyx::support;
 
+namespace lyx {
 
-using std::ostream;
-using std::ostringstream;
-using std::string;
 
 const string PDFOptions::pagemode_fullscreen("FullScreen");
 
@@ -125,7 +124,7 @@ void PDFOptions::writeLaTeX(odocstream & os, bool hyper_required) const
        if (!pagemode.empty())
                opt += "pdfpagemode=" + pagemode + ',';
        
-       opt = support::rtrim(opt,",");
+       opt = rtrim(opt,",");
        opt += "]\n {hyperref}\n";
 
        // load the pdftitle etc. as hypersetup, otherwise you'll get
@@ -143,7 +142,7 @@ void PDFOptions::writeLaTeX(odocstream & os, bool hyper_required) const
                hyperset += "\n ";
                hyperset += quoted_options_get();
        }
-       hyperset = support::rtrim(hyperset,",");
+       hyperset = rtrim(hyperset,",");
        if (!hyperset.empty())
                opt += "\\hypersetup{" + hyperset + "}\n ";