]> git.lyx.org Git - lyx.git/commitdiff
The std::string mammoth path.
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 6 Oct 2003 15:43:21 +0000 (15:43 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 6 Oct 2003 15:43:21 +0000 (15:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8

721 files changed:
ChangeLog
INSTALL
boost/boost/detail/shared_count.hpp
boost/boost/mpl/aux_/template_arity_fwd.hpp
boost/boost/mpl/bool_fwd.hpp
boost/boost/shared_ptr.hpp
boost/boost/test/detail/nullstream.hpp
boost/boost/tuple/detail/tuple_basic.hpp
boost/boost/type_traits/add_reference.hpp
boost/boost/type_traits/is_array.hpp
boost/boost/type_traits/is_reference.hpp
configure.ac
po/POTFILES.in
src/BranchList.C
src/BranchList.h
src/BufferView.C
src/BufferView.h
src/BufferView_pimpl.C
src/BufferView_pimpl.h
src/Bullet.C
src/Bullet.h
src/ChangeLog
src/Chktex.C
src/Chktex.h
src/CutAndPaste.C
src/CutAndPaste.h
src/DepTable.C
src/DepTable.h
src/FloatList.C
src/FloatList.h
src/Floating.C
src/Floating.h
src/LColor.C
src/LColor.h
src/LaTeX.C
src/LaTeX.h
src/LaTeXFeatures.C
src/LaTeXFeatures.h
src/LyXAction.C
src/LyXAction.h
src/MenuBackend.C
src/MenuBackend.h
src/ParagraphParameters.C
src/ParagraphParameters.h
src/ParameterStruct.h
src/PrinterParams.C
src/PrinterParams.h
src/Sectioning.h
src/Spacing.C
src/Spacing.h
src/SpellBase.h
src/TextCache.C
src/TextCache.h
src/Thesaurus.C
src/Thesaurus.h
src/ToolbarBackend.C
src/ToolbarBackend.h
src/Variables.h
src/WordLangTuple.h
src/author.C
src/author.h
src/buffer.C
src/buffer.h
src/buffer_funcs.C
src/buffer_funcs.h
src/bufferlist.C
src/bufferlist.h
src/bufferparams.C
src/bufferparams.h
src/bufferview_funcs.C
src/bufferview_funcs.h
src/changes.C
src/chset.C
src/chset.h
src/converter.C
src/converter.h
src/counters.C
src/counters.h
src/debug.C
src/debug.h
src/encoding.C
src/encoding.h
src/errorlist.C
src/errorlist.h
src/exporter.C
src/exporter.h
src/factory.C
src/format.C
src/format.h
src/frontends/Alert.C
src/frontends/Alert.h
src/frontends/Alert_pimpl.h
src/frontends/Dialogs.C
src/frontends/Dialogs.h
src/frontends/FileDialog.h
src/frontends/LyXKeySym.h
src/frontends/LyXView.C
src/frontends/LyXView.h
src/frontends/Menubar.h
src/frontends/Painter.C
src/frontends/Painter.h
src/frontends/Toolbar.h
src/frontends/WorkArea.h
src/frontends/controllers/BCView.h
src/frontends/controllers/BCView.tmpl
src/frontends/controllers/ControlAboutlyx.C
src/frontends/controllers/ControlAboutlyx.h
src/frontends/controllers/ControlBibtex.C
src/frontends/controllers/ControlBibtex.h
src/frontends/controllers/ControlBranch.C
src/frontends/controllers/ControlBranch.h
src/frontends/controllers/ControlChanges.C
src/frontends/controllers/ControlChanges.h
src/frontends/controllers/ControlCharacter.C
src/frontends/controllers/ControlCharacter.h
src/frontends/controllers/ControlCitation.C
src/frontends/controllers/ControlCitation.h
src/frontends/controllers/ControlCommand.C
src/frontends/controllers/ControlCommand.h
src/frontends/controllers/ControlCommandBuffer.C
src/frontends/controllers/ControlCommandBuffer.h
src/frontends/controllers/ControlDocument.C
src/frontends/controllers/ControlERT.C
src/frontends/controllers/ControlERT.h
src/frontends/controllers/ControlErrorList.C
src/frontends/controllers/ControlErrorList.h
src/frontends/controllers/ControlExternal.C
src/frontends/controllers/ControlExternal.h
src/frontends/controllers/ControlFloat.C
src/frontends/controllers/ControlFloat.h
src/frontends/controllers/ControlForks.C
src/frontends/controllers/ControlForks.h
src/frontends/controllers/ControlGraphics.C
src/frontends/controllers/ControlGraphics.h
src/frontends/controllers/ControlInclude.C
src/frontends/controllers/ControlInclude.h
src/frontends/controllers/ControlLog.C
src/frontends/controllers/ControlLog.h
src/frontends/controllers/ControlMath.C
src/frontends/controllers/ControlMath.h
src/frontends/controllers/ControlMinipage.C
src/frontends/controllers/ControlMinipage.h
src/frontends/controllers/ControlNote.C
src/frontends/controllers/ControlNote.h
src/frontends/controllers/ControlParagraph.C
src/frontends/controllers/ControlParagraph.h
src/frontends/controllers/ControlPreamble.C
src/frontends/controllers/ControlPreamble.h
src/frontends/controllers/ControlPrefs.C
src/frontends/controllers/ControlPrefs.h
src/frontends/controllers/ControlPrint.C
src/frontends/controllers/ControlPrint.h
src/frontends/controllers/ControlRef.C
src/frontends/controllers/ControlRef.h
src/frontends/controllers/ControlSearch.C
src/frontends/controllers/ControlSearch.h
src/frontends/controllers/ControlSendto.C
src/frontends/controllers/ControlSendto.h
src/frontends/controllers/ControlShowFile.C
src/frontends/controllers/ControlShowFile.h
src/frontends/controllers/ControlSpellchecker.C
src/frontends/controllers/ControlSpellchecker.h
src/frontends/controllers/ControlTabular.C
src/frontends/controllers/ControlTabular.h
src/frontends/controllers/ControlTabularCreate.C
src/frontends/controllers/ControlTabularCreate.h
src/frontends/controllers/ControlTexinfo.C
src/frontends/controllers/ControlTexinfo.h
src/frontends/controllers/ControlThesaurus.C
src/frontends/controllers/ControlThesaurus.h
src/frontends/controllers/ControlToc.C
src/frontends/controllers/ControlToc.h
src/frontends/controllers/ControlVCLog.C
src/frontends/controllers/ControlVCLog.h
src/frontends/controllers/ControlWrap.C
src/frontends/controllers/ControlWrap.h
src/frontends/controllers/Dialog.C
src/frontends/controllers/Dialog.h
src/frontends/controllers/Kernel.C
src/frontends/controllers/Kernel.h
src/frontends/controllers/ViewBase.C
src/frontends/controllers/ViewBase.h
src/frontends/controllers/biblio.C
src/frontends/controllers/biblio.h
src/frontends/controllers/character.h
src/frontends/controllers/frnt_lang.C
src/frontends/controllers/frnt_lang.h
src/frontends/controllers/helper_funcs.C
src/frontends/controllers/helper_funcs.h
src/frontends/controllers/tex_helpers.C
src/frontends/controllers/tex_helpers.h
src/frontends/font_metrics.h
src/frontends/gtk/Alert_pimpl.C
src/frontends/gtk/Dialogs.C
src/frontends/gtk/FileDialog.C
src/frontends/gtk/FileDialogPrivate.C
src/frontends/gtk/FileDialogPrivate.h
src/frontends/gtk/GAboutlyx.C
src/frontends/gtk/GBC.C
src/frontends/gtk/GBC.h
src/frontends/gtk/GLyXKeySym.C
src/frontends/gtk/GLyXKeySym.h
src/frontends/gtk/GMenubar.C
src/frontends/gtk/GMenubar.h
src/frontends/gtk/GMiniBuffer.C
src/frontends/gtk/GMiniBuffer.h
src/frontends/gtk/GPainter.C
src/frontends/gtk/GPainter.h
src/frontends/gtk/GPrint.h
src/frontends/gtk/GText.C
src/frontends/gtk/GText.h
src/frontends/gtk/GToolbar.C
src/frontends/gtk/GToolbar.h
src/frontends/gtk/GView.C
src/frontends/gtk/GView.h
src/frontends/gtk/GViewBase.C
src/frontends/gtk/GViewBase.h
src/frontends/gtk/GWorkArea.C
src/frontends/gtk/GWorkArea.h
src/frontends/gtk/IdSc.C
src/frontends/gtk/IdSc.h
src/frontends/gtk/lyx_gui.C
src/frontends/gtk/xftFontLoader.C
src/frontends/gtk/xftFontLoader.h
src/frontends/gtk/xftFontMetrics.C
src/frontends/lyx_gui.h
src/frontends/qt2/Alert_pimpl.C
src/frontends/qt2/BulletsModule.C
src/frontends/qt2/Dialogs.C
src/frontends/qt2/FileDialog.C
src/frontends/qt2/FileDialog_private.C
src/frontends/qt2/FileDialog_private.h
src/frontends/qt2/QAbout.C
src/frontends/qt2/QBibtex.C
src/frontends/qt2/QBibtexDialog.C
src/frontends/qt2/QChanges.C
src/frontends/qt2/QCitation.C
src/frontends/qt2/QCitation.h
src/frontends/qt2/QCitationDialog.C
src/frontends/qt2/QCommandBuffer.C
src/frontends/qt2/QDelimiterDialog.C
src/frontends/qt2/QDelimiterDialog.h
src/frontends/qt2/QDialogView.C
src/frontends/qt2/QDialogView.h
src/frontends/qt2/QDocument.C
src/frontends/qt2/QDocument.h
src/frontends/qt2/QDocumentDialog.C
src/frontends/qt2/QDocumentDialog.h
src/frontends/qt2/QExternal.C
src/frontends/qt2/QExternal.h
src/frontends/qt2/QGraphics.C
src/frontends/qt2/QGraphics.h
src/frontends/qt2/QGraphicsDialog.C
src/frontends/qt2/QInclude.C
src/frontends/qt2/QIndex.C
src/frontends/qt2/QIndex.h
src/frontends/qt2/QLImage.C
src/frontends/qt2/QLImage.h
src/frontends/qt2/QLMenubar.C
src/frontends/qt2/QLMenubar.h
src/frontends/qt2/QLPainter.C
src/frontends/qt2/QLPainter.h
src/frontends/qt2/QLPopupMenu.C
src/frontends/qt2/QLPopupMenu.h
src/frontends/qt2/QLToolbar.C
src/frontends/qt2/QLToolbar.h
src/frontends/qt2/QLog.C
src/frontends/qt2/QLyXKeySym.C
src/frontends/qt2/QLyXKeySym.h
src/frontends/qt2/QMathDialog.C
src/frontends/qt2/QMathDialog.h
src/frontends/qt2/QMathMatrixDialog.C
src/frontends/qt2/QMinipage.C
src/frontends/qt2/QNote.C
src/frontends/qt2/QParagraph.C
src/frontends/qt2/QParagraph.h
src/frontends/qt2/QPrefs.C
src/frontends/qt2/QPrefs.h
src/frontends/qt2/QPrefsDialog.C
src/frontends/qt2/QRef.C
src/frontends/qt2/QRef.h
src/frontends/qt2/QSearch.C
src/frontends/qt2/QSearch.h
src/frontends/qt2/QSearchDialog.C
src/frontends/qt2/QSearchDialog.h
src/frontends/qt2/QSendto.C
src/frontends/qt2/QShowFile.C
src/frontends/qt2/QSpellchecker.C
src/frontends/qt2/QTabular.C
src/frontends/qt2/QTabularDialog.C
src/frontends/qt2/QTexinfo.C
src/frontends/qt2/QTexinfo.h
src/frontends/qt2/QTexinfoDialog.C
src/frontends/qt2/QThesaurusDialog.C
src/frontends/qt2/QToc.C
src/frontends/qt2/QToc.h
src/frontends/qt2/QURL.C
src/frontends/qt2/QWorkArea.C
src/frontends/qt2/QWorkArea.h
src/frontends/qt2/QWrap.C
src/frontends/qt2/Qt2BC.C
src/frontends/qt2/Qt2BC.h
src/frontends/qt2/Qt2Base.C
src/frontends/qt2/Qt2Base.h
src/frontends/qt2/QtView.C
src/frontends/qt2/QtView.h
src/frontends/qt2/floatplacement.C
src/frontends/qt2/floatplacement.h
src/frontends/qt2/iconpalette.C
src/frontends/qt2/iconpalette.h
src/frontends/qt2/lyx_gui.C
src/frontends/qt2/panelstack.C
src/frontends/qt2/panelstack.h
src/frontends/qt2/qfont_loader.C
src/frontends/qt2/qfont_metrics.C
src/frontends/qt2/qlkey.h
src/frontends/qt2/qt_helpers.C
src/frontends/qt2/qt_helpers.h
src/frontends/screen.C
src/frontends/xforms/Alert_pimpl.C
src/frontends/xforms/Color.C
src/frontends/xforms/Color.h
src/frontends/xforms/ColorHandler.C
src/frontends/xforms/ColorHandler.h
src/frontends/xforms/Dialogs.C
src/frontends/xforms/FileDialog.C
src/frontends/xforms/FontInfo.C
src/frontends/xforms/FontInfo.h
src/frontends/xforms/FormBase.C
src/frontends/xforms/FormBase.h
src/frontends/xforms/FormBibitem.C
src/frontends/xforms/FormBibtex.C
src/frontends/xforms/FormBranch.C
src/frontends/xforms/FormBrowser.C
src/frontends/xforms/FormBrowser.h
src/frontends/xforms/FormChanges.C
src/frontends/xforms/FormCharacter.C
src/frontends/xforms/FormCharacter.h
src/frontends/xforms/FormCitation.C
src/frontends/xforms/FormCitation.h
src/frontends/xforms/FormColorpicker.C
src/frontends/xforms/FormColorpicker.h
src/frontends/xforms/FormDialogView.C
src/frontends/xforms/FormDialogView.h
src/frontends/xforms/FormDocument.C
src/frontends/xforms/FormDocument.h
src/frontends/xforms/FormExternal.C
src/frontends/xforms/FormFiledialog.C
src/frontends/xforms/FormFiledialog.h
src/frontends/xforms/FormFloat.C
src/frontends/xforms/FormForks.C
src/frontends/xforms/FormGraphics.C
src/frontends/xforms/FormGraphics.h
src/frontends/xforms/FormInclude.C
src/frontends/xforms/FormLog.C
src/frontends/xforms/FormMathsBitmap.C
src/frontends/xforms/FormMathsBitmap.h
src/frontends/xforms/FormMinipage.C
src/frontends/xforms/FormNote.C
src/frontends/xforms/FormNote.h
src/frontends/xforms/FormParagraph.C
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/FormPreferences.h
src/frontends/xforms/FormPrint.C
src/frontends/xforms/FormRef.C
src/frontends/xforms/FormRef.h
src/frontends/xforms/FormSearch.C
src/frontends/xforms/FormSendto.C
src/frontends/xforms/FormShowFile.C
src/frontends/xforms/FormSpellchecker.C
src/frontends/xforms/FormTabular.C
src/frontends/xforms/FormTabular.h
src/frontends/xforms/FormTabularCreate.C
src/frontends/xforms/FormTexinfo.C
src/frontends/xforms/FormTexinfo.h
src/frontends/xforms/FormText.C
src/frontends/xforms/FormText.h
src/frontends/xforms/FormThesaurus.C
src/frontends/xforms/FormThesaurus.h
src/frontends/xforms/FormToc.C
src/frontends/xforms/FormWrap.C
src/frontends/xforms/Tooltips.C
src/frontends/xforms/Tooltips.h
src/frontends/xforms/XFormsMenubar.C
src/frontends/xforms/XFormsMenubar.h
src/frontends/xforms/XFormsToolbar.C
src/frontends/xforms/XFormsToolbar.h
src/frontends/xforms/XFormsView.C
src/frontends/xforms/XFormsView.h
src/frontends/xforms/XLyXKeySym.C
src/frontends/xforms/XLyXKeySym.h
src/frontends/xforms/XMiniBuffer.C
src/frontends/xforms/XMiniBuffer.h
src/frontends/xforms/XPainter.C
src/frontends/xforms/XPainter.h
src/frontends/xforms/XWorkArea.C
src/frontends/xforms/XWorkArea.h
src/frontends/xforms/checkedwidgets.C
src/frontends/xforms/forms/fdfix.sh
src/frontends/xforms/forms_gettext.C
src/frontends/xforms/forms_gettext.h
src/frontends/xforms/lyx_gui.C
src/frontends/xforms/xfont_loader.C
src/frontends/xforms/xfont_metrics.C
src/frontends/xforms/xformsBC.C
src/frontends/xforms/xformsBC.h
src/frontends/xforms/xformsImage.C
src/frontends/xforms/xformsImage.h
src/frontends/xforms/xforms_helpers.C
src/frontends/xforms/xforms_helpers.h
src/funcrequest.C
src/funcrequest.h
src/gettext.C
src/gettext.h
src/graphics/GraphicsCache.C
src/graphics/GraphicsCache.h
src/graphics/GraphicsCacheItem.C
src/graphics/GraphicsCacheItem.h
src/graphics/GraphicsConverter.C
src/graphics/GraphicsConverter.h
src/graphics/GraphicsImage.h
src/graphics/GraphicsLoader.C
src/graphics/GraphicsLoader.h
src/graphics/GraphicsParams.C
src/graphics/GraphicsParams.h
src/graphics/GraphicsTypes.C
src/graphics/PreviewImage.C
src/graphics/PreviewImage.h
src/graphics/PreviewLoader.C
src/graphics/PreviewLoader.h
src/graphics/PreviewedInset.h
src/importer.C
src/importer.h
src/insets/ExternalTemplate.C
src/insets/ExternalTemplate.h
src/insets/inset.C
src/insets/inset.h
src/insets/insetbase.h
src/insets/insetbibitem.C
src/insets/insetbibitem.h
src/insets/insetbibtex.C
src/insets/insetbibtex.h
src/insets/insetbranch.C
src/insets/insetbranch.h
src/insets/insetcaption.C
src/insets/insetcaption.h
src/insets/insetcite.C
src/insets/insetcite.h
src/insets/insetcollapsable.C
src/insets/insetcollapsable.h
src/insets/insetcommand.C
src/insets/insetcommand.h
src/insets/insetcommandparams.C
src/insets/insetcommandparams.h
src/insets/insetenv.C
src/insets/insetenv.h
src/insets/insetert.C
src/insets/insetert.h
src/insets/insetexternal.C
src/insets/insetexternal.h
src/insets/insetfloat.C
src/insets/insetfloat.h
src/insets/insetfloatlist.C
src/insets/insetfloatlist.h
src/insets/insetfoot.C
src/insets/insetfoot.h
src/insets/insetgraphics.C
src/insets/insetgraphics.h
src/insets/insetgraphicsParams.C
src/insets/insetgraphicsParams.h
src/insets/insethfill.h
src/insets/insetinclude.C
src/insets/insetinclude.h
src/insets/insetindex.C
src/insets/insetindex.h
src/insets/insetlabel.C
src/insets/insetlabel.h
src/insets/insetlatexaccent.C
src/insets/insetlatexaccent.h
src/insets/insetmarginal.C
src/insets/insetmarginal.h
src/insets/insetminipage.C
src/insets/insetminipage.h
src/insets/insetnote.C
src/insets/insetnote.h
src/insets/insetoptarg.C
src/insets/insetoptarg.h
src/insets/insetquotes.C
src/insets/insetquotes.h
src/insets/insetref.C
src/insets/insetref.h
src/insets/insetspace.C
src/insets/insetspecialchar.C
src/insets/insettabular.C
src/insets/insettabular.h
src/insets/insettext.C
src/insets/insettext.h
src/insets/insettoc.C
src/insets/insettoc.h
src/insets/inseturl.C
src/insets/inseturl.h
src/insets/insetwrap.C
src/insets/insetwrap.h
src/insets/mailinset.h
src/insets/renderers.C
src/insets/renderers.h
src/insets/updatableinset.C
src/insets/updatableinset.h
src/intl.h
src/ispell.C
src/ispell.h
src/kbmap.C
src/kbmap.h
src/kbsequence.C
src/kbsequence.h
src/language.C
src/language.h
src/lastfiles.C
src/lastfiles.h
src/lengthcommon.C
src/lengthcommon.h
src/lyx_cb.C
src/lyx_cb.h
src/lyx_main.C
src/lyx_main.h
src/lyx_sty.C
src/lyx_sty.h
src/lyxfind.C
src/lyxfind.h
src/lyxfont.C
src/lyxfont.h
src/lyxfunc.C
src/lyxfunc.h
src/lyxgluelength.C
src/lyxgluelength.h
src/lyxlayout.C
src/lyxlayout.h
src/lyxlength.C
src/lyxlength.h
src/lyxlex.C
src/lyxlex.h
src/lyxlex_pimpl.C
src/lyxlex_pimpl.h
src/lyxrc.C
src/lyxrc.h
src/lyxserver.C
src/lyxserver.h
src/lyxtext.h
src/lyxtextclass.C
src/lyxtextclass.h
src/lyxtextclasslist.C
src/lyxtextclasslist.h
src/lyxvc.C
src/lyxvc.h
src/mathed/command_inset.C
src/mathed/command_inset.h
src/mathed/formula.C
src/mathed/formula.h
src/mathed/formulabase.C
src/mathed/formulabase.h
src/mathed/formulamacro.C
src/mathed/formulamacro.h
src/mathed/math_amsarrayinset.C
src/mathed/math_amsarrayinset.h
src/mathed/math_arrayinset.C
src/mathed/math_arrayinset.h
src/mathed/math_autocorrect.C
src/mathed/math_biginset.C
src/mathed/math_biginset.h
src/mathed/math_boxinset.C
src/mathed/math_boxinset.h
src/mathed/math_commentinset.C
src/mathed/math_commentinset.h
src/mathed/math_cursor.C
src/mathed/math_cursor.h
src/mathed/math_deliminset.C
src/mathed/math_deliminset.h
src/mathed/math_dotsinset.C
src/mathed/math_dotsinset.h
src/mathed/math_envinset.C
src/mathed/math_envinset.h
src/mathed/math_exfuncinset.C
src/mathed/math_exfuncinset.h
src/mathed/math_exintinset.C
src/mathed/math_exintinset.h
src/mathed/math_extern.C
src/mathed/math_extern.h
src/mathed/math_factory.C
src/mathed/math_factory.h
src/mathed/math_fontinset.C
src/mathed/math_fontinset.h
src/mathed/math_fracinset.C
src/mathed/math_fracinset.h
src/mathed/math_gridinfo.h
src/mathed/math_gridinset.C
src/mathed/math_gridinset.h
src/mathed/math_hullinset.C
src/mathed/math_hullinset.h
src/mathed/math_inset.C
src/mathed/math_inset.h
src/mathed/math_kerninset.C
src/mathed/math_kerninset.h
src/mathed/math_lefteqninset.C
src/mathed/math_lefteqninset.h
src/mathed/math_macro.C
src/mathed/math_macro.h
src/mathed/math_macrotable.C
src/mathed/math_macrotable.h
src/mathed/math_macrotemplate.C
src/mathed/math_macrotemplate.h
src/mathed/math_matrixinset.h
src/mathed/math_numberinset.C
src/mathed/math_numberinset.h
src/mathed/math_parboxinset.C
src/mathed/math_parboxinset.h
src/mathed/math_parser.C
src/mathed/math_parser.h
src/mathed/math_scriptinset.C
src/mathed/math_spaceinset.C
src/mathed/math_spaceinset.h
src/mathed/math_splitinset.C
src/mathed/math_splitinset.h
src/mathed/math_streamstr.C
src/mathed/math_streamstr.h
src/mathed/math_stringinset.C
src/mathed/math_stringinset.h
src/mathed/math_support.C
src/mathed/math_support.h
src/mathed/math_symbolinset.C
src/mathed/math_symbolinset.h
src/mathed/math_tabularinset.C
src/mathed/math_tabularinset.h
src/mathed/math_unknowninset.C
src/mathed/math_unknowninset.h
src/mathed/math_xarrowinset.C
src/mathed/math_xarrowinset.h
src/mathed/ref_inset.C
src/mathed/ref_inset.h
src/messages.C
src/messages.h
src/metricsinfo.C
src/metricsinfo.h
src/paragraph.C
src/paragraph.h
src/paragraph_funcs.C
src/paragraph_funcs.h
src/paragraph_pimpl.C
src/paragraph_pimpl.h
src/pspell.C
src/pspell.h
src/rowpainter.C
src/sgml.C
src/sgml.h
src/support/ChangeLog
src/support/FileInfo.C
src/support/FileInfo.h
src/support/FileMonitor.C
src/support/FileMonitor.h
src/support/Makefile.am
src/support/atoi.C
src/support/chdir.C
src/support/copy.C
src/support/filename.C
src/support/filename.h
src/support/filetools.C
src/support/filetools.h
src/support/forkedcall.C
src/support/forkedcall.h
src/support/forkedcallqueue.C
src/support/forkedcallqueue.h
src/support/forkedcontr.C
src/support/forkedcontr.h
src/support/getcwd.C
src/support/lstrings.C
src/support/lstrings.h
src/support/lyxlib.h
src/support/lyxmanip.h
src/support/lyxsum.C
src/support/mkdir.C
src/support/os.h
src/support/os_unix.C
src/support/path.C
src/support/path.h
src/support/path_defines.C.in
src/support/path_defines.h
src/support/rename.C
src/support/rmdir.C
src/support/sstream.h
src/support/std_sstream.h
src/support/std_string.h [deleted file]
src/support/systemcall.C
src/support/systemcall.h
src/support/tempname.C
src/support/tostr.C
src/support/tostr.h
src/support/unlink.C
src/support/userinfo.C
src/support/userinfo.h
src/tabular.C
src/tabular.h
src/tex-accent.C
src/tex2lyx/context.C
src/tex2lyx/gettext.C
src/tex2lyx/gettext.h
src/tex2lyx/lyxfont.C
src/text.C
src/text2.C
src/text3.C
src/textcursor.C
src/textcursor.h
src/toc.C
src/toc.h
src/trans.C
src/trans.h
src/trans_decl.h
src/trans_mgr.C
src/trans_mgr.h
src/vc-backend.C
src/vc-backend.h
src/vspace.C
src/vspace.h

index c42fbaf6c4a25e006a63ce1ac0f69d4e12483627..d520d1ee5dbb6a9aed9d313699f426b732d3e561 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
+2003-10-06  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * INSTALL: remove a comment about --with-included-string
+
+       * configure.ac: remove the configure are
+       --with-included-string 
+
 2003-09-21  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * configure.ac (FORNTENDS): use tabs to align message, make gtk
-       not delete info about other frontends 
+       not delete info about other frontends
 
 2003-09-16  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
diff --git a/INSTALL b/INSTALL
index d0e6f5dc00282a004bf74426d01d33649e476bb1..8ecbd562fc49683905a91322f17acaf077bfc586 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -366,9 +366,6 @@ notify us.
     then you need to upgrade the version of the xforms library you have
     installed.
 
-  o On solaris 2.6, you may have to compile with --with-included-string
-    if compiling with gcc 2.95.2.
-
   o On SUN Sparc Solaris 8, you need gnumake. The LyX makefiles do not
     work with Solaris make.
 
index 3ade9f91abe12f2507360c820e943d046bc50ab0..39028b4bdd405ac3180584d44a511da09abe6c73 100644 (file)
@@ -369,7 +369,7 @@ public:
         r.release();
     }
 
-#endif 
+#endif
 
     ~shared_count() // nothrow
     {
index 6cb409ec4a2b7f33d893064f3c561ed3867fe0cc..2f66dc5a41b9fb8e99c3f5ed953db7fd88070fa4 100644 (file)
@@ -7,11 +7,11 @@
 // Aleksey Gurtovoy
 //
 // Permission to use, copy, modify, distribute and sell this software
-// and its documentation for any purpose is hereby granted without fee, 
-// provided that the above copyright notice appears in all copies and 
-// that both the copyright notice and this permission notice appear in 
-// supporting documentation. No representations are made about the 
-// suitability of this software for any purpose. It is provided "as is" 
+// and its documentation for any purpose is hereby granted without fee,
+// provided that the above copyright notice appears in all copies and
+// that both the copyright notice and this permission notice appear in
+// supporting documentation. No representations are made about the
+// suitability of this software for any purpose. It is provided "as is"
 // without express or implied warranty.
 
 #ifndef BOOST_MPL_AUX_TEMPLATE_ARITY_FWD_HPP_INCLUDED
index 851293715cdfab58d7e5b32a1745ec4a10371e4d..f1cf07894f34a6cc1665e06ef0c8d175697a2fd6 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef BOOST_MPL_BOOL_FWD_HPP_INCLUDED
 #define BOOST_MPL_BOOL_FWD_HPP_INCLUDED
 
@@ -9,11 +8,11 @@
 // Aleksey Gurtovoy
 //
 // Permission to use, copy, modify, distribute and sell this software
-// and its documentation for any purpose is hereby granted without fee, 
-// provided that the above copyright notice appears in all copies and 
-// that both the copyright notice and this permission notice appear in 
-// supporting documentation. No representations are made about the 
-// suitability of this software for any purpose. It is provided "as is" 
+// and its documentation for any purpose is hereby granted without fee,
+// provided that the above copyright notice appears in all copies and
+// that both the copyright notice and this permission notice appear in
+// supporting documentation. No representations are made about the
+// suitability of this software for any purpose. It is provided "as is"
 // without express or implied warranty.
 //
 // See http://www.boost.org/libs/mpl for documentation.
index d33eb77e82a351a98ce506cf0a6600cdba64cead..37711fb4b95af4b1f5155ee0ca549de7e4b02a56 100644 (file)
@@ -238,7 +238,7 @@ public:
         BOOST_ASSERT(px != 0);
         return px;
     }
-    
+
     T * get() const // never throws
     {
         return px;
@@ -404,7 +404,7 @@ using std::basic_ostream;
 template<class E, class T, class Y> basic_ostream<E, T> & operator<< (basic_ostream<E, T> & os, shared_ptr<Y> const & p)
 # else
 template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p)
-# endif 
+# endif
 {
     os << p.get();
     return os;
@@ -437,7 +437,7 @@ template<class D, class T> D * get_deleter(shared_ptr<T> const & p)
 
 #ifdef BOOST_MSVC
 # pragma warning(pop)
-#endif    
+#endif
 
 #endif  // #if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES)
 
index c02e47b960d9d6290eaec0e635c99e46228ae0f1..84d8db127b02ed8d8db1c04d1e837c78440b1dde 100644 (file)
@@ -1,5 +1,5 @@
 //  (C) Copyright Gennadiy Rozental 2002.
-//  (C) Copyright Daryle Walker 2000-2001. 
+//  (C) Copyright Daryle Walker 2000-2001.
 //  Permission to copy, use, modify, sell and distribute this software
 //  is granted provided this copyright notice appears in all copies.
 //  This software is provided "as is" without express or implied warranty,
@@ -9,7 +9,7 @@
 //
 //  File        : $RCSfile: nullstream.hpp,v $
 //
-//  Version     : $Id: nullstream.hpp,v 1.3 2003/02/15 21:57:25 rogeeff Exp $
+//  Version     : $Id: nullstream.hpp,v 1.1 2003/09/26 14:27:18 larsbj Exp $
 //
 //  Description : simulate /dev/null stream
 // ***************************************************************************
index 22478c6af3c24416997c630ae4e3b0f7392a6dce..a5445f2777ba8a3880073c23148ee6e3f7caeba7 100644 (file)
@@ -3,36 +3,36 @@
 // Copyright (C) 1999, 2000 Jaakko Järvi (jaakko.jarvi@cs.utu.fi)
 //
 // Permission to copy, use, sell and distribute this software is granted
-// provided this copyright notice appears in all copies. 
+// provided this copyright notice appears in all copies.
 // Permission to modify the code and to distribute modified code is granted
-// provided this copyright notice appears in all copies, and a notice 
+// provided this copyright notice appears in all copies, and a notice
 // that the code was modified is included with the copyright notice.
 //
-// This software is provided "as is" without express or implied warranty, 
+// This software is provided "as is" without express or implied warranty,
 // and with no claim as to its suitability for any purpose.
 
 // For more information, see http://www.boost.org
 
 // Outside help:
 // This and that, Gary Powell.
-// Fixed return types for get_head/get_tail 
+// Fixed return types for get_head/get_tail
 // ( and other bugs ) per suggestion of Jens Maurer
 // simplified element type accessors + bug fix  (Jeremy Siek)
-// Several changes/additions according to suggestions by Doug Gregor, 
+// Several changes/additions according to suggestions by Doug Gregor,
 // William Kempf, Vesa Karvonen, John Max Skaller, Ed Brey, Beman Dawes,
 // David Abrahams.
 
 // Revision history:
 // 2002 05 01 Hugo Duncan: Fix for Borland after Jaakko's previous changes
-// 2002 04 18 Jaakko: tuple element types can be void or plain function 
+// 2002 04 18 Jaakko: tuple element types can be void or plain function
 //                    types, as long as no object is created.
 //                    Tuple objects can no hold even noncopyable types
-//                    such as arrays.             
+//                    such as arrays.
 // 2001 10 22 John Maddock
 //      Fixes for Borland C++
 // 2001 08 30 David Abrahams
 //      Added default constructor for cons<>.
-// ----------------------------------------------------------------- 
+// -----------------------------------------------------------------
 
 #ifndef BOOST_TUPLE_BASIC_HPP
 #define BOOST_TUPLE_BASIC_HPP
@@ -42,7 +42,7 @@
 
 #include "boost/type_traits/cv_traits.hpp"
 #include "boost/type_traits/function_traits.hpp"
-    
+
 namespace boost {
 namespace tuples {
 
@@ -66,16 +66,16 @@ template <class Then, class Else> struct IF<false, Then, Else> {
 } // end detail
 
 // - cons forward declaration -----------------------------------------------
-template <class HT, class TT> struct cons; 
+template <class HT, class TT> struct cons;
 
 
 // - tuple forward declaration -----------------------------------------------
 template <
-  class T0 = null_type, class T1 = null_type, class T2 = null_type, 
-  class T3 = null_type, class T4 = null_type, class T5 = null_type, 
-  class T6 = null_type, class T7 = null_type, class T8 = null_type, 
+  class T0 = null_type, class T1 = null_type, class T2 = null_type,
+  class T3 = null_type, class T4 = null_type, class T5 = null_type,
+  class T6 = null_type, class T7 = null_type, class T8 = null_type,
   class T9 = null_type>
-class tuple; 
+class tuple;
 
 // tuple_length forward declaration
 template<class T> struct length;
@@ -95,7 +95,7 @@ namespace detail {
 #  define BOOST_TUPLE_SINGLE_DUMMY_PARM
 #endif
 
-// -- generate error template, referencing to non-existing members of this 
+// -- generate error template, referencing to non-existing members of this
 // template is used to produce compilation errors intentionally
 template<class T>
 class generate_error;
@@ -119,12 +119,12 @@ struct get_class {
 
 template<>
 struct get_class<0> {
-  template<class RET, class HT, class TT> 
+  template<class RET, class HT, class TT>
   inline static RET get(const cons<HT, TT>& t)
   {
     return t.head;
   }
-  template<class RET, class HT, class TT> 
+  template<class RET, class HT, class TT>
   inline static RET get(cons<HT, TT>& t)
   {
     return t.head;
@@ -135,7 +135,7 @@ struct get_class<0> {
 
 
 // -cons type accessors ----------------------------------------
-// typename tuples::element<N,T>::type gets the type of the 
+// typename tuples::element<N,T>::type gets the type of the
 // Nth element ot T, first element is at index 0
 // -------------------------------------------------------
 
@@ -194,8 +194,8 @@ template <class T> struct access_traits<T&> {
 
   typedef T& const_type;
   typedef T& non_const_type;
-   
-  typedef T& parameter_type;   
+
+  typedef T& parameter_type;
 };
 
 // get function for non-const cons-lists, returns a reference to the element
@@ -204,13 +204,13 @@ template<int N, class HT, class TT>
 inline typename access_traits<
                   typename element<N, cons<HT, TT> >::type
                 >::non_const_type
-get(cons<HT, TT>& c BOOST_TUPLE_DUMMY_PARM) { 
-  return detail::get_class<N>::BOOST_NESTED_TEMPLATE 
+get(cons<HT, TT>& c BOOST_TUPLE_DUMMY_PARM) {
+  return detail::get_class<N>::BOOST_NESTED_TEMPLATE
          get<
            typename access_traits<
              typename element<N, cons<HT, TT> >::type
-           >::non_const_type>(c); 
-} 
+           >::non_const_type>(c);
+}
 
 // get function for const cons-lists, returns a const reference to
 // the element. If the element is a reference, returns the reference
@@ -219,13 +219,13 @@ template<int N, class HT, class TT>
 inline typename access_traits<
                   typename element<N, cons<HT, TT> >::type
                 >::const_type
-get(const cons<HT, TT>& c BOOST_TUPLE_DUMMY_PARM) { 
-  return detail::get_class<N>::BOOST_NESTED_TEMPLATE 
+get(const cons<HT, TT>& c BOOST_TUPLE_DUMMY_PARM) {
+  return detail::get_class<N>::BOOST_NESTED_TEMPLATE
          get<
            typename access_traits<
              typename element<N, cons<HT, TT> >::type
          >::const_type>(c);
-} 
+}
 
 // -- the cons template  --------------------------------------------------
 namespace detail {
@@ -246,7 +246,7 @@ template <class T> struct wrap_non_storeable_type {
   >::RET type;
 };
 template <> struct wrap_non_storeable_type<void> {
-  typedef non_storeable_type<void> type; 
+  typedef non_storeable_type<void> type;
 };
 
 } // detail
@@ -257,49 +257,49 @@ struct cons {
   typedef HT head_type;
   typedef TT tail_type;
 
-  typedef typename 
+  typedef typename
     detail::wrap_non_storeable_type<head_type>::type stored_head_type;
 
   stored_head_type head;
   tail_type tail;
 
-  typename access_traits<stored_head_type>::non_const_type 
+  typename access_traits<stored_head_type>::non_const_type
   get_head() { return head; }
 
-  typename access_traits<tail_type>::non_const_type 
-  get_tail() { return tail; }  
+  typename access_traits<tail_type>::non_const_type
+  get_tail() { return tail; }
 
-  typename access_traits<stored_head_type>::const_type 
+  typename access_traits<stored_head_type>::const_type
   get_head() const { return head; }
-  
-  typename access_traits<tail_type>::const_type 
-  get_tail() const { return tail; }  
+
+  typename access_traits<tail_type>::const_type
+  get_tail() const { return tail; }
 
   cons() : head(), tail() {}
   //  cons() : head(detail::default_arg<HT>::f()), tail() {}
 
-  // the argument for head is not strictly needed, but it prevents 
-  // array type elements. This is good, since array type elements 
-  // cannot be supported properly in any case (no assignment, 
+  // the argument for head is not strictly needed, but it prevents
+  // array type elements. This is good, since array type elements
+  // cannot be supported properly in any case (no assignment,
   // copy works only if the tails are exactly the same type, ...)
-  
+
   cons(typename access_traits<stored_head_type>::parameter_type h,
        const tail_type& t)
-    : head (h), tail(t) {}  
+    : head (h), tail(t) {}
 
-  template <class T1, class T2, class T3, class T4, class T5, 
+  template <class T1, class T2, class T3, class T4, class T5,
             class T6, class T7, class T8, class T9, class T10>
-  cons( T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, 
-        T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 ) 
-    : head (t1), 
+  cons( T1& t1, T2& t2, T3& t3, T4& t4, T5& t5,
+        T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 )
+    : head (t1),
       tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull())
       {}
 
-  template <class T2, class T3, class T4, class T5, 
+  template <class T2, class T3, class T4, class T5,
             class T6, class T7, class T8, class T9, class T10>
-  cons( const null_type& t1, T2& t2, T3& t3, T4& t4, T5& t5, 
-        T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 ) 
-    : head (), 
+  cons( const null_type& t1, T2& t2, T3& t3, T4& t4, T5& t5,
+        T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 )
+    : head (),
       tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull())
       {}
 
@@ -308,18 +308,18 @@ struct cons {
   cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
 
   template <class HT2, class TT2>
-  cons& operator=( const cons<HT2, TT2>& u ) { 
-    head=u.head; tail=u.tail; return *this; 
+  cons& operator=( const cons<HT2, TT2>& u ) {
+    head=u.head; tail=u.tail; return *this;
   }
 
-  // must define assignment operator explicitly, implicit version is 
+  // must define assignment operator explicitly, implicit version is
   // illformed if HT is a reference (12.8. (12))
-  cons& operator=(const cons& u) { 
-    head = u.head; tail = u.tail;  return *this; 
+  cons& operator=(const cons& u) {
+    head = u.head; tail = u.tail;  return *this;
   }
 
   template <class T1, class T2>
-  cons& operator=( const std::pair<T1, T2>& u ) { 
+  cons& operator=( const std::pair<T1, T2>& u ) {
     BOOST_STATIC_ASSERT(length<cons>::value == 2); // check length = 2
     head = u.first; tail.head = u.second; return *this;
   }
@@ -349,47 +349,47 @@ struct cons<HT, null_type> {
   typedef null_type tail_type;
   typedef cons<HT, null_type> self_type;
 
-  typedef typename 
+  typedef typename
     detail::wrap_non_storeable_type<head_type>::type stored_head_type;
   stored_head_type head;
-  typename access_traits<stored_head_type>::non_const_type 
+
+  typename access_traits<stored_head_type>::non_const_type
   get_head() { return head; }
-  
-  null_type get_tail() { return null_type(); }  
 
-  typename access_traits<stored_head_type>::const_type 
+  null_type get_tail() { return null_type(); }
+
+  typename access_traits<stored_head_type>::const_type
   get_head() const { return head; }
-  
-  const null_type get_tail() const { return null_type(); }  
+
+  const null_type get_tail() const { return null_type(); }
 
   //  cons() : head(detail::default_arg<HT>::f()) {}
   cons() : head() {}
 
   cons(typename access_traits<stored_head_type>::parameter_type h,
        const null_type& = null_type())
-    : head (h) {}  
+    : head (h) {}
 
   template<class T1>
-  cons(T1& t1, const null_type&, const null_type&, const null_type&, 
-       const null_type&, const null_type&, const null_type&, 
+  cons(T1& t1, const null_type&, const null_type&, const null_type&,
+       const null_type&, const null_type&, const null_type&,
        const null_type&, const null_type&, const null_type&)
   : head (t1) {}
 
-  cons(const null_type&, 
-       const null_type&, const null_type&, const null_type&, 
-       const null_type&, const null_type&, const null_type&, 
+  cons(const null_type&,
+       const null_type&, const null_type&, const null_type&,
+       const null_type&, const null_type&, const null_type&,
        const null_type&, const null_type&, const null_type&)
   : head () {}
 
   template <class HT2>
   cons( const cons<HT2, null_type>& u ) : head(u.head) {}
-  
+
   template <class HT2>
-  cons& operator=(const cons<HT2, null_type>& u ) 
+  cons& operator=(const cons<HT2, null_type>& u )
   { head = u.head; return *this; }
 
-  // must define assignment operator explicitely, implicit version 
+  // must define assignment operator explicitely, implicit version
   // is illformed if HT is a reference
   cons& operator=(const cons& u) { head = u.head; return *this; }
 
@@ -432,12 +432,12 @@ struct length<null_type> {
 namespace detail {
 
 // Tuple to cons mapper --------------------------------------------------
-template <class T0, class T1, class T2, class T3, class T4, 
+template <class T0, class T1, class T2, class T3, class T4,
           class T5, class T6, class T7, class T8, class T9>
 struct map_tuple_to_cons
 {
-  typedef cons<T0, 
-               typename map_tuple_to_cons<T1, T2, T3, T4, T5, 
+  typedef cons<T0,
+               typename map_tuple_to_cons<T1, T2, T3, T4, T5,
                                           T6, T7, T8, T9, null_type>::type
               > type;
 };
@@ -453,46 +453,46 @@ struct map_tuple_to_cons<null_type, null_type, null_type, null_type, null_type,
 
 // -------------------------------------------------------------------
 // -- tuple ------------------------------------------------------
-template <class T0, class T1, class T2, class T3, class T4, 
+template <class T0, class T1, class T2, class T3, class T4,
           class T5, class T6, class T7, class T8, class T9>
 
-class tuple : 
-  public detail::map_tuple_to_cons<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type   
+class tuple :
+  public detail::map_tuple_to_cons<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type
 {
 public:
-  typedef typename 
+  typedef typename
     detail::map_tuple_to_cons<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type inherited;
   typedef typename inherited::head_type head_type;
-  typedef typename inherited::tail_type tail_type;  
+  typedef typename inherited::tail_type tail_type;
 
 
-// access_traits<T>::parameter_type takes non-reference types as const T& 
+// access_traits<T>::parameter_type takes non-reference types as const T&
   tuple() {}
-  
+
   tuple(typename access_traits<T0>::parameter_type t0)
-    : inherited(t0, detail::cnull(), detail::cnull(), detail::cnull(), 
-                detail::cnull(), detail::cnull(), detail::cnull(), 
+    : inherited(t0, detail::cnull(), detail::cnull(), detail::cnull(),
+                detail::cnull(), detail::cnull(), detail::cnull(),
                 detail::cnull(), detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
         typename access_traits<T1>::parameter_type t1)
-    : inherited(t0, t1, detail::cnull(), detail::cnull(), 
-                detail::cnull(), detail::cnull(), detail::cnull(), 
+    : inherited(t0, t1, detail::cnull(), detail::cnull(),
+                detail::cnull(), detail::cnull(), detail::cnull(),
                 detail::cnull(), detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
         typename access_traits<T1>::parameter_type t1,
         typename access_traits<T2>::parameter_type t2)
-    : inherited(t0, t1, t2, detail::cnull(), detail::cnull(), 
-                detail::cnull(), detail::cnull(), detail::cnull(), 
+    : inherited(t0, t1, t2, detail::cnull(), detail::cnull(),
+                detail::cnull(), detail::cnull(), detail::cnull(),
                 detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
         typename access_traits<T1>::parameter_type t1,
         typename access_traits<T2>::parameter_type t2,
         typename access_traits<T3>::parameter_type t3)
-    : inherited(t0, t1, t2, t3, detail::cnull(), detail::cnull(), 
-                detail::cnull(), detail::cnull(), detail::cnull(), 
+    : inherited(t0, t1, t2, t3, detail::cnull(), detail::cnull(),
+                detail::cnull(), detail::cnull(), detail::cnull(),
                 detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
@@ -500,7 +500,7 @@ public:
         typename access_traits<T2>::parameter_type t2,
         typename access_traits<T3>::parameter_type t3,
         typename access_traits<T4>::parameter_type t4)
-    : inherited(t0, t1, t2, t3, t4, detail::cnull(), detail::cnull(), 
+    : inherited(t0, t1, t2, t3, t4, detail::cnull(), detail::cnull(),
                 detail::cnull(), detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
@@ -509,7 +509,7 @@ public:
         typename access_traits<T3>::parameter_type t3,
         typename access_traits<T4>::parameter_type t4,
         typename access_traits<T5>::parameter_type t5)
-    : inherited(t0, t1, t2, t3, t4, t5, detail::cnull(), detail::cnull(), 
+    : inherited(t0, t1, t2, t3, t4, t5, detail::cnull(), detail::cnull(),
                 detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
@@ -519,7 +519,7 @@ public:
         typename access_traits<T4>::parameter_type t4,
         typename access_traits<T5>::parameter_type t5,
         typename access_traits<T6>::parameter_type t6)
-    : inherited(t0, t1, t2, t3, t4, t5, t6, detail::cnull(), 
+    : inherited(t0, t1, t2, t3, t4, t5, t6, detail::cnull(),
                 detail::cnull(), detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
@@ -530,7 +530,7 @@ public:
         typename access_traits<T5>::parameter_type t5,
         typename access_traits<T6>::parameter_type t6,
         typename access_traits<T7>::parameter_type t7)
-    : inherited(t0, t1, t2, t3, t4, t5, t6, t7, detail::cnull(), 
+    : inherited(t0, t1, t2, t3, t4, t5, t6, t7, detail::cnull(),
                 detail::cnull()) {}
 
   tuple(typename access_traits<T0>::parameter_type t0,
@@ -561,16 +561,16 @@ public:
   tuple(const cons<U1, U2>& p) : inherited(p) {}
 
   template <class U1, class U2>
-  tuple& operator=(const cons<U1, U2>& k) { 
-    inherited::operator=(k); 
+  tuple& operator=(const cons<U1, U2>& k) {
+    inherited::operator=(k);
     return *this;
   }
 
   template <class U1, class U2>
-  tuple& operator=(const std::pair<U1, U2>& k) { 
+  tuple& operator=(const std::pair<U1, U2>& k) {
     BOOST_STATIC_ASSERT(length<tuple>::value == 2);// check_length = 2
     this->head = k.first;
-    this->tail.head = k.second; 
+    this->tail.head = k.second;
     return *this;
   }
 
@@ -578,8 +578,8 @@ public:
 
 // The empty tuple
 template <>
-class tuple<null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type>  : 
-  public null_type 
+class tuple<null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type, null_type>  :
+  public null_type
 {
 public:
   typedef null_type inherited;
@@ -590,7 +590,7 @@ public:
 namespace detail {
 
 struct swallow_assign {
-      
+
   template<typename T>
   swallow_assign& operator=(const T&) {
     return *this;
@@ -599,7 +599,7 @@ struct swallow_assign {
 
 } // namespace detail
 
-// "ignore" allows tuple positions to be ignored when using "tie". 
+// "ignore" allows tuple positions to be ignored when using "tie".
 namespace {
  detail::swallow_assign ignore;
 }
@@ -614,7 +614,7 @@ namespace {
 // from template<class T> foo(T& t) : make_tuple_traits<T>::type
 
 // Conversions:
-// T -> T, 
+// T -> T,
 // references -> compile_time_error
 // reference_wrapper<T> -> T&
 // const reference_wrapper<T> -> T&
@@ -623,19 +623,19 @@ namespace {
 
 template<class T>
 struct make_tuple_traits {
-  typedef T type; 
+  typedef T type;
 
   // commented away, see below  (JJ)
-  //  typedef typename IF<                 
+  //  typedef typename IF<
   //  boost::is_function<T>::value,
   //  T&,
   //  T>::RET type;
 
 };
-// The is_function test was there originally for plain function types, 
+
+// The is_function test was there originally for plain function types,
 // which can't be stored as such (we must either store them as references or
-// pointers). Such a type could be formed if make_tuple was called with a 
+// pointers). Such a type could be formed if make_tuple was called with a
 // reference to a function.
 // But this would mean that a const qualified function type was formed in
 // the make_tuple function and hence make_tuple can't take a function
@@ -650,17 +650,17 @@ struct make_tuple_traits<T&> {
   typedef typename
      detail::generate_error<T&>::
        do_not_use_with_reference_type error;
-}; 
+};
 
 // Arrays can't be stored as plain types; convert them to references.
 // All arrays are converted to const. This is because make_tuple takes its
-// parameters as const T& and thus the knowledge of the potential 
+// parameters as const T& and thus the knowledge of the potential
 // non-constness of actual argument is lost.
 template<class T, int n>  struct make_tuple_traits <T[n]> {
   typedef const T (&type)[n];
 };
 
-template<class T, int n> 
+template<class T, int n>
 struct make_tuple_traits<const T[n]> {
   typedef const T (&type)[n];
 };
@@ -669,17 +669,17 @@ template<class T, int n>  struct make_tuple_traits<volatile T[n]> {
   typedef const volatile T (&type)[n];
 };
 
-template<class T, int n> 
+template<class T, int n>
 struct make_tuple_traits<const volatile T[n]> {
   typedef const volatile T (&type)[n];
 };
 
-template<class T> 
+template<class T>
 struct make_tuple_traits<reference_wrapper<T> >{
   typedef T& type;
 };
 
-template<class T> 
+template<class T>
 struct make_tuple_traits<const reference_wrapper<T> >{
   typedef T& type;
 };
@@ -692,20 +692,20 @@ namespace detail {
 // a helper traits to make the make_tuple functions shorter (Vesa Karvonen's
 // suggestion)
 template <
-  class T0 = null_type, class T1 = null_type, class T2 = null_type, 
-  class T3 = null_type, class T4 = null_type, class T5 = null_type, 
-  class T6 = null_type, class T7 = null_type, class T8 = null_type, 
+  class T0 = null_type, class T1 = null_type, class T2 = null_type,
+  class T3 = null_type, class T4 = null_type, class T5 = null_type,
+  class T6 = null_type, class T7 = null_type, class T8 = null_type,
   class T9 = null_type
 >
 struct make_tuple_mapper {
   typedef
-    tuple<typename make_tuple_traits<T0>::type, 
-          typename make_tuple_traits<T1>::type, 
-          typename make_tuple_traits<T2>::type, 
-          typename make_tuple_traits<T3>::type, 
-          typename make_tuple_traits<T4>::type, 
-          typename make_tuple_traits<T5>::type, 
-          typename make_tuple_traits<T6>::type, 
+    tuple<typename make_tuple_traits<T0>::type,
+          typename make_tuple_traits<T1>::type,
+          typename make_tuple_traits<T2>::type,
+          typename make_tuple_traits<T3>::type,
+          typename make_tuple_traits<T4>::type,
+          typename make_tuple_traits<T5>::type,
+          typename make_tuple_traits<T6>::type,
           typename make_tuple_traits<T7>::type,
           typename make_tuple_traits<T8>::type,
           typename make_tuple_traits<T9>::type> type;
@@ -715,7 +715,7 @@ struct make_tuple_mapper {
 
 // -make_tuple function templates -----------------------------------
 inline tuple<> make_tuple() {
-  return tuple<>(); 
+  return tuple<>();
 }
 
 template<class T0>
@@ -751,7 +751,7 @@ inline typename detail::make_tuple_mapper<T0, T1, T2, T3, T4>::type
 make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3,
                   const T4& t4) {
   typedef typename detail::make_tuple_mapper<T0, T1, T2, T3, T4>::type t;
-  return t(t0, t1, t2, t3, t4); 
+  return t(t0, t1, t2, t3, t4);
 }
 
 template<class T0, class T1, class T2, class T3, class T4, class T5>
@@ -759,7 +759,7 @@ inline typename detail::make_tuple_mapper<T0, T1, T2, T3, T4, T5>::type
 make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3,
                   const T4& t4, const T5& t5) {
   typedef typename detail::make_tuple_mapper<T0, T1, T2, T3, T4, T5>::type t;
-  return t(t0, t1, t2, t3, t4, t5); 
+  return t(t0, t1, t2, t3, t4, t5);
 }
 
 template<class T0, class T1, class T2, class T3, class T4, class T5, class T6>
@@ -778,7 +778,7 @@ make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3,
                   const T4& t4, const T5& t5, const T6& t6, const T7& t7) {
   typedef typename detail::make_tuple_mapper
            <T0, T1, T2, T3, T4, T5, T6, T7>::type t;
-  return t(t0, t1, t2, t3, t4, t5, t6, t7); 
+  return t(t0, t1, t2, t3, t4, t5, t6, t7);
 }
 
 template<class T0, class T1, class T2, class T3, class T4, class T5, class T6,
@@ -790,7 +790,7 @@ make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3,
                   const T8& t8) {
   typedef typename detail::make_tuple_mapper
            <T0, T1, T2, T3, T4, T5, T6, T7, T8>::type t;
-  return t(t0, t1, t2, t3, t4, t5, t6, t7, t8); 
+  return t(t0, t1, t2, t3, t4, t5, t6, t7, t8);
 }
 
 template<class T0, class T1, class T2, class T3, class T4, class T5, class T6,
@@ -802,7 +802,7 @@ make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3,
                   const T8& t8, const T9& t9) {
   typedef typename detail::make_tuple_mapper
            <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type t;
-  return t(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9); 
+  return t(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9);
 }
 
 
@@ -829,46 +829,46 @@ inline tuple<T1&, T2&, T3&, T4&> tie(T1& t1, T2& t2, T3& t3, T4& t4) {
 }
 
 template<class T1, class T2, class T3, class T4, class T5>
-inline tuple<T1&, T2&, T3&, T4&, T5&> 
+inline tuple<T1&, T2&, T3&, T4&, T5&>
 tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5) {
   return tuple<T1&, T2&, T3&, T4&, T5&> (t1, t2, t3, t4, t5);
 }
 
 template<class T1, class T2, class T3, class T4, class T5, class T6>
-inline tuple<T1&, T2&, T3&, T4&, T5&, T6&> 
+inline tuple<T1&, T2&, T3&, T4&, T5&, T6&>
 tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6) {
   return tuple<T1&, T2&, T3&, T4&, T5&, T6&> (t1, t2, t3, t4, t5, t6);
 }
 
 template<class T1, class T2, class T3, class T4, class T5, class T6, class T7>
-inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&> 
+inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&>
 tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7) {
   return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&> (t1, t2, t3, t4, t5, t6, t7);
 }
 
-template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, 
+template<class T1, class T2, class T3, class T4, class T5, class T6, class T7,
          class T8>
-inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&> 
+inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&>
 tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8) {
-  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&> 
+  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&>
            (t1, t2, t3, t4, t5, t6, t7, t8);
 }
 
-template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, 
+template<class T1, class T2, class T3, class T4, class T5, class T6, class T7,
          class T8, class T9>
-inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&> 
-tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8, 
+inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&>
+tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8,
            T9& t9) {
-  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&> 
+  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&>
             (t1, t2, t3, t4, t5, t6, t7, t8, t9);
 }
 
-template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, 
+template<class T1, class T2, class T3, class T4, class T5, class T6, class T7,
          class T8, class T9, class T10>
-inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&, T10&> 
-tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8, 
+inline tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&, T10&>
+tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8,
            T9& t9, T10& t10) {
-  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&, T10&> 
+  return tuple<T1&, T2&, T3&, T4&, T5&, T6&, T7&, T8&, T9&, T10&>
            (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10);
 }
 
@@ -879,5 +879,3 @@ tie(T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8,
 #undef BOOST_TUPLE_SINGLE_DUMMY_PARM
 
 #endif // BOOST_TUPLE_BASIC_HPP
-
-
index ae9feaf32f75426ba504dbfa8d03e6406bf92033..e6e866d1875693291e59c282a98dd9af05e62405 100644 (file)
@@ -1,8 +1,7 @@
-
 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
-// Permission to copy, use, modify, sell and distribute this software is 
-// granted provided this copyright notice appears in all copies. This software 
-// is provided "as is" without express or implied warranty, and with no claim 
+// Permission to copy, use, modify, sell and distribute this software is
+// granted provided this copyright notice appears in all copies. This software
+// is provided "as is" without express or implied warranty, and with no claim
 // as to its suitability for any purpose.
 //
 // See http://www.boost.org for most recent version including documentation.
@@ -77,7 +76,7 @@ BOOST_TT_AUX_TYPE_TRAIT_IMPL_SPEC1(add_reference,void const volatile,void const
 
 BOOST_TT_AUX_TYPE_TRAIT_DEF1(add_reference,T,typename detail::add_reference_impl<T>::type)
 
-// agurt, 07/mar/03: workaround Borland's ill-formed sensitivity to an additional 
+// agurt, 07/mar/03: workaround Borland's ill-formed sensitivity to an additional
 // level of indirection, here
 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561))
 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,add_reference,T&,T&)
index b2fb26111b863727d42cfbef892377192df975c9..fe302b87d0bb7a8b7e8eb70abd2e0fdcc87b80e4 100644 (file)
@@ -1,4 +1,3 @@
-
 // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
 // Hinnant & John Maddock 2000.  Permission to copy, use, modify,
 // sell and distribute this software is granted provided this
@@ -49,8 +48,8 @@ yes_type BOOST_TT_DECL is_array_tester2(...);
 
 template< typename T >
 struct is_array_impl
-{ 
-    BOOST_STATIC_CONSTANT(bool, value = 
+{
+    BOOST_STATIC_CONSTANT(bool, value =
         sizeof(::boost::detail::is_array_tester2(
             ::boost::detail::is_array_tester1(
                 ::boost::type_traits::wrap<T>()
index 325d430d34d3a979eead1e292589dc3f4d049233..b89e529df271d5c11b926f587d192b1b61b9e176 100644 (file)
@@ -1,4 +1,3 @@
-
 //  (C) Copyright David Abrahams Steve Cleary, Beman Dawes, Howard
 //  Hinnant & John Maddock 2000-2002.  Permission to copy, use,
 //  modify, sell and distribute this software is granted provided this
@@ -26,7 +25,7 @@
 // should be the last #include
 #include "boost/type_traits/detail/bool_trait_def.hpp"
 
-namespace boost { 
+namespace boost {
 
 #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
 
@@ -108,4 +107,3 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_reference,T,::boost::detail::is_reference_impl<T
 #include "boost/type_traits/detail/bool_trait_undef.hpp"
 
 #endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED
-
index 639066417dd315ab59e5ac1a05b082128db85c75..25c22a1dd5d0a6e2d2ee0bb3d1963b03ac34be9a 100644 (file)
@@ -74,19 +74,6 @@ dnl LYX_CXX_RTTI
 AC_CHECK_HEADERS(ostream istream sstream locale limits ios)
 LYX_CXX_STL_MODERN_STREAMS
 
-###
-AC_ARG_WITH(included-string,
-    AC_HELP_STRING([--with-included-string],[use std::string through namespace lyx]),
-       [lyx_cv_with_included_string=$withval
-       AC_MSG_RESULT([$with_included_string])],
-       [AC_CACHE_CHECK([],lyx_cv_with_included_string,[lyx_cv_with_included_string=no])])
-if test x$lyx_cv_with_included_string = xyes ; then
-    AC_DEFINE(USE_INCLUDED_STRING, 1,
-       [Define to use std::string through namespace lyx.])
-    lyx_flags="$lyx_flags included-string"
-fi
-
-
 ### and now some special lyx flags.
 AC_ARG_ENABLE(assertions,
   AC_HELP_STRING([--enable-assertions],[add runtime sanity checks in the program]),,
index c877ff374b1ad360f1805d67a35d099e25425026..db0888f6ce3ffe6d334529f6182f00bc113b144e 100644 (file)
@@ -185,7 +185,6 @@ src/mathed/ref_inset.C
 src/paragraph.C
 src/paragraph_funcs.C
 src/rowpainter.C
-src/support/path_defines.C
 src/text.C
 src/text2.C
 src/text3.C
index fab0607e0f15fe7ee476fed229632e64dae85c3f..e6b22ce53611a865e808a573a440ab38be85acea 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <functional>
 
+
+using std::string;
 using std::bind2nd;
 using std::binary_function;
 
index 403b3084ad1b51f682f0afaf64dd901cee6734ef..aaa5f15ecd548c5a8cc3bc2276a728d2b1b5cc6c 100644 (file)
 #ifndef BRANCHES_H
 #define BRANCHES_H
 
-#include "support/std_string.h"
+#include <string>
 #include <list>
 
+
 class Branch {
 public:
        ///
-       string const getBranch() const;
+       std::string const getBranch() const;
        ///
-       void setBranch(string const &);
+       void setBranch(std::string const &);
        ///
        bool getSelected() const;
        ///
        void setSelected(bool);
        ///
-       string const getColor() const;
+       std::string const getColor() const;
        ///
-       void setColor(string const &);
+       void setColor(std::string const &);
 
 
 private:
        ///
-       string branch_;
+       std::string branch_;
        ///
        bool selected_;
        ///
-       string color_;
+       std::string color_;
 };
 
 
@@ -78,29 +79,29 @@ public:
        ///
        List::const_iterator end() const { return list.end(); }
        ///
-       string getColor(string const &) const;
+       std::string getColor(std::string const &) const;
        ///
-       void setColor(string const &, string const &);
+       void setColor(std::string const &, std::string const &);
        /// Select/deselect multiple branches given in '|'-separated string
-       void setSelected(string const &, bool);
+       void setSelected(std::string const &, bool);
        /// Add multiple branches to list
-       void add(string const &);
+       void add(std::string const &);
        /// remove a branch from list by name
-       void remove(string const &);
+       void remove(std::string const &);
        /// return whether this branch is selected
-       bool selected(string const &) const;
+       bool selected(std::string const &) const;
        /// return, as a '|'-separated string, all branch names
-       string allBranches() const;
+       std::string allBranches() const;
        ///
-       string allSelected() const;
+       std::string allSelected() const;
        ///
-       string const separator() const;
+       std::string const separator() const;
 
 private:
        ///
        List list;
        ///
-       string separator_;
+       std::string separator_;
 };
 
 #endif
index 6eab513d2927c3a00c5c56702a92ed3675c606b2..a71692b6826903e34f4bfda7b9654aa0c4cc1200 100644 (file)
@@ -47,7 +47,7 @@ using lyx::support::bformat;
 using lyx::support::MakeAbsPath;
 
 using std::find;
-
+using std::string;
 using std::vector;
 
 
index df086a8f7e67d0531bf8477fa027066cde3eec58..cb7246f6dbcdd34cdd7eaa2fe7caf22c7c0e7230 100644 (file)
@@ -17,7 +17,8 @@
 
 #include <boost/utility.hpp>
 
-#include "support/std_string.h"
+#include <string>
+
 
 class Buffer;
 class Change;
@@ -76,10 +77,10 @@ public:
        /// reload the contained buffer
        void reload();
        /// create a new buffer based on template
-       bool newFile(string const & fname, string const & tname,
+       bool newFile(std::string const & fname, std::string const & tname,
                     bool named = true);
        /// load a buffer into the view
-       bool loadLyXFile(string const & name, bool tolastfiles = true);
+       bool loadLyXFile(std::string const & name, bool tolastfiles = true);
 
        /// fit the user cursor within the visible view
        bool fitCursor();
@@ -137,14 +138,14 @@ public:
        /// Select the "current" word
        void selectLastWord();
        /// replace the currently selected word
-       void replaceWord(string const & replacestring);
+       void replaceWord(std::string const & replacestring);
        /// Update after spellcheck finishes
        void endOfSpellCheck();
        /// return the next word
        WordLangTuple const nextWord(float & value);
 
        /// move cursor to the named label
-       void gotoLabel(string const & label);
+       void gotoLabel(std::string const & label);
 
        /// undo last action
        void undo();
@@ -154,7 +155,7 @@ public:
        /// get the stored error list
        ErrorList const & getErrorList() const;
        /// show the error list to the user
-       void showErrorList(string const &) const;
+       void showErrorList(std::string const &) const;
        /// set the cursor based on the given TeX source row
        void setCursorFromRow(int row);
 
@@ -162,10 +163,10 @@ public:
         * Insert an inset into the buffer.
         * Place it in a layout of lout,
         */
-       bool insertInset(InsetOld * inset, string const & lout = string());
+       bool insertInset(InsetOld * inset, std::string const & lout = std::string());
 
        /// Inserts a lyx file at cursor position. return false if it fails
-       bool insertLyXFile(string const & file);
+       bool insertLyXFile(std::string const & file);
 
        /// FIXME
        bool fitLockedInsetCursor(int x, int y, int asc, int desc);
@@ -189,12 +190,12 @@ public:
        void switchKeyMap();
 
        /// FIXME
-       bool ChangeRefsIfUnique(string const & from, string const & to);
+       bool ChangeRefsIfUnique(std::string const & from, std::string const & to);
 
        /// get the contents of the window system clipboard
-       string const getClipboard() const;
+       std::string const getClipboard() const;
        /// fill the window system clipboard
-       void stuffClipboard(string const &) const;
+       void stuffClipboard(std::string const &) const;
        /// tell the window system we have a selection
        void haveSelection(bool sel);
 
index 9fd3e0646498a8beffdc083d5c742da3136585e3..fb0b6ba74ae907de89e170c79f9776659190e430 100644 (file)
@@ -92,6 +92,7 @@ using lyx::support::system_lyxdir;
 using std::endl;
 using std::make_pair;
 using std::min;
+using std::string;
 
 
 extern BufferList bufferlist;
index 223a3e58b5e7d3713f547a5864cf12eb52d00211..58704e2d704817caaab6877184bebeba1c599232 100644 (file)
@@ -64,9 +64,9 @@ struct BufferView::Pimpl : public boost::signals::trackable {
         * change but don't need the full update() logic
         */
        ///
-       bool newFile(string const &, string const &, bool);
+       bool newFile(std::string const &, std::string const &, bool);
        ///
-       bool loadLyXFile(string const &, bool);
+       bool loadLyXFile(std::string const &, bool);
        ///
        void workAreaResize();
        ///
@@ -106,7 +106,7 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        void center();
        ///
-       bool insertInset(InsetOld * inset, string const & lout = string());
+       bool insertInset(InsetOld * inset, std::string const & lout = std::string());
        ///
        void updateInset(InsetOld const * inset);
        /// a function should be executed from the workarea
@@ -152,8 +152,8 @@ private:
         * string. May only be used with InsetCommand-derived insets
         * Returns true if a screen update is needed.
         */
-       bool ChangeInsets(InsetOld::Code code, string const & from,
-                         string const & to);
+       bool ChangeInsets(InsetOld::Code code, std::string const & from,
+                         std::string const & to);
 
        ///
        friend class BufferView;
@@ -171,13 +171,13 @@ private:
        ///
        Timeout cursor_timeout;
        ///
-       void stuffClipboard(string const &) const;
+       void stuffClipboard(std::string const &) const;
        ///
        bool using_xterm_cursor;
        ///
        struct Position {
                /// Filename
-               string filename;
+               std::string filename;
                /// Cursor paragraph Id
                int par_id;
                /// Cursor position
@@ -185,7 +185,7 @@ private:
                ///
                Position() : par_id(0), par_pos(0) {}
                ///
-               Position(string const & f, int id, lyx::pos_type pos)
+               Position(std::string const & f, int id, lyx::pos_type pos)
                        : filename(f), par_id(id), par_pos(pos) {}
        };
        ///
@@ -193,7 +193,7 @@ private:
        /// Get next inset of this class from current cursor position
        InsetOld * getInsetByCode(InsetOld::Code code);
        ///
-       void MenuInsertLyXFile(string const & filen);
+       void MenuInsertLyXFile(std::string const & filen);
        /// our workarea
        WorkArea & workarea() const;
 };
index d362d815786d61f0d90d36b3b7fbddc9fee41489..2eef9c5bbd7c1d386a844d73cac983e875376b23 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <boost/assert.hpp>
 
+using std::string;
+
 
 /** The four LaTeX itemize environment default bullets
  */
index 5e4e72684b90c0aef286fcf013597f2cd27bb036..0f16f15ce25b7b3ec1c12a9731dbc6e85d29a22f 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef BULLET_H
 #define BULLET_H
 
-#include "support/std_string.h"
+#include <string>
 
 ///
 class Bullet {
@@ -22,7 +22,7 @@ public:
        Bullet(int f = -1, int c = -1, int s = -1);
 
        ///
-       explicit Bullet(string const &);
+       explicit Bullet(std::string const &);
 
        ///
        void setCharacter(int);
@@ -31,7 +31,7 @@ public:
        ///
        void setSize(int);
        ///
-       void setText(string const &);
+       void setText(std::string const &);
        ///
        int getCharacter() const;
        ///
@@ -39,7 +39,7 @@ public:
        ///
        int getSize() const;
        ///
-       string const & getText() const;
+       std::string const & getText() const;
        ///
        Bullet & operator=(Bullet const &);
        ///
@@ -70,9 +70,9 @@ private:
        ///
        void generateText() const;
        ///
-       static string const bulletSize(int);
+       static std::string const bulletSize(int);
        ///
-       static string const bulletEntry(int, int);
+       static std::string const bulletEntry(int, int);
 
        ///
        int font;
@@ -97,7 +97,7 @@ private:
            or one generated internally from the font, character
            and size settings.
        */
-       mutable string text;
+       mutable std::string text;
 };
 
 
index e33ad74353b18bb1dac88c6bc6cdd42283d86468..7be9bf58776d32cdc33f554e249f0ad9eec101a9 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-06  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * All most all file in all subdirs: Make <string> be the prefered
+       way of getting to std::string, add using declarations.
 
 2003-10-06  André Pönitz  <poenitz@gmx.net>
 
@@ -24,7 +28,7 @@
 
 2003-09-26  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
-       * lyx_main.C: remove the global debug object 
+       * lyx_main.C: remove the global debug object
 
        * debug.h: adjust for new debugstream
 
index 9d3b7262087fc7f99faf4b269d8f1f99c3f57f9a..4f2fc6c6ae8bc36f3ed3526a4e5ddeacfaf398a2 100644 (file)
@@ -30,7 +30,7 @@ using lyx::support::split;
 using lyx::support::Systemcall;
 
 using std::getline;
-
+using std::string;
 using std::ifstream;
 
 
index aa8311501dfdb1ac3f602cea8822c9bca0ef8641..8af93a465c6d656a41d99b4a0c11fc4cb1da7a7d 100644 (file)
 #ifndef CHKTEX_H
 #define CHKTEX_H
 
-#include "support/std_string.h"
-
 class LyXLex;
 class TeXErrors;
 
+#include <string>
+
+
 ///
 class Chktex {
 public:
@@ -25,8 +26,8 @@ public:
          @param file name of the (temporary) latex file.
          @param path name of the files original path.
        */
-       Chktex(string const & cmd, string const & file,
-              string const & path);
+       Chktex(std::string const & cmd, std::string const & file,
+              std::string const & path);
 
        /** Runs chktex.
            @return -1 if fail, number of messages otherwise.
@@ -37,13 +38,13 @@ private:
        int scanLogFile(TeXErrors &);
 
        ///
-       string cmd;
+       std::string cmd;
 
        ///
-       string file;
+       std::string file;
 
        ///
-       string path;
+       std::string path;
 };
 
 #endif
index fe04a7e3e11fa8499da2e1cf0e9bc10044e64ea8..a1205d72a49aa6c72dd5b21a61a69cea3d8d804d 100644 (file)
@@ -37,6 +37,7 @@ using std::for_each;
 using std::make_pair;
 using std::pair;
 using std::vector;
+using std::string;
 
 
 typedef limited_stack<pair<ParagraphList, textclass_type> > CutStack;
index ceefdc20d6970c45e7401da2f997871f444d843d..25cb10c13651f1bc628a0f17c5e9101d4a3245e7 100644 (file)
@@ -17,7 +17,6 @@
 #include "ParagraphList_fwd.h"
 #include "support/types.h"
 
-#include "support/std_string.h"
 #include <vector>
 
 class Buffer;
@@ -30,7 +29,7 @@ class Paragraph;
 namespace CutAndPaste {
 
 ///
-std::vector<string>
+std::vector<std::string>
 CutAndPaste::availableSelections(Buffer const & buffer);
 
 ///
index 865c6250b3df4d35c408c92c4a0888ed7b9f03ab..a6440486cf2b0b323aa58aae8aad4ff347ae8d92 100644 (file)
@@ -38,7 +38,7 @@ using lyx::support::sum;
 using std::endl;
 using std::flush;
 using std::getline;
-
+using std::string;
 using std::ofstream;
 using std::ifstream;
 
index 94cc3abd916e487920103974eb95bba521aafd8d..6148f67736507a140c768734bf38d61d91a45ba8 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef DEP_TABLE_H
 #define DEP_TABLE_H
 
-#include "support/std_string.h"
 #include <map>
 
 ///
@@ -22,28 +21,28 @@ public:
        /** This one is a little bit harder since we need the absolute
          filename. Should we insert files with .sty .cls etc as
          extension? */
-       void insert(string const & f, bool upd = false);
+       void insert(std::string const & f, bool upd = false);
        ///
        void update();
 
        ///
-       void write(string const & f) const;
+       void write(std::string const & f) const;
        /// returns true if dep file was read successfully
-       bool read(string const & f);
+       bool read(std::string const & f);
        /// returns true if any of the files has changed
        bool sumchange() const;
        /// return true if fil has changed.
-       bool haschanged(string const & fil) const;
+       bool haschanged(std::string const & fil) const;
        /// return true if a file with extension ext has changed.
-       bool extchanged(string const & ext) const;
+       bool extchanged(std::string const & ext) const;
        ///
-       bool exist(string const & fil) const;
+       bool exist(std::string const & fil) const;
        /// returns true if any files with ext exist
-       bool ext_exist(string const & ext) const;
+       bool ext_exist(std::string const & ext) const;
        ///
-       void remove_files_with_extension(string const &);
+       void remove_files_with_extension(std::string const &);
        ///
-       void remove_file(string const &);
+       void remove_file(std::string const &);
 private:
        ///
        struct dep_info {
@@ -57,7 +56,7 @@ private:
                bool changed() const;
        };
        ///
-       typedef std::map<string, dep_info> DepList;
+       typedef std::map<std::string, dep_info> DepList;
        ///
        DepList deplist;
 };
index c48c12d388bd26a098ef9d16c0b28b70ba4969c2..7b1bf81ccf3e3f6807fb80acced4354aac2ae71c 100644 (file)
@@ -13,6 +13,8 @@
 #include "FloatList.h"
 #include "Floating.h"
 
+using std::string;
+
 // This class is now mostly finished, except one thing, it is a global
 // object. This will not do. The user (and layout files) are free to
 // create floats and modify them to fit into a certain document. So it is
index 2b6082d24016ad28bc2815f26933137cfea84b67..212050f4e15105a48b0c2277b6fdda28d2ef2d0b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <map>
 
-#include "support/std_string.h"
 
 class Floating;
 
@@ -22,7 +21,7 @@ class Floating;
 class FloatList {
 public:
        ///
-       typedef std::map<string, Floating> List;
+       typedef std::map<std::string, Floating> List;
        ///
        typedef List::const_iterator const_iterator;
        ///
@@ -34,15 +33,15 @@ public:
        ///
        void newFloat(Floating const & fl);
        ///
-       string const defaultPlacement(string const & t) const;
+       std::string const defaultPlacement(std::string const & t) const;
        ///
-       bool typeExist(string const & t) const;
+       bool typeExist(std::string const & t) const;
        ///
-       Floating const & getType(string const & t) const;
+       Floating const & getType(std::string const & t) const;
        ///
-       void erase(string const & t);
+       void erase(std::string const & t);
        ///
-       const_iterator operator[](string const & t) const;
+       const_iterator operator[](std::string const & t) const;
 private:
        ///
        List list;
index f4f4156852a0e7f667f4c3bf0a67ba1ee9e4e7f8..824b1b7df12899385915627db12c477d9a24a4a8 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "Floating.h"
 
+using std::string;
+
 
 Floating::Floating()
 {}
index e3687e83ac14652ee9b44bafdf3ae556f169cb2f..51c3dfb170cb00e504ca7faf4092c10e19ded38d 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef FLOATING_H
 #define FLOATING_H
 
-#include "support/std_string.h"
+#include <string>
 
 /** This is a "float layout" object. It contains the parameters for how to
     handle the different kinds of floats, default ones and user created ones.
@@ -25,41 +25,41 @@ public:
        ///
        Floating();
        ///
-       Floating(string const & type, string const & placement,
-                string const & ext, string const & within,
-                string const & style, string const & name,
-                string const & listName, bool builtin = false);
+       Floating(std::string const & type, std::string const & placement,
+                std::string const & ext, std::string const & within,
+                std::string const & style, std::string const & name,
+                std::string const & listName, bool builtin = false);
        ///
-       string const & type() const;
+       std::string const & type() const;
        ///
-       string const & placement() const;
+       std::string const & placement() const;
        ///
-       string const & ext() const;
+       std::string const & ext() const;
        ///
-       string const & within() const;
+       std::string const & within() const;
        ///
-       string const & style() const;
+       std::string const & style() const;
        ///
-       string const & name() const;
+       std::string const & name() const;
        ///
-       string const & listName() const;
+       std::string const & listName() const;
        ///
        bool builtin() const;
 private:
        ///
-       string type_;
+       std::string type_;
        ///
-       string placement_;
+       std::string placement_;
        ///
-       string ext_;
+       std::string ext_;
        ///
-       string within_;
+       std::string within_;
        ///
-       string style_;
+       std::string style_;
        ///
-       string name_;
+       std::string name_;
        ///
-       string listName_;
+       std::string listName_;
        ///
        bool builtin_;
 };
index 48a829eedfed0e855a1fbc11cdea61f757aa7e9a..ba42c4b761f01f5481ba5cbff244a6c4df003351 100644 (file)
@@ -26,6 +26,7 @@
 using lyx::support::compare_ascii_no_case;
 
 using std::endl;
+using std::string;
 
 
 namespace {
index d07e899dc875fd88e951d6407cfb05652301ede0..b62673dd52f71e0972a18314035221c90aff7027 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef LCOLOR_H
 #define LCOLOR_H
 
-#include "support/std_string.h"
 #include <boost/scoped_ptr.hpp>
 
 /**
@@ -195,42 +194,42 @@ public:
 
        ///
        void LColor::fill(LColor::color c,
-                       string const & lyxname,
-                       string const & x11name = string(),
-                       string const & latexname = string(),
-                       string const & guiname = string());
+                       std::string const & lyxname,
+                       std::string const & x11name = std::string(),
+                       std::string const & latexname = std::string(),
+                       std::string const & guiname = std::string());
 
        /// set the given LyX color to the color defined by the X11 name given
-       void setColor(LColor::color col, string const & x11name);
+       void setColor(LColor::color col, std::string const & x11name);
        /// set the given LyX color to the color defined by the X11 name given
-       bool setColor(string const & lyxname, string const & x11name);
+       bool setColor(std::string const & lyxname, std::string const & x11name);
 
        /// Get GUI name of color
-       string const getGUIName(LColor::color c) const;
+       std::string const getGUIName(LColor::color c) const;
        ///
-       string const getGUIName(string const & s) const;
+       std::string const getGUIName(std::string const & s) const;
 
        /// Get X11 name of color
-       string const getX11Name(LColor::color c) const;
+       std::string const getX11Name(LColor::color c) const;
        ///
-       string const getX11Name(string const & s) const;
+       std::string const getX11Name(std::string const & s) const;
 
        /// Get LaTeX name of color
-       string const getLaTeXName(LColor::color c) const;
+       std::string const getLaTeXName(LColor::color c) const;
        ///
-       string const getLaTeXName(string const & s) const;
+       std::string const getLaTeXName(std::string const & s) const;
 
        /// Get LyX name of color
-       string const getLyXName(LColor::color c) const;
+       std::string const getLyXName(LColor::color c) const;
        /// (string-to-string version not needed as it is identity)
 
        ///
        size_t size() const;
 
        /// get the color from the GUI name
-       LColor::color getFromGUIName(string const & guiname) const;
+       LColor::color getFromGUIName(std::string const & guiname) const;
        /// get the color from the LyX name
-       LColor::color getFromLyXName(string const & lyxname) const;
+       LColor::color getFromLyXName(std::string const & lyxname) const;
 private:
        ///
        struct Pimpl;
index e0ad7193314658835043845027d6e923128fdcd8..1f2a2e53435289a79817d5e40435e69744b48b7c 100644 (file)
@@ -59,7 +59,7 @@ using std::sscanf;
 
 using std::endl;
 using std::getline;
-
+using std::string;
 using std::ifstream;
 using std::set;
 using std::vector;
index 148f700088a6a36daf14973543597832e16174e3..2c358795a7d9db0de106b8ce30a4eb14a49aacf3 100644 (file)
 #define LATEX_H
 
 #include "latexrunparams.h"
-#include "support/std_string.h"
-#include <vector>
-#include <set>
 
 #include <boost/utility.hpp>
 #include <boost/signals/signal1.hpp>
 
+#include <vector>
+#include <set>
+
 class DepTable;
 
 ///
@@ -32,16 +32,16 @@ private:
                ///
                Error () : error_in_line(0) {}
                ///
-               Error(int line, string const & desc, string const & text)
+               Error(int line, std::string const & desc, std::string const & text)
                        : error_in_line(line),
                          error_desc(desc),
                          error_text(text) {}
                /// what line in the TeX file the error occured in
                int error_in_line;
                /// The kind of error
-               string error_desc;
+               std::string error_desc;
                /// The line/cmd that caused the error.
-               string error_text;
+               std::string error_text;
        };
 public:
        ///
@@ -51,8 +51,8 @@ public:
        ///
        Errors::const_iterator end() const { return errors.end(); }
        ///
-       void insertError(int line, string const & error_desc,
-                        string const & error_text);
+       void insertError(int line, std::string const & error_desc,
+                        std::string const & error_text);
 private:
        ///
        Errors errors;
@@ -64,13 +64,13 @@ public:
        ///
        Aux_Info() {}
        ///
-       string aux_file;
+       std::string aux_file;
        ///
-       std::set<string> citations;
+       std::set<std::string> citations;
        ///
-       std::set<string> databases;
+       std::set<std::string> databases;
        ///
-       std::set<string> styles;
+       std::set<std::string> styles;
 };
 
 
@@ -125,15 +125,15 @@ public:
        };
 
        /// This signal emits an informative message
-       boost::signal1<void, string> message;
+       boost::signal1<void, std::string> message;
 
 
        /**
           cmd = the latex command, file = name of the (temporary) latex file,
           path = name of the files original path.
        */
-       LaTeX(string const & cmd, LatexRunParams const &,
-             string const & file, string const & path);
+       LaTeX(std::string const & cmd, LatexRunParams const &,
+             std::string const & file, std::string const & path);
 
        /// runs LaTeX several times
        int run(TeXErrors &);
@@ -149,22 +149,22 @@ private:
        int startscript();
 
        /// The dependency file.
-       string depfile;
+       std::string depfile;
 
        ///
        void deplog(DepTable & head);
 
        ///
-       bool runMakeIndex(string const &);
+       bool runMakeIndex(std::string const &);
 
        ///
-       std::vector<Aux_Info> const scanAuxFiles(string const &);
+       std::vector<Aux_Info> const scanAuxFiles(std::string const &);
 
        ///
-       Aux_Info const scanAuxFile(string const &);
+       Aux_Info const scanAuxFile(std::string const &);
 
        ///
-       void scanAuxFile(string const &, Aux_Info &);
+       void scanAuxFile(std::string const &, Aux_Info &);
 
        ///
        void updateBibtexDependencies(DepTable &,
@@ -177,19 +177,19 @@ private:
        void deleteFilesOnError() const;
 
        ///
-       string cmd;
+       std::string cmd;
 
        ///
-       string file;
+       std::string file;
 
        ///
-       string path;
+       std::string path;
 
        /// used by scanLogFile
        int num_errors;
 
        /// The name of the final output file.
-       string output_file;
+       std::string output_file;
 
        ///
        LatexRunParams runparams;
index cf96b66de4d428db2c735047d7222d842925ff9d..b70b7decc3bd2c30121f78351f05b251fbbb4ae7 100644 (file)
@@ -35,7 +35,7 @@ using lyx::support::OnlyPath;
 
 using std::endl;
 using std::find;
-
+using std::string;
 using std::list;
 using std::ostream;
 using std::ostringstream;
index 90b49c2ba520b6817bf8a44fa26d2c658bfdd6d3..daa6231c2b3f966a6558dbfdc0e38f92efc30c38 100644 (file)
@@ -14,8 +14,6 @@
 #define LATEXFEATURES_H
 
 
-#include "support/std_string.h"
-
 #include <set>
 #include <list>
 #include <map>
@@ -42,41 +40,41 @@ public:
        ///
        LaTeXFeatures(Buffer const &, BufferParams const &);
        /// The packages needed by the document
-       string const getPackages() const;
+       std::string const getPackages() const;
        /// The macros definitions needed by the document
-       string const getMacros() const;
+       std::string const getMacros() const;
        ///
-       string const getBabelOptions() const;
+       std::string const getBabelOptions() const;
        /// The definitions needed by the document's textclass
-       string const getTClassPreamble() const;
+       std::string const getTClassPreamble() const;
        /// The sgml definitions needed by the document (dobook/linuxdoc)
-       string const getLyXSGMLEntities() const;
+       std::string const getLyXSGMLEntities() const;
        /// The SGML Required to include the files added with includeFile();
-       string const getIncludedFiles(string const & fname) const;
+       std::string const getIncludedFiles(std::string const & fname) const;
        /// Include a file for use with the SGML entities
-       void includeFile(string const & key, string const & name);
+       void includeFile(std::string const & key, std::string const & name);
        /// The float definitions.
        void getFloatDefinitions(std::ostream & os) const;
        /// Print requirements to lyxerr
        void showStruct() const;
        ///
-       void addExternalPreamble(string const &);
+       void addExternalPreamble(std::string const &);
        /// Provide a string name-space to the requirements
-       void require(string const & name);
+       void require(std::string const & name);
        /// Is the package required?
-       bool isRequired(string const & name) const;
+       bool isRequired(std::string const & name) const;
        ///
-       void useFloat(string const & name);
+       void useFloat(std::string const & name);
        ///
        void useLanguage(Language const *);
        ///
        bool hasLanguages() const;
        ///
-       string getLanguages() const;
+       std::string getLanguages() const;
        ///
-       std::set<string> getEncodingSet(string const & doc_encoding) const;
+       std::set<std::string> getEncodingSet(std::string const & doc_encoding) const;
        ///
-       void useLayout(string const & lyt);
+       void useLayout(std::string const & lyt);
        ///
        Buffer const & buffer() const;
        ///
@@ -85,10 +83,10 @@ public:
        bool useBabel() const;
 
 private:
-       std::list<string> usedLayouts_;
+       std::list<std::string> usedLayouts_;
 
        /// Static preamble bits from the external material insets
-       typedef std::list<string> FeaturesList;
+       typedef std::list<std::string> FeaturesList;
        ///
        FeaturesList features_;
        ///
@@ -98,11 +96,11 @@ private:
        ///
        LanguageList UsedLanguages_;
        ///
-       typedef std::set<string> UsedFloats;
+       typedef std::set<std::string> UsedFloats;
        ///
        UsedFloats usedFloats_;
        ///
-       typedef std::map<string , string> FileMap;
+       typedef std::map<std::string , std::string> FileMap;
        ///
        FileMap IncludedFiles_;
        ///
index d7eee1b91e03e92acbb4571e7c306c1006bebe44..ff0c40e1f24f41d599f21f8f645475930738ac1f 100644 (file)
@@ -26,7 +26,7 @@ using lyx::support::split;
 using lyx::support::trim;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 
 
index 3e0241acbd4ca124a50c4aeee7d679344be69c92..ce2d452764c82948c0369da90f70ff639ea58c21 100644 (file)
 
 #include "lfuns.h"
 
-#include "support/std_string.h"
 #include <boost/utility.hpp>
-#include <map>
 
+#include <map>
+#include <string>
 
 class FuncRequest;
 
@@ -34,14 +34,14 @@ private:
        /// information for an action
        struct func_info {
                /// the action name
-               string name;
+               std::string name;
                /// the func_attrib values set
                unsigned int attrib;
        };
 
 public:
        /// type for map between a function name and its action
-       typedef std::map<string, kb_action> func_map;
+       typedef std::map<std::string, kb_action> func_map;
        /// type for map between an action and its info
        typedef std::map<kb_action, func_info> info_map;
 
@@ -60,10 +60,10 @@ public:
         * If you include arguments in func_name, a new pseudoaction
         * will be created if needed.
         */
-       FuncRequest lookupFunc(string const & func_name) const;
+       FuncRequest lookupFunc(std::string const & func_name) const;
 
        /// Return the name (and argument) associated with the given (pseudo) action
-       string const getActionName(kb_action action) const;
+       std::string const getActionName(kb_action action) const;
 
        /// True if the command has `flag' set
        bool funcHasFlag(kb_action action, func_attrib flag) const;
@@ -81,7 +81,7 @@ private:
        /// populate the action container with our actions
        void init();
        /// add the given action
-       void newFunc(kb_action, string const & name, unsigned int attrib);
+       void newFunc(kb_action, std::string const & name, unsigned int attrib);
 
        /**
         * This is a list of all the LyXFunc names with the
index d3b9e8a205f3bbc2df90f7c86d4d2cb7ad384a4e..6bf49ce94772da1f0898555ea306c791853bc00d 100644 (file)
@@ -55,7 +55,7 @@ using std::endl;
 using std::find_if;
 using std::max;
 using std::sort;
-
+using std::string;
 using std::vector;
 
 
index 2d9bfa887eb8c6c9e42d94945985bde1d9fa10a2..6234d3a874a316988ee6a24d516da826a6520b89 100644 (file)
@@ -16,8 +16,6 @@
 #include "FuncStatus.h"
 #include "funcrequest.h"
 
-#include "support/std_string.h"
-
 #include <boost/shared_ptr.hpp>
 
 #include <vector>
@@ -73,23 +71,23 @@ public:
        explicit MenuItem(Kind kind);
 
        MenuItem(Kind kind,
-                string const & label,
-                string const & command = string(),
+                std::string const & label,
+                std::string const & command = std::string(),
                 bool optional = false);
 
        MenuItem(Kind kind,
-                string const & label,
+                std::string const & label,
                 FuncRequest const & func,
                 bool optional = false);
 
        /// This one is just to please boost::shared_ptr<>
        ~MenuItem();
        /// The label of a given menuitem
-       string const label() const;
+       std::string const label() const;
        /// The keyboard shortcut (usually underlined in the entry)
-       string const shortcut() const;
+       std::string const shortcut() const;
        /// The complete label, with label and shortcut separated by a '|'
-       string const fulllabel() const { return label_;}
+       std::string const fulllabel() const { return label_;}
        /// The kind of entry
        Kind kind() const { return kind_; }
        /// the action (if relevant)
@@ -103,11 +101,11 @@ public:
        /// returns the status of the lfun associated with this entry
        void status(FuncStatus const & status) { status_ = status; }
        /// returns the binding associated to this action
-       string const binding() const;
+       std::string const binding() const;
        /// the description of the  submenu (if relevant)
-       string const & submenuname() const { return submenuname_; }
+       std::string const & submenuname() const { return submenuname_; }
        /// set the description of the  submenu
-       void submenuname(string const & name) { submenuname_ = name; }
+       void submenuname(std::string const & name) { submenuname_ = name; }
        ///
        Menu * submenu() const { return submenu_.get(); }
        ///
@@ -118,11 +116,11 @@ private:
        ///
        Kind kind_;
        ///
-       string label_;
+       std::string label_;
        ///
        FuncRequest func_;
        ///
-       string submenuname_;
+       std::string submenuname_;
        ///
        bool optional_;
        ///
@@ -142,20 +140,20 @@ public:
        ///
        typedef ItemList::size_type size_type;
        ///
-       explicit Menu(string const & name = string())
+       explicit Menu(std::string const & name = std::string())
                : name_(name) {}
        ///
        Menu & add(MenuItem const &, LyXView const * view = 0);
        ///
        Menu & read(LyXLex &);
        ///
-       string const & name() const { return name_; }
+       std::string const & name() const { return name_; }
        ///
        bool empty() const { return items_.empty(); }
        ///
        ItemList::size_type size() const { return items_.size(); }
        ///
-       bool hasSubmenu(string const &) const;
+       bool hasSubmenu(std::string const &) const;
        ///
        const_iterator begin() const {
                return items_.begin();
@@ -173,7 +171,7 @@ private:
        ///
        ItemList items_;
        ///
-       string name_;
+       std::string name_;
 };
 
 
@@ -189,11 +187,11 @@ public:
        ///
        void add(Menu const &);
        ///
-       bool hasMenu(string const &) const;
+       bool hasMenu(std::string const &) const;
        ///
-       Menu & getMenu(string const &);
+       Menu & getMenu(std::string const &);
        ///
-       Menu const & getMenu(string const &) const;
+       Menu const & getMenu(std::string const &) const;
        ///
        Menu const & getMenubar() const;
        ///
index 8758cb6aed1e4975ef1a0762c5e195926b649600..cd9bd49bc0c99c76c7d426dce711a3d36f6ba7e1 100644 (file)
@@ -37,6 +37,7 @@ using lyx::support::rtrim;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
+using std::string;
 
 
 // Initialize static member var.
index 03cd251c8999bcec7c18b99b892cb72dc4fda338..60aaeba7aabc2fc321439c875c447250efe30b45 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "support/types.h"
 
-#include "support/std_string.h"
 #include <iosfwd>
 
 class BufferView;
@@ -90,13 +89,13 @@ public:
        ///
        void appendix(bool);
        ///
-       string const & labelString() const;
+       std::string const & labelString() const;
        ///
-       void labelString(string const &);
+       void labelString(std::string const &);
        ///
-       string const & labelWidthString() const;
+       std::string const & labelWidthString() const;
        ///
-       void labelWidthString(string const &);
+       void labelWidthString(std::string const &);
        ///
        LyXLength const & leftIndent() const;
        ///
@@ -122,12 +121,12 @@ private:
     The function also generates some additional info needed by the
     Paragraph dialog.
  */
-void params2string(Paragraph const & par, string & data);
+void params2string(Paragraph const & par, std::string & data);
 
 /** Given \param data, an encoding of the ParagraphParameters generated
     in the Paragraph dialog, this function sets the current paragraph
     appropriately.
  */
-void setParagraphParams(BufferView & bv, string const & data);
+void setParagraphParams(BufferView & bv, std::string const & data);
 
 #endif
index 2e77863104f9b1a7c72378c87b4d0861330fb4bc..a45d00fbfcbcf87b3a561df8b0a2da1feb5f4123 100644 (file)
@@ -51,9 +51,9 @@ struct ParameterStruct {
        ///
        bool appendix;
        ///
-       string labelstring;
+       std::string labelstring;
        ///
-       string labelwidthstring;
+       std::string labelwidthstring;
        ///
        LyXLength leftindent;
 };
index 0813327dcc386581472ba5114e91b378947bf521..850eedf279d55a14295a6cb11d69ecfbd6fec250 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <boost/assert.hpp>
 
+using std::string;
+
 
 PrinterParams::PrinterParams(Target t,
                             string const & pname,
index 8ce49bf5db20ccda8b30023ee0e66a33bcb561fe..443f29aa4aec627a57425ecffa4ab578acbee148 100644 (file)
@@ -33,9 +33,9 @@ struct PrinterParams {
        ///
        Target target;
        ///
-       string printer_name;
+       std::string printer_name;
        ///
-       string file_name;
+       std::string file_name;
        ///
        bool all_pages;
        /** Print a page range. Both from_page and to_page used to be strings
@@ -76,8 +76,8 @@ struct PrinterParams {
        void testInvariant() const;
        ///
        PrinterParams(Target t = PRINTER,
-                     string const & pname = lyxrc.printer,
-                     string const & fname = string(),
+                     std::string const & pname = lyxrc.printer,
+                     std::string const & fname = std::string(),
                      bool all = true,
                      unsigned int from = 1,
                      unsigned int to = 0,
index 3e89caa85f4c111ad2ed1b223f2dba48f1d0bc44..5bdc5b3963dbc419ba6dfcfcd947d25f648af39f 100644 (file)
 #ifndef SECTIONING_H
 #define SECTIONING_H
 
+#include "lyxfont.h"
+
 #include <map>
 
-#include "support/std_string.h"
-#include "lyxfont.h"
 
 ///
 class Section {
 public:
        ///
-       string const & name() const;
+       std::string const & name() const;
        ///
        int level() const;
        ///
-       string const & indent() const;
+       std::string const & indent() const;
        ///
-       string const & beforeskip() const;
+       std::string const & beforeskip() const;
        ///
-       string const & afterskip() const;
+       std::string const & afterskip() const;
        ///
        LyXFont const & style() const;
        ///
        bool display() const;
 private:
        ///
-       string name_;
+       std::string name_;
        ///
        int level_;
        ///
-       string indent_;
+       std::string indent_;
        ///
-       string beforeskip_;
+       std::string beforeskip_;
        ///
-       string afterskip_;
+       std::string afterskip_;
        ///
        LyXFont style_;
 };
@@ -54,7 +54,7 @@ private:
 class SectioningList {
 private:
        ///
-       typedef std::map<string, Section> List_;
+       typedef std::map<std::string, Section> List_;
        ///
        List_ list_;
 };
index e2142caa29d92951aae6b61665ccd806ca8e1848..0987e337bd6638280578d0b169ae1558dbaefbd5 100644 (file)
@@ -18,6 +18,7 @@ using std::ios;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
+using std::string;
 
 
 string const Spacing::spacing_string[]
index 5c51bb49f43e779c3cd266533e8cff3b091972cd..4d25b3fd9684d8872bf44ed32b1a2d271892fbbb 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <iosfwd>
 
-#include "support/std_string.h"
 
 ///
 class Spacing {
@@ -38,7 +37,7 @@ public:
        Spacing(Spacing::Space sp, float val = 1.0) {
                set(sp, val);
        }
-       Spacing(Spacing::Space sp, string const & val) {
+       Spacing(Spacing::Space sp, std::string const & val) {
                set(sp, val);
        }
        ///
@@ -52,13 +51,13 @@ public:
        ///
        void set(Spacing::Space sp, float val = 1.0);
        ///
-       void set(Spacing::Space sp, string const & val) ;
+       void set(Spacing::Space sp, std::string const & val) ;
        ///
        void writeFile(std::ostream &, bool para = false) const;
        ///
-       string const writeEnvirBegin() const;
+       std::string const writeEnvirBegin() const;
        ///
-       string const writeEnvirEnd() const;
+       std::string const writeEnvirEnd() const;
 
 private:
        ///
@@ -66,7 +65,7 @@ private:
        ///
        float value;
        /// names of line spacing
-       static string const spacing_string[];
+       static std::string const spacing_string[];
 };
 
 
index c0b6508f20a4eab8567ca0d30503b36678f853da..dbdf6b742068f7f7b4962c4e3d5eee5701fe0f8a 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef SPELL_BASE_H
 #define SPELL_BASE_H
 
-#include "support/std_string.h" // can't forward declare...
+#include <string>
 
 class BufferParams;
 class WordLangTuple;
@@ -49,10 +49,10 @@ public:
        virtual void accept(WordLangTuple const &) = 0;
 
        /// return the next near miss after a MISSED result
-       virtual string const nextMiss() = 0;
+       virtual std::string const nextMiss() = 0;
 
        /// give an error message on messy exit
-       virtual string const error() = 0;
+       virtual std::string const error() = 0;
 
 };
 
index 752f53685a5d2632d96627ed571f215029303640..4d8032554abbdadc4517d6fa60213274bb9cf333 100644 (file)
@@ -21,7 +21,7 @@ using std::endl;
 using std::find_if;
 using std::for_each;
 using std::make_pair;
-
+using std::string;
 using std::ostream;
 
 extern BufferList bufferlist;
index eea20a7ffa091d763556e2d7d39ced455e019179..d8ae4ce383267033b6a9442f59fd05729acaccdb 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef TEXT_CACHE_H
 #define TEXT_CACHE_H
 
-#include "support/std_string.h"
-
 #include <iosfwd>
 #include <map>
 
@@ -117,7 +115,7 @@ public:
        LyXText * findFit(Buffer * b, int p);
        /** Lists all the LyXText's currently in the cache.
            Uses msg as header for the list. */
-       void show(std::ostream & o, string const & msg);
+       void show(std::ostream & o, std::string const & msg);
        /// Gives info on a single LyXText (buffer and width)
        static void show(std::ostream & o, value_type const &);
        /** Adds a LyXText to the cache iff its buffer is
index 37376bc5b052610ad48cca8bcdfd908059b720a9..e8a6385cffdd7157bfda523e46aa61cb6567c4f0 100644 (file)
 
 #include "Thesaurus.h"
 
-#ifdef HAVE_LIBAIKSAURUS
-
 #include <algorithm>
+#include <string>
+
+using std::string;
+
+#ifdef HAVE_LIBAIKSAURUS
 
 using std::sort;
 
index f92f2e2510d9c1a2c54661490681caf1ab8ac75f..a673e04765a1f6792932768a066f4945e18b7fb9 100644 (file)
@@ -15,7 +15,6 @@
 #include <vector>
 #include <map>
 
-#include "support/std_string.h"
 #ifdef HAVE_LIBAIKSAURUS
 #include AIKSAURUS_H_LOCATION
 #endif
@@ -31,12 +30,12 @@ public:
        ///
        ~Thesaurus();
 
-       typedef std::map<string, std::vector<string> > Meanings;
+       typedef std::map<std::string, std::vector<std::string> > Meanings;
 
        /**
         * look up some text in the thesaurus
         */
-       Meanings lookup(string const & text);
+       Meanings lookup(std::string const & text);
 
 private:
 #ifdef HAVE_LIBAIKSAURUS
index 01cad0b86b886240f6ae501aa18297975547540f..cebf1262bd759ea66a4f49474e7a2e95ab0c54df 100644 (file)
@@ -30,7 +30,7 @@ using lyx::support::subst;
 
 using std::endl;
 using std::make_pair;
-
+using std::string;
 using std::vector;
 
 
index 58a88765be4143b651e6638f7494f2ef4c8a97e1..873da4df313f35effb82cb7d5bba3721b31d10a7 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <vector>
 
-#include "support/std_string.h"
 
 class LyXLex;
 
@@ -36,7 +35,7 @@ public:
        };
 
        /// action, tooltip
-       typedef std::pair<FuncRequest, string> Item;
+       typedef std::pair<FuncRequest, std::string> Item;
 
        /// the toolbar items
        typedef std::vector<Item> Items;
@@ -56,7 +55,7 @@ public:
        /// a toolbar
        struct Toolbar {
                /// toolbar UI name
-               string name;
+               std::string name;
                /// toolbar contents
                Items items;
                /// flags
@@ -85,12 +84,12 @@ public:
        void readToolbars(LyXLex &);
 
        /// return a full path of an XPM for the given action
-       static string const getIcon(FuncRequest const &);
+       static std::string const getIcon(FuncRequest const &);
 
 private:
        /// add the given lfun with tooltip if relevant
        void add(Toolbar & tb, FuncRequest const &,
-                string const & tooltip = string());
+                std::string const & tooltip = std::string());
 
        /// all the toolbars
        Toolbars toolbars;
index b73b63a15605124192945e2f8197b09487c9599b..5a06b64347ba5d5558a1f3ef8d8574b30032bbcc 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef VARIABLES_H
 #define VARIABLES_H
 
-#include "support/std_string.h"
 #include <map>
 
 
 class Variables {
 public:
        ///
-       void set(string const &, string const &);
+       void set(std::string const &, std::string const &);
        ///
-       string const get(string const &) const;
+       std::string const get(std::string const &) const;
        ///
-       bool isSet(string const & var) const;
+       bool isSet(std::string const & var) const;
        ///
-       string const expand(string const &) const;
+       std::string const expand(std::string const &) const;
 private:
        ///
-       typedef std::map<string, string> Vars;
+       typedef std::map<std::string, std::string> Vars;
        ///
        Vars vars_;
 };
index e0a1d8eed4c3670afc93e449dfeeb81e236a5ef8..69d2f742f372224c4a0f23313d08278fd78a2273 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef WORD_LANG_TUPLE_H
 #define WORD_LANG_TUPLE_H
 
-#include "support/std_string.h"
-
 /**
  * A word and its given language code ("en_US").
  * This is used for spellchecking.
@@ -22,25 +20,25 @@ class WordLangTuple {
 public:
        WordLangTuple() {}
 
-       WordLangTuple(string const & w, string const & c)
+       WordLangTuple(std::string const & w, std::string const & c)
                : word_(w), code_(c)
        {}
 
        /// return the word
-       string const & word() const {
+       std::string const & word() const {
                return word_;
        }
 
        /// return its language code
-       string const & lang_code() const {
+       std::string const & lang_code() const {
                return code_;
        }
 
 private:
        /// the word
-       string word_;
+       std::string word_;
        /// language code of word
-       string code_;
+       std::string code_;
 };
 
 #endif // WORD_LANG_TUPLE_H
index fed15aef27ef79842f5d0c31409761443f07584e..a81b67325c66523f67643cb055bc69a644dedc0b 100644 (file)
@@ -21,6 +21,8 @@
 using lyx::support::token;
 using lyx::support::trim;
 
+using std::string;
+
 
 bool operator==(Author const & l, Author const & r)
 {
index a928bc8d1a907ec9130d506a595c5cddafb5b2dc..d3e8964041b92dc62443cbd6d69f0da0680f5dac 100644 (file)
 
 #include <map>
 #include <iosfwd>
+#include <string>
 
-#include "support/std_string.h"
 
 class Author {
 public:
        Author() {}
 
-       Author(string const & name, string const & email)
+       Author(std::string const & name, std::string const & email)
                : name_(name), email_(email) {}
 
-       string const name() const {
+       std::string const name() const {
                return name_;
        }
 
-       string const email() const {
+       std::string const email() const {
                return email_;
        }
 
        friend  std::istream & operator>>(std::istream & os, Author & a);
 
 private:
-       string name_;
+       std::string name_;
 
-       string email_;
+       std::string email_;
 };
 
 
index 3d3fb2c897d82ef602725b993ab4be1232d7d933..6bf7ac231f538200a3bb28d506fea6fc4d3d8a00 100644 (file)
@@ -123,6 +123,7 @@ using std::ofstream;
 using std::pair;
 using std::stack;
 using std::vector;
+using std::string;
 
 
 // all these externs should eventually be removed.
index 3e8ab31b8580d3e406001cc3a7456cbe5cc2d7bd..ff15795ee4c36176a3a20f9d81e1c099d3f05d43 100644 (file)
@@ -22,7 +22,6 @@
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/signal1.hpp>
 
-#include "support/std_string.h"
 #include <iosfwd>
 #include <map>
 #include <utility>
@@ -65,7 +64,7 @@ public:
            \param file
            \param b  optional \c false by default
        */
-       explicit Buffer(string const & file, bool b = false);
+       explicit Buffer(std::string const & file, bool b = false);
 
        /// Destructor
        ~Buffer();
@@ -73,7 +72,7 @@ public:
        /** High-level interface to buffer functionality.
            This function parses a command string and executes it
        */
-       bool dispatch(string const & command, bool * result = 0);
+       bool dispatch(std::string const & command, bool * result = 0);
 
        /// Maybe we know the function already by number...
        bool dispatch(FuncRequest const & func, bool * result = 0);
@@ -82,9 +81,9 @@ public:
        void loadAutoSaveFile();
 
        /// load a new file
-       bool readFile(string const & filename);
+       bool readFile(std::string const & filename);
 
-       bool readFile(string const & filename, ParagraphList::iterator pit);
+       bool readFile(std::string const & filename, ParagraphList::iterator pit);
 
        /// read the header, returns number of unknown tokens
        int readHeader(LyXLex & lex);
@@ -96,14 +95,14 @@ public:
        bool readBody(LyXLex &, ParagraphList::iterator pit);
 
        /// This parses a single token
-       int readParagraph(LyXLex &, string const & token,
+       int readParagraph(LyXLex &, std::string const & token,
                          ParagraphList & pars,
                          ParagraphList::iterator & pit,
                          lyx::depth_type & depth);
 
        ///
        void insertStringAsLines(ParagraphList::iterator &, lyx::pos_type &,
-                                LyXFont const &, string const &);
+                                LyXFont const &, std::string const &);
        ///
        ParIterator getParFromID(int id) const;
        /// do we have a paragraph with this id?
@@ -112,7 +111,7 @@ public:
        /// This signal is emitted when a parsing error shows up.
        boost::signal1<void, ErrorItem> error;
        /// This signal is emitted when some message shows up.
-       boost::signal1<void, string> message;
+       boost::signal1<void, std::string> message;
        /// This signal is emitted when the buffer busy status change.
        boost::signal1<void, bool> busy;
        /// This signal is emitted when the buffer readonly status change.
@@ -132,24 +131,24 @@ public:
        bool save() const;
 
        /// Write file. Returns \c false if unsuccesful.
-       bool writeFile(string const &) const;
+       bool writeFile(std::string const &) const;
 
        ///
-       void writeFileAscii(string const &, int);
+       void writeFileAscii(std::string const &, int);
        ///
        void writeFileAscii(std::ostream &, int);
        ///
-       string const asciiParagraph(Paragraph const &, unsigned int linelen,
+       std::string const asciiParagraph(Paragraph const &, unsigned int linelen,
                                    bool noparbreak = false) const;
        /// Just a wrapper for the method below, first creating the ofstream.
-       void makeLaTeXFile(string const & filename,
-                          string const & original_path,
+       void makeLaTeXFile(std::string const & filename,
+                          std::string const & original_path,
                           LatexRunParams const &,
                           bool output_preamble = true,
                           bool output_body = true);
        ///
        void makeLaTeXFile(std::ostream & os,
-                          string const & original_path,
+                          std::string const & original_path,
                           LatexRunParams const &,
                           bool output_preamble = true,
                           bool output_body = true);
@@ -163,15 +162,15 @@ public:
                                  ParagraphList::iterator par,
                                  lyx::depth_type depth) const;
        ///
-       void makeLinuxDocFile(string const & filename,
+       void makeLinuxDocFile(std::string const & filename,
                              bool nice, bool only_body = false);
        ///
-       void makeDocBookFile(string const & filename,
+       void makeDocBookFile(std::string const & filename,
                             bool nice, bool only_body = false);
        /// returns the main language for the buffer (document)
        Language const * getLanguage() const;
        /// get l10n translated to the buffers language
-       string const B_(string const & l10n) const;
+       std::string const B_(std::string const & l10n) const;
 
        ///
        int runChktex();
@@ -180,7 +179,7 @@ public:
        ///
        bool isBakClean() const;
        ///
-       bool isDepClean(string const & name) const;
+       bool isDepClean(std::string const & name) const;
 
        /// mark the main lyx file as not needing saving
        void markClean() const;
@@ -189,7 +188,7 @@ public:
        void markBakClean();
 
        ///
-       void markDepClean(string const & name);
+       void markDepClean(std::string const & name);
 
        ///
        void setUnnamed(bool flag = true);
@@ -201,25 +200,25 @@ public:
        void markDirty();
 
        /// Returns the buffer's filename. It is always an absolute path.
-       string const & fileName() const;
+       std::string const & fileName() const;
 
        /// Returns the the path where the buffer lives.
        /// It is always an absolute path.
-       string const & filePath() const;
+       std::string const & filePath() const;
 
        /** A transformed version of the file name, adequate for LaTeX.
            \param no_path optional if \c true then the path is stripped.
        */
-       string const getLatexName(bool no_path = true) const;
+       std::string const getLatexName(bool no_path = true) const;
 
        /// Get the name and type of the log.
-       std::pair<LogType, string> const getLogName() const;
+       std::pair<LogType, std::string> const getLogName() const;
 
        /// Change name of buffer. Updates "read-only" flag.
-       void setFileName(string const & newfile);
+       void setFileName(std::string const & newfile);
 
        /// Name of the document's parent
-       void setParentName(string const &);
+       void setParentName(std::string const &);
 
        /// Is buffer read-only?
        bool isReadonly() const;
@@ -251,9 +250,9 @@ public:
        void validate(LaTeXFeatures &) const;
 
        /// return all bibkeys from buffer and its childs
-       void fillWithBibKeys(std::vector<std::pair<string, string> > & keys) const;
+       void fillWithBibKeys(std::vector<std::pair<std::string, std::string> > & keys) const;
        ///
-       void getLabelList(std::vector<string> &) const;
+       void getLabelList(std::vector<std::string> &) const;
 
        ///
        void changeLanguage(Language const * from, Language const * to);
@@ -288,7 +287,7 @@ public:
        LyXVC const & lyxvc() const;
 
        /// Where to put temporary files.
-       string const & temppath() const;
+       std::string const & temppath() const;
 
        /** If we are writing a nice LaTeX file or not.
            While writing as LaTeX, tells whether we are
@@ -373,7 +372,7 @@ private:
            \param par if != 0 insert the file.
            \return \c false if method fails.
        */
-       bool readFile(LyXLex &, string const & filename,
+       bool readFile(LyXLex &, std::string const & filename,
                      ParagraphList::iterator pit);
 
        bool do_writeFile(std::ostream & ofs) const;
index 9319a9d22d13fb196b64fab0dabb521fae19936c..425bb3431a06d92f1d118ba5ad002ddb21bcb34d 100644 (file)
@@ -40,6 +40,8 @@ using lyx::support::OnlyFilename;
 using lyx::support::OnlyPath;
 using lyx::support::unlink;
 
+using std::string;
+
 
 extern BufferList bufferlist;
 
index 24b5a5d97a1923b5474e4eb0bbe048699d81d208..7d741eaf3721fed416ce76c85fe49a4de8281657 100644 (file)
@@ -12,7 +12,8 @@
 #ifndef BUFFER_FUNCS_H
 #define BUFFER_FUNCS_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 class Buffer;
 class TeXErrors;
@@ -22,16 +23,16 @@ class ErrorList;
  *  Loads a LyX file \c filename into \c Buffer
  *  and \return success status.
  */
-bool loadLyXFile(Buffer *, string const & filename);
+bool loadLyXFile(Buffer *, std::string const & filename);
 
 /* Make a new file (buffer) with name \c filename based on a template
  * named \c templatename
  */
-Buffer * newFile(string const & filename, string const & templatename,
+Buffer * newFile(std::string const & filename, std::string const & templatename,
                 bool isNamed = false);
 
 ///return the format of the buffer on a string
-string const BufferFormat(Buffer const & buffer);
+std::string const BufferFormat(Buffer const & buffer);
 ///
 void bufferErrors(Buffer const &, TeXErrors const &);
 ///
index 45157aabf46fbdaf12ac625f28f31f48226b383e..d1b215bf86f454e9f377b8279ad238139ff97360 100644 (file)
@@ -42,7 +42,7 @@ using std::endl;
 using std::find;
 using std::find_if;
 using std::for_each;
-
+using std::string;
 using std::vector;
 
 
index b7ca0cf59e490d0dcc476c6902db479c08772bbe..84f9a8047ed5e30b52ff3d00ad056c97c4ddeeb4 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef BUFFER_LIST_H
 #define BUFFER_LIST_H
 
-#include "support/std_string.h"
-
 #include <boost/utility.hpp>
 
 #include <vector>
@@ -33,7 +31,7 @@ public:
        bool quitWriteAll();
 
        /// create a new buffer
-       Buffer * newBuffer(string const & s, bool ronly = false);
+       Buffer * newBuffer(std::string const & s, bool ronly = false);
 
        /// delete a buffer
        void release(Buffer * b);
@@ -42,10 +40,10 @@ public:
        void closeAll();
 
        /// returns a vector with all the buffers filenames
-       std::vector<string> const getFileNames() const;
+       std::vector<std::string> const getFileNames() const;
 
        /// FIXME
-       void updateIncludedTeXfiles(string const &, LatexRunParams const &);
+       void updateIncludedTeXfiles(std::string const &, LatexRunParams const &);
 
        /// emergency save for all buffers
        void emergencyWriteAll();
@@ -60,18 +58,18 @@ public:
        Buffer * first();
 
        /// returns true if the buffer exists already
-       bool exists(string const &) const;
+       bool exists(std::string const &) const;
 
        /// returns true if the buffer is loaded
        bool isLoaded(Buffer const * b) const;
 
        /// returns a pointer to the buffer with the given name.
-       Buffer * getBuffer(string const &);
+       Buffer * getBuffer(std::string const &);
        /// returns a pointer to the buffer with the given number.
        Buffer * getBuffer(unsigned int);
 
        /// reset current author for all buffers
-       void setCurrentAuthor(string const & name, string const & email);
+       void setCurrentAuthor(std::string const & name, std::string const & email);
 
 private:
        /// ask to save a buffer on quit, returns false if should cancel
index 49a69d0716e083fd3027605af8c25147b09a7aba..243fd69b42f362a46d04dfc23bd1177b64082280 100644 (file)
@@ -49,7 +49,7 @@ using lyx::support::rtrim;
 using lyx::support::tokenPos;
 
 using std::endl;
-
+using std::string;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
index 6df7e92ea0171bf1404b3de0004f3b5f0363ad9f..c28025658afd2d0b496e73e6d969996b1d95d3e2 100644 (file)
@@ -23,7 +23,6 @@
 #include "support/copied_ptr.h"
 #include "support/types.h"
 
-#include "support/std_string.h"
 #include <vector>
 
 
@@ -57,7 +56,7 @@ public:
        ~BufferParams();
 
        /// read a header token, if unrecognised, return it or an unknown class name
-       string const readToken(LyXLex & lex, string const & token);
+       std::string const readToken(LyXLex & lex, std::string const & token);
 
        ///
        void writeFile(std::ostream &) const;
@@ -92,7 +91,7 @@ public:
        ///
        InsetQuotes::quote_times quotes_times;
        ///
-       string fontsize;
+       std::string fontsize;
        ///
        lyx::textclass_type textclass;
        ///
@@ -110,29 +109,29 @@ public:
        ///
        bool use_geometry;
        ///
-       string paperwidth;
+       std::string paperwidth;
        ///
-       string paperheight;
+       std::string paperheight;
        ///
-       string leftmargin;
+       std::string leftmargin;
        ///
-       string topmargin;
+       std::string topmargin;
        ///
-       string rightmargin;
+       std::string rightmargin;
        ///
-       string bottommargin;
+       std::string bottommargin;
        ///
-       string headheight;
+       std::string headheight;
        ///
-       string headsep;
+       std::string headsep;
        ///
-       string footskip;
+       std::string footskip;
 
        /* some LaTeX options */
        /// The graphics driver
-       string graphicsDriver;
+       std::string graphicsDriver;
        ///
-       string fonts;
+       std::string fonts;
        ///
        Spacing & spacing();
        Spacing const & spacing() const;
@@ -146,19 +145,19 @@ public:
        BranchList & branchlist();
        BranchList const & branchlist() const;
        ///
-       string inputenc;
+       std::string inputenc;
        ///
-       string preamble;
+       std::string preamble;
        ///
-       string options;
+       std::string options;
        ///
-       string float_placement;
+       std::string float_placement;
        ///
        unsigned int columns;
        ///
        LyXTextClass::PageSides sides;
        ///
-       string pagestyle;
+       std::string pagestyle;
        /// \param index should lie in the range 0 <= \c index <= 3.
        Bullet & temp_bullet(lyx::size_type index);
        Bullet const & temp_bullet(lyx::size_type index) const;
@@ -186,7 +185,7 @@ public:
        /// revision tracking for this buffer ?
        bool tracking_changes;
        /// Time ago we agreed that this was a buffer property [ale990407]
-       string parentname;
+       std::string parentname;
        ///
        bool compressed;
 
@@ -197,9 +196,9 @@ public:
        /// map of the file's author IDs to buffer author IDs
        std::vector<int> author_map;
        ///
-       string const dvips_options() const;
+       std::string const dvips_options() const;
        ///
-       string const paperSizeName() const;
+       std::string const paperSizeName() const;
 
 private:
        /** Use the Pimpl idiom to hide those member variables that would otherwise
index 0d56ad2f6d4800808e5cf1308dcb92df44173723..cf8b1b3049773c696407cf67ee2bf49bf10c2f3b 100644 (file)
@@ -42,6 +42,7 @@ using lyx::support::bformat;
 
 using std::istringstream;
 using std::ostringstream;
+using std::string;
 
 
 namespace {
@@ -374,7 +375,7 @@ string const currentState(BufferView * bv)
                state << inset << " id: " << inset->id()
                      << " text: " << inset->getLyXText(bv, true)
                                                << " owner: " << inset->owner();
-       else 
+       else
                state << -1;
 #endif
        return state.str();
index 1bf167bd9be74e5d3f0d60130c62d7662ae36a6b..6ecc07ea7f12f21460e8d3b62c11fc7f451cb41b 100644 (file)
 #ifndef BUFFERVIEW_FUNCS_H
 #define BUFFERVIEW_FUNCS_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 class BufferView;
 class LyXFont;
 class LyXText;
 
+
 namespace bv_funcs {
 
 /** Set \param data using \param font and \param toggle.
  *  If successful, returns true.
  */
-bool font2string(LyXFont const & font, bool toggle, string & data);
+bool font2string(LyXFont const & font, bool toggle, std::string & data);
 /** Set \param font and \param toggle using \param data.
  *  If successful, returns true.
  */
-bool string2font(string const & data, LyXFont & font, bool & toggle);
-/** Returns the current freefont, encoded as a string to be passed to the
+bool string2font(std::string const & data, LyXFont & font, bool & toggle);
+/** Returns the current freefont, encoded as a std::string to be passed to the
  *  frontends.
  */
-string const freefont2string();
+std::string const freefont2string();
 /** Set the freefont using the contents of \param data dispatched from
  *  the frontends and apply it at the current cursor location.
  */
-void update_and_apply_freefont(BufferView * bv, string const & data);
+void update_and_apply_freefont(BufferView * bv, std::string const & data);
 /** Apply the contents of freefont at the current cursor location.
  */
 void apply_freefont(BufferView * bv);
@@ -62,7 +64,7 @@ extern void bold(BufferView *);
 ///
 extern void noun(BufferView *);
 ///
-extern void lang(BufferView *, string const &);
+extern void lang(BufferView *, std::string const &);
 ///
 extern void number(BufferView *);
 ///
@@ -78,9 +80,9 @@ extern void styleReset(BufferView *);
 ///
 extern void underline(BufferView *);
 ///
-extern void fontSize(BufferView *, string const &);
+extern void fontSize(BufferView *, std::string const &);
 /// Returns the current font and depth as a message.
-extern string const currentState(BufferView *);
+extern std::string const currentState(BufferView *);
 ///
 extern void toggleAndShow(BufferView *, LyXFont const &,
                          bool toggleall = true);
index 68d267850fdae2532722e560b75165d683fe0e2f..8da7e289f231323545237f07cba04e9c5ee83999 100644 (file)
 
 #include <boost/assert.hpp>
 
+using lyx::pos_type;
 
 using std::endl;
-using lyx::pos_type;
+using std::string;
 
 
 bool operator==(Change const & l, Change const & r)
index bddc529d87f1e61a4ad3eacff7c9976b079d44b4..e97330e2ff656542af8955fa7b42a7e54dca04d1 100644 (file)
@@ -34,7 +34,7 @@ using std::make_pair;
 
 using std::ifstream;
 using std::pair;
-
+using std::string;
 
 
 bool CharacterSet::loadFile(string const & fname)
index 550139236e11ed4313144d59a21abea6a1c722b8..468ce2399540d2aee9d8b1f731370ff81dee9132 100644 (file)
@@ -15,8 +15,8 @@
 
 #include <map>
 #include <utility>
+#include <string>
 
-#include "support/std_string.h"
 
 /// a class for mapping char strings such as "\^{A}" to the integer value
 class CharacterSet {
@@ -29,21 +29,21 @@ public:
         * and parses it. This function is only intended to be
         * called once.
         */
-       bool loadFile(string const & charset);
+       bool loadFile(std::string const & charset);
        /// return the name of the current charset
-       string const & getName() const;
+       std::string const & getName() const;
        /**
         * Return the encoded charset value of the given string.
         *
         * The bool value is false if an encoding could not be found
         * in this charset, and true otherwise.
         */
-       std::pair<bool, int> const encodeString(string const &) const;
+       std::pair<bool, int> const encodeString(std::string const &) const;
 private:
        /// charset name
-       string name_;
+       std::string name_;
        ///
-       typedef std::map<string, unsigned char> Cdef;
+       typedef std::map<std::string, unsigned char> Cdef;
        /// mapping from string representation to encoded value
        Cdef map_;
 };
index 48cad85390c2d2e2f0788524bd309fba9702cd7b..370843056bf2a18ce44abe252813bc62dd0746c0 100644 (file)
@@ -48,7 +48,7 @@ using lyx::support::Systemcall;
 
 using std::endl;
 using std::find_if;
-
+using std::string;
 using std::vector;
 
 
index 2286e0460871759354c1cbc98abc19884915eefc..6c0930a39863e415b44e4cdbe3859c580059b51c 100644 (file)
@@ -14,8 +14,9 @@
 
 #include "graph.h"
 
-#include "support/std_string.h"
 #include <vector>
+#include <string>
+
 
 class Buffer;
 class Format;
@@ -27,18 +28,18 @@ class LatexRunParams;
 class Converter {
 public:
        ///
-       Converter(string const & f, string const & t, string const & c,
-                 string const & l);
+       Converter(std::string const & f, std::string const & t, std::string const & c,
+                 std::string const & l);
        ///
        void readFlags();
        ///
-       string from;
+       std::string from;
        ///
-       string to;
+       std::string to;
        ///
-       string command;
+       std::string command;
        ///
-       string flags;
+       std::string flags;
        ///
        Format const * From;
        ///
@@ -52,12 +53,12 @@ public:
        bool need_aux;
        /// If the converter put the result in a directory, then result_dir
        /// is the name of the directory
-       string result_dir;
+       std::string result_dir;
        /// If the converter put the result in a directory, then result_file
        /// is the name of the main file in that directory
-       string result_file;
+       std::string result_file;
        /// Command to convert the program output to a LaTeX log file format
-       string parselog;
+       std::string parselog;
 };
 
 
@@ -75,44 +76,44 @@ public:
                return converterlist_[i];
        }
        ///
-       Converter const * getConverter(string const & from, string const & to);
+       Converter const * getConverter(std::string const & from, std::string const & to);
        ///
-       int getNumber(string const & from, string const & to);
+       int getNumber(std::string const & from, std::string const & to);
        ///
-       void add(string const & from, string const & to,
-                string const & command, string const & flags);
+       void add(std::string const & from, std::string const & to,
+                std::string const & command, std::string const & flags);
        //
-       void erase(string const & from, string const & to);
+       void erase(std::string const & from, std::string const & to);
        ///
        void sort();
        ///
        std::vector<Format const *> const
-       getReachableTo(string const & target, bool clear_visited);
+       getReachableTo(std::string const & target, bool clear_visited);
        ///
        std::vector<Format const *> const
-       getReachable(string const & from, bool only_viewable,
+       getReachable(std::string const & from, bool only_viewable,
                     bool clear_visited);
        ///
-       bool isReachable(string const & from, string const & to);
+       bool isReachable(std::string const & from, std::string const & to);
        ///
-       Graph::EdgePath const getPath(string const & from, string const & to);
+       Graph::EdgePath const getPath(std::string const & from, std::string const & to);
        ///
        bool usePdflatex(Graph::EdgePath const & path);
        ///
        bool convert(Buffer const * buffer,
-                    string const & from_file, string const & to_file_base,
-                    string const & from_format, string const & to_format,
-                    string & to_file);
+                    std::string const & from_file, std::string const & to_file_base,
+                    std::string const & from_format, std::string const & to_format,
+                    std::string & to_file);
        ///
        bool convert(Buffer const * buffer,
-                    string const & from_file, string const & to_file_base,
-                    string const & from_format, string const & to_format);
+                    std::string const & from_file, std::string const & to_file_base,
+                    std::string const & from_format, std::string const & to_format);
        ///
        void update(Formats const & formats);
        ///
        void updateLast(Formats const & formats);
        ///
-       bool formatIsUsed(string const & format);
+       bool formatIsUsed(std::string const & format);
        ///
        const_iterator begin() const {
                return converterlist_.begin();
@@ -127,17 +128,17 @@ private:
        std::vector<Format const *> const
        Converters::intToFormat(std::vector<int> const & input);
        ///
-       bool scanLog(Buffer const & buffer, string const & command,
-                    string const & filename);
+       bool scanLog(Buffer const & buffer, std::string const & command,
+                    std::string const & filename);
        ///
-       bool runLaTeX(Buffer const & buffer, string const & command,
+       bool runLaTeX(Buffer const & buffer, std::string const & command,
                      LatexRunParams const &);
        ///
        ConverterList converterlist_;
        ///
-       string latex_command_;
+       std::string latex_command_;
        ///
-       bool move(string const & from, string const & to, bool copy);
+       bool move(std::string const & from, std::string const & to, bool copy);
        ///
        Graph G_;
 };
index 2e3fef17c1a41c627fbb0d4bb11e653acd847c44..851b87e0574743596037cc26267aa459d29215cf 100644 (file)
@@ -23,6 +23,7 @@
 
 using std::endl;
 using std::ostringstream;
+using std::string;
 
 
 Counter::Counter()
index c5390ab3218550c253b51e362af52592108d866e..92da5a3c759e18def0db6e36b1c1ae3183ce7d22 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef COUNTERS_H
 #define COUNTERS_H
 
-#include "support/std_string.h"
 #include <map>
+#include <string>
 
 
 /// This represents a single counter.
@@ -35,16 +35,16 @@ public:
        ///
        void reset();
        /// Returns the master counter of this counter
-       string master() const;
+       std::string master() const;
        /// sets the master counter for this counter
-       void setMaster(string const & m);
+       void setMaster(std::string const & m);
 private:
        ///
        int value_;
        /// contains master counter name; master counter is the counter
        /// that, if stepped (incremented) zeroes this counter. E.g.
        /// "subparagraph"'s master is "paragraph".
-       string master_;
+       std::string master_;
 };
 
 
@@ -53,38 +53,38 @@ private:
 class Counters {
 public:
        /// Add a new counter to array.
-       void newCounter(string const & newc);
+       void newCounter(std::string const & newc);
        /// Add new counter having oldc as its master.
-       void newCounter(string const & newc, string const & oldc);
+       void newCounter(std::string const & newc, std::string const & oldc);
        ///
-       void set(string const & ctr, int val);
+       void set(std::string const & ctr, int val);
        ///
-       void addto(string const & ctr, int val);
+       void addto(std::string const & ctr, int val);
        ///
-       int value(string const & ctr) const;
+       int value(std::string const & ctr) const;
        /// Step (increment by one) counter named by arg, and
        /// zeroes slave counter(s) for which it is the master.
        /// NOTE sub-slaves not zeroed! That happens at slave's
        /// first step 0->1. Seems to be sufficient.
-       void step(string const & ctr);
+       void step(std::string const & ctr);
        /// Reset all counters.
        void reset();
        /// Reset counters matched by match string.
-       void reset(string const & match);
+       void reset(std::string const & match);
        /// Copy counters whose name matches match from the &from to
        /// the &to array of counters. Empty string matches all.
-       void copy(Counters & from, Counters & to, string const & match = string());
+       void copy(Counters & from, Counters & to, std::string const & match = std::string());
        /// A complete expanded label, like 2.1.4 for a subsubsection
        /// according to the given format
-       string counterLabel(string const & format);
+       std::string counterLabel(std::string const & format);
        /// A complete label, like 1.a for enumerations
-       string enumLabel(string const & ctr, string const & langtype = "latin");
+       std::string enumLabel(std::string const & ctr, std::string const & langtype = "latin");
 private:
        /// A counter label's single item, 1 for subsection number in
        /// the 2.1.4 subsubsection number label.
-       string labelItem(string const & ctr, string const & numbertype);
+       std::string labelItem(std::string const & ctr, std::string const & numbertype);
        /// Maps counter (layout) names to actual counters.
-       typedef std::map<string, Counter> CounterList;
+       typedef std::map<std::string, Counter> CounterList;
        /// Instantiate.
        CounterList counterList;
 
index 6065bec95f5caeb1199123bc94c7cff04bdb1ee7..8e4faa8aebc8054461a9000ef950e45015fbc811 100644 (file)
@@ -25,7 +25,7 @@ using lyx::support::isStrInt;
 using lyx::support::strToInt;
 
 using std::setw;
-
+using std::string;
 using std::ostream;
 
 namespace {
index a0e30aaaaa00f6bbf679f484c369a9491a14fb49..30fcd2501e16285bf891c0900b61fabc409a437d 100644 (file)
@@ -14,7 +14,6 @@
 #define LYXDEBUG_H
 
 
-#include "support/std_string.h"
 #include "support/debugstream.h"
 
 /** Ideally this should have been a namespace, but since we try to be
@@ -85,7 +84,7 @@ struct lyx_debug_trait {
        /** A function to convert symbolic string names on debug levels
            to their numerical value.
        */
-       static type value(string const & val);
+       static type value(std::string const & val);
 
        /** Display the tags and descriptions of the current debug level
            of ds
index 4ef0bd9ead7cc4f2cad8484fd5affb22d6419a0e..d4c37d8e438400e5d3354a3cff69315a7b496abb 100644 (file)
@@ -23,6 +23,8 @@ using std::strtol;
 #endif
 
 using std::endl;
+using std::string;
+
 
 Encodings encodings;
 
index 832cf465170eec87c68bb457a54edb7eef6fe0ee..830a05c3c491f11cd24430441a9761d41b9644ae 100644 (file)
@@ -13,8 +13,9 @@
 #ifndef ENCODING_H
 #define ENCODING_H
 
-#include "support/std_string.h"
 #include <map>
+#include <string>
+
 
 ///
 typedef unsigned short int Uchar;
@@ -25,17 +26,17 @@ public:
        ///
        Encoding() {}
        ///
-       Encoding(string const & n, string const & l, Uchar const * e)
+       Encoding(std::string const & n, std::string const & l, Uchar const * e)
                : Name_(n), LatexName_(l) {
                for (int i = 0; i < 256; ++i)
                        encoding_table[i] = e[i];
        }
        ///
-       string const & Name() const {
+       std::string const & Name() const {
                return Name_;
        }
        ///
-       string const & LatexName() const {
+       std::string const & LatexName() const {
                return LatexName_;
        }
        ///
@@ -44,9 +45,9 @@ public:
        }
 private:
        ///
-       string Name_;
+       std::string Name_;
        ///
-       string LatexName_;
+       std::string LatexName_;
        ///
        Uchar encoding_table[256];
 };
@@ -56,13 +57,13 @@ extern Encoding symbol_encoding;
 class Encodings {
 public:
        ///
-       typedef std::map<string, Encoding> EncodingList;
+       typedef std::map<std::string, Encoding> EncodingList;
        ///
        Encodings();
        ///
-       void read(string const & filename);
+       void read(std::string const & filename);
        ///
-       Encoding const * getEncoding(string const & encoding) const;
+       Encoding const * getEncoding(std::string const & encoding) const;
        ///
        Encoding const * symbol_encoding() {
                return &symbol_encoding_;
index 1b4d7914a5e42619c8f0575131a07ea9c25101f8..3052ba49f8d96c8bec745a211dcd54517ad4ea6f 100644 (file)
@@ -12,6 +12,8 @@
 
 #include "errorlist.h"
 
+using std::string;
+
 
 ErrorItem::ErrorItem(string const & error, string const & description,
                     int par_id, int pos_start, int pos_end)
@@ -23,5 +25,3 @@ ErrorItem::ErrorItem(string const & error, string const & description,
 ErrorItem::ErrorItem()
        : par_id(-1),  pos_start(0),  pos_end(0)
 {}
-
-
index 92e5260cf6caec9a0b621a7a0ce8e7bf421bc23a..20b386c8418b65761cf858d8bcb5ebc48c2f45c9 100644 (file)
 #ifndef ERRORLIST_H
 #define ERRORLIST_H
 
-#include "support/std_string.h"
-
 #include <vector>
+#include <string>
 
 class Buffer;
 
 /// A class to hold an error item
 struct ErrorItem {
-       string error;
-       string description;
+       std::string error;
+       std::string description;
        int par_id;
        int pos_start;
        int pos_end;
-       ErrorItem(string const & error, string const & description,
+       ErrorItem(std::string const & error, std::string const & description,
                  int parid, int posstart, int posend);
        ErrorItem();
 };
index 375416fa8d14032021a75eec4a6485ceaed6a74f..6905871c23987d274d59600020692061abaa4a18 100644 (file)
@@ -38,7 +38,7 @@ using lyx::support::contains;
 using lyx::support::MakeDisplayPath;
 
 using std::find;
-
+using std::string;
 using std::vector;
 
 
index 02afbfcfca96849ad364c45a9b8dd799b1a81c61..985b213dd00219f1e37c3ed5c442ed98681d4122 100644 (file)
@@ -14,7 +14,7 @@
 #define EXPORTER_H
 
 #include <vector>
-#include "support/std_string.h"
+
 
 class Buffer;
 class Format;
@@ -23,18 +23,18 @@ class Exporter {
 public:
        ///
        static
-       bool Export(Buffer * buffer, string const & format,
-                   bool put_in_tempdir, string & result_file);
+       bool Export(Buffer * buffer, std::string const & format,
+                   bool put_in_tempdir, std::string & result_file);
        ///
        static
-       bool Export(Buffer * buffer, string const & format,
+       bool Export(Buffer * buffer, std::string const & format,
                    bool put_in_tempdir);
        ///
        static
-       bool Preview(Buffer * buffer, string const & format);
+       bool Preview(Buffer * buffer, std::string const & format);
        ///
        static
-       bool IsExportable(Buffer const & buffer, string const & format);
+       bool IsExportable(Buffer const & buffer, std::string const & format);
        ///
        static
        std::vector<Format const *> const
index 1eb5e163bd5c5372710f849198108987b99b92d8..eca35ef59d489f1e0d3f8900785e73cee1c35ddd 100644 (file)
@@ -60,6 +60,7 @@
 using lyx::support::compare_ascii_no_case;
 
 using std::endl;
+using std::string;
 
 
 InsetOld * createInset(FuncRequest const & cmd)
index 76fe2ebf4abe5ada8beccb9e031112971465ed77..970b9fe1823951987d69d23108447073b7247178 100644 (file)
@@ -34,6 +34,8 @@ using lyx::support::QuoteName;
 using lyx::support::subst;
 using lyx::support::Systemcall;
 
+using std::string;
+
 
 namespace {
 
index e960f602a940f3c22ee4d996d723d9b74474b911..5603367ad13692e415c316e0eb9d5d5caa8a522a 100644 (file)
 #ifndef FORMAT_H
 #define FORMAT_H
 
-
-#include "support/std_string.h"
-
 #include <vector>
+#include <string>
 
 class Buffer;
 
 class Format {
 public:
        ///
-       Format(string const & n, string const & e, string const & p,
-              string const & s, string const & v);
+       Format(std::string const & n, std::string const & e, std::string const & p,
+              std::string const & s, std::string const & v);
        ///
        bool dummy() const;
        ///
        bool isChildFormat() const;
        ///
-       string const parentFormat() const;
+       std::string const parentFormat() const;
        ///
-       string const & name() const {
+       std::string const & name() const {
                return name_;
        }
        ///
-       string const & extension() const {
+       std::string const & extension() const {
                return extension_;
        }
        ///
-       string const & prettyname() const {
+       std::string const & prettyname() const {
                return prettyname_;
        }
        ///
-       string const & shortcut() const {
+       std::string const & shortcut() const {
                return shortcut_;
        }
        ///
-       string const & viewer() const {
+       std::string const & viewer() const {
                return viewer_;
        }
        ///
-       void setViewer(string const & v) {
+       void setViewer(std::string const & v) {
                viewer_ = v;
        }
 private:
-       string name_;
+       std::string name_;
        ///
-       string extension_;
+       std::string extension_;
        ///
-       string prettyname_;
+       std::string prettyname_;
        ///
-       string shortcut_;
+       std::string shortcut_;
        ///
-       string viewer_;
+       std::string viewer_;
 };
 
 
@@ -81,27 +79,27 @@ public:
                return formatlist[i];
        }
        ///
-       Format const * getFormat(string const & name) const;
+       Format const * getFormat(std::string const & name) const;
        ///
-       int getNumber(string const & name) const;
+       int getNumber(std::string const & name) const;
        ///
-       void add(string const & name);
+       void add(std::string const & name);
        ///
-       void add(string const & name, string const & extension,
-                string const & prettyname, string const & shortcut);
+       void add(std::string const & name, std::string const & extension,
+                std::string const & prettyname, std::string const & shortcut);
        ///
-       void erase(string const & name);
+       void erase(std::string const & name);
        ///
        void sort();
        ///
-       void setViewer(string const & name, string const & command);
+       void setViewer(std::string const & name, std::string const & command);
        ///
-       bool view(Buffer const & buffer, string const & filename,
-                 string const & format_name) const;
+       bool view(Buffer const & buffer, std::string const & filename,
+                 std::string const & format_name) const;
        ///
-       string const prettyName(string const & name) const;
+       std::string const prettyName(std::string const & name) const;
        ///
-       string const extension(string const & name) const;
+       std::string const extension(std::string const & name) const;
        ///
        const_iterator begin() const {
                return formatlist.begin();
index 7f246462fc8e0f682ad4e98de1b73f623f24c8cf..feb3b65cacc41dc22220aad31ec496c84694d5f2 100644 (file)
@@ -19,6 +19,7 @@
 using std::endl;
 using std::make_pair;
 using std::pair;
+using std::string;
 
 
 int Alert::prompt(string const & title, string const & question,
index 3711dbdd6a83336b4410c7e87629c1ea5af9440f..3b5f3636aa51c60ec0257a51df21cb1eb129e5ce 100644 (file)
@@ -28,21 +28,21 @@ namespace Alert {
  * "Yes" or "No", I will personally come around to your house and
  * slap you with fish, and not in an enjoyable way either.
  */
-int prompt(string const & title, string const & question,
+int prompt(std::string const & title, std::string const & question,
            int default_button, int cancel_button,
-          string const & b1, string const & b2, string const & b3 = string());
+          std::string const & b1, std::string const & b2, std::string const & b3 = std::string());
 
 /**
  * Display a warning to the user. Title should be a short (general) summary.
  * Only use this if the user cannot perform some remedial action.
  */
-void warning(string const & title, string const & message);
+void warning(std::string const & title, std::string const & message);
 
 /**
  * Display a warning to the user. Title should be a short (general) summary.
  * Only use this if the user cannot perform some remedial action.
  */
-void error(string const & title, string const & message);
+void error(std::string const & title, std::string const & message);
 
 /**
  * Informational message. Use very very sparingly. That is, you must
@@ -50,12 +50,12 @@ void error(string const & title, string const & message);
  * and reciting the Nicene Creed, whilst running uphill and also
  * eating.
  */
-void information(string const & title, string const & message);
+void information(std::string const & title, std::string const & message);
 
 /// Asks for a text. DO NOT USE !!
-std::pair<bool, string> const
-askForText(string const & msg,
-          string const & dflt = string());
+std::pair<bool, std::string> const
+askForText(std::string const & msg,
+          std::string const & dflt = std::string());
 
 }
 
index fa153a23cec22af8747b2c92c49d57aec0539718..09cbefa95c9c07d76f2343ed6c1e6ed2ee4ea50c 100644 (file)
 
 // GUI-specific implementations
 
-#include "support/std_string.h"
 #include <utility>
+#include <string>
 
-int prompt_pimpl(string const & title, string const & question,
+
+int prompt_pimpl(std::string const & title, std::string const & question,
            int default_button, int escape_button,
-          string const & b1, string const & b2, string const & b3);
+          std::string const & b1, std::string const & b2, std::string const & b3);
 
-void warning_pimpl(string const & title, string const & warning);
-void error_pimpl(string const & title, string const & warning);
-void information_pimpl(string const & title, string const & warning);
+void warning_pimpl(std::string const & title, std::string const & warning);
+void error_pimpl(std::string const & title, std::string const & warning);
+void information_pimpl(std::string const & title, std::string const & warning);
 
-std::pair<bool, string> const askForText_pimpl(string const & msg, string const & dflt);
+std::pair<bool, std::string> const askForText_pimpl(std::string const & msg, std::string const & dflt);
index 04d404fe44d1bd42dca6c00f73c750c0e252bba4..9990de1f41398983ff1b8ff919286bbdf4b0635a 100644 (file)
@@ -20,6 +20,9 @@
 #include <boost/bind.hpp>
 
 
+using std::string;
+
+
 // Note that static boost signals break some compilers, so this wrapper
 // initialises the signal dynamically when it is first invoked.
 template<typename Signal>
index 6e5d8ee9f825eded75d0abe1062775625e8cc847..a7688055a28faa24c3ffdda7de4f2199446a9494 100644 (file)
@@ -15,9 +15,6 @@
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/signal1.hpp>
 
-#include "support/std_string.h"
-
-
 class Dialog;
 class InsetBase;
 class LyXView;
@@ -92,7 +89,7 @@ public:
            the dialog. Several of these dialogs do not need any data,
            so it defaults to string().
        */
-       void show(string const & name, string const & data = string());
+       void show(std::string const & name, std::string const & data = std::string());
 
        /** \param name == "bibtex", "citation" etc; an identifier used to
            launch a particular dialog.
@@ -105,46 +102,46 @@ public:
            dialog on 'Apply'; should it be used to create a new inset at
            the current cursor position or modify an existing, 'open' inset?
        */
-       void show(string const & name, string const & data, InsetBase * inset);
+       void show(std::string const & name, std::string const & data, InsetBase * inset);
 
        /** \param name == "citation", "bibtex" etc; an identifier used
            to update the contents of a particular dialog with \param data .
            See the comments to 'show', above.
        */
-       void update(string const & name, string const & data);
+       void update(std::string const & name, std::string const & data);
 
        /// is the dialog currently visible?
-       bool visible(string const & name) const;
+       bool visible(std::string const & name) const;
 
        /** All Dialogs of the given \param name will be closed if they are
            connected to the given \param inset.
        */
-       static void hide(string const & name, InsetBase * inset);
+       static void hide(std::string const & name, InsetBase * inset);
        ///
-       void disconnect(string const & name);
+       void disconnect(std::string const & name);
        ///
-       InsetBase * getOpenInset(string const & name) const;
+       InsetBase * getOpenInset(std::string const & name) const;
 private:
        ///
-       void hideSlot(string const & name, InsetBase * inset);
+       void hideSlot(std::string const & name, InsetBase * inset);
        ///
        void redraw() const;
        ///
-       bool isValidName(string const & name) const;
+       bool isValidName(std::string const & name) const;
        ///
-       Dialog * find_or_build(string const & name);
+       Dialog * find_or_build(std::string const & name);
        ///
-       Dialog * build(string const & name);
+       Dialog * build(std::string const & name);
 
        ///
        LyXView & lyxview_;
        ///
-       std::map<string, InsetBase *> open_insets_;
+       std::map<std::string, InsetBase *> open_insets_;
 
        ///
        typedef boost::shared_ptr<Dialog> DialogPtr;
        ///
-       std::map<string, DialogPtr> dialogs_;
+       std::map<std::string, DialogPtr> dialogs_;
 
        /// the stuff below is slated to go...
        void init_pimpl();
index bc2ce49d3e46718e438d506c61aa8dea32f34b5b..423e8404e1e887f4e207fe7ccd5bbe1596b99248 100644 (file)
 #ifndef FILEDIALOG_H
 #define FILEDIALOG_H
 
+#include "lfuns.h"
 
 #include <utility>
+#include <string>
 
-#include "lfuns.h"
-
-#include "support/std_string.h"
 
 /**
  * \class FileDialog
@@ -28,7 +27,7 @@ class FileDialog
 {
 public:
        /// label, directory path button
-       typedef std::pair<string, string> Button;
+       typedef std::pair<std::string, std::string> Button;
 
        /// result type
        enum ResultType {
@@ -37,7 +36,7 @@ public:
        };
 
        /// result return
-       typedef std::pair<FileDialog::ResultType, string> Result;
+       typedef std::pair<FileDialog::ResultType, std::string> Result;
 
        /**
         * Constructs a file dialog with title \param title.
@@ -50,10 +49,10 @@ public:
         * additional directories in the navigation (an empty
         * directory is interpreted as getcwd())
         */
-       FileDialog(string const & title,
+       FileDialog(std::string const & title,
                   kb_action a = LFUN_SELECT_FILE_SYNC,
-                  Button b1 = Button(string(), string()),
-                  Button b2 = Button(string(), string()));
+                  Button b1 = Button(std::string(), std::string()),
+                  Button b2 = Button(std::string(), std::string()));
 
 
        ~FileDialog();
@@ -69,16 +68,16 @@ public:
         *
         * FIXME: should support multiple lines of these for different file types.
         */
-       Result const open(string const & path = string(),
-               string const & mask = string(),
-               string const & suggested = string());
+       Result const open(std::string const & path = std::string(),
+               std::string const & mask = std::string(),
+               std::string const & suggested = std::string());
 
        /**
         * Choose a directory, starting in directory \param
         * path.
         */
-       Result const opendir(string const & path = string(),
-               string const & suggested = string());
+       Result const opendir(std::string const & path = std::string(),
+               std::string const & suggested = std::string());
 
        /**
         * Choose a file for saving, starting in directory \param
@@ -89,9 +88,9 @@ public:
         *
         * for example, "*.ps | PostScript files (*.ps)".
         */
-       Result const save(string const & path = string(),
-               string const & mask = string(),
-               string const & suggested = string());
+       Result const save(std::string const & path = std::string(),
+               std::string const & mask = std::string(),
+               std::string const & suggested = std::string());
 
 
        /* This *has* to be public because there is no way to specify extern "C" functions
@@ -103,7 +102,7 @@ public:
 
 private:
        /// the dialog title
-       string title_;
+       std::string title_;
 
        /// success action to perform if not synchronous
        kb_action success_;
index 79d977383e162e2d033a2ccc9935f37a982a38de..b027b07f387b2f4ce9676b50db776b05d15601b4 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYXKEYSYM_H
 #define LYXKEYSYM_H
 
-#include "support/std_string.h"
+#include <string>
 
 /**
  * This is a base class for representing a keypress.
@@ -27,7 +27,7 @@ public:
        virtual ~LyXKeySym() {}
 
        /// Initialize with the name of a key. F. ex. "space" or "a"
-       virtual void init(string const & symbolname) = 0;
+       virtual void init(std::string const & symbolname) = 0;
 
        /// Is this a valid key?
        virtual bool isOK() const = 0;
@@ -39,14 +39,14 @@ public:
        virtual bool isText() const { return false; }
 
        /// What is the symbolic name of this key? F.ex. "Return" or "c"
-       virtual string getSymbolName() const = 0;
+       virtual std::string getSymbolName() const = 0;
 
        /**
         * Return the value of the keysym into the local ISO encoding.
         * This converts the LyXKeySym to a 8-bit encoded character.
         * This relies on user to use the right encoding.
         */
-       virtual char getISOEncoded(string const & encoding) const = 0;
+       virtual char getISOEncoded(std::string const & encoding) const = 0;
 };
 
 
index 73c74bcefc70d4929e57b464734513a4f47279ec..88259688d4a4abd4fe6796e5354d0b811454f3e1 100644 (file)
@@ -47,6 +47,7 @@ using lyx::support::MakeDisplayPath;
 using lyx::support::OnlyFilename;
 
 using std::endl;
+using std::string;
 
 
 string current_layout;
index d42505fd09dfd7e0ccc9c57a05912c2c2f10bf8a..08a094539a4b1e9bcd64dc8ca31a34256ff055fb 100644 (file)
@@ -19,8 +19,6 @@
 #include <boost/signals/trackable.hpp>
 #include <boost/signals/signal0.hpp>
 
-#include "support/std_string.h"
-
 class Buffer;
 class Toolbar;
 class Intl;
@@ -103,7 +101,7 @@ public:
        //@}
 
        /// sets the layout in the toolbar layout selection
-       void setLayout(string const & layout);
+       void setLayout(std::string const & layout);
        /// updates the possible layouts selectable
        void updateLayoutChoice();
 
@@ -119,7 +117,7 @@ public:
        boost::signal0<void> view_state_changed;
 
        /// display a message in the view
-       virtual void message(string const &) = 0;
+       virtual void message(std::string const &) = 0;
 
        /// clear any temporary message and replace with current status
        virtual void clearMessage() = 0;
@@ -148,7 +146,7 @@ private:
         * @param t main window title
         * @param it iconified (short) title
         */
-       virtual void setWindowTitle(string const & t, string const & it) = 0;
+       virtual void setWindowTitle(std::string const & t, std::string const & it) = 0;
 
        /// called on timeout
        void autoSave();
index 996ae1ed8e4e86b5194b5590df94c67e44cfd973..b6e3fe4e7992bb9d5e387807ade3e040e6bc438b 100644 (file)
@@ -13,9 +13,6 @@
 #ifndef MENUBAR_H
 #define MENUBAR_H
 
-
-#include "support/std_string.h"
-
 /**
  * The LyX GUI independent menubar class
  * The GUI interface is implemented in the frontends
@@ -25,7 +22,7 @@ public:
        ///
        virtual ~Menubar() {}
        /// Opens a top-level submenu given its name
-       virtual void openByName(string const &) = 0;
+       virtual void openByName(std::string const &) = 0;
        /// update the state of the menuitems
        virtual void update() = 0;
 };
index 79f97bf8e83721486d61f0793a8d25202c36204e..74fe2b78f0818ace169cfe027c5fb47db20e827d 100644 (file)
@@ -19,6 +19,7 @@
 #include "lyxfont.h"
 
 using std::max;
+using std::string;
 
 
 Painter & Painter::button(int x, int y, int w, int h)
index 482f77fa1c8bf1de2aef4cd75b051d991a3c227e..18835ff4686f3d171d732e3ea0435c84ae8844e2 100644 (file)
@@ -13,8 +13,7 @@
 #ifndef PAINTER_H
 #define PAINTER_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 
 class LColor_color;
@@ -140,7 +139,7 @@ public:
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
-               string const & str, LyXFont const & f) = 0;
+               std::string const & str, LyXFont const & f) = 0;
 
        /**
         * Draw a string at position x, y (y is the baseline)
@@ -161,14 +160,14 @@ public:
         * around the text with the given color.
         */
        Painter & rectText(int x, int baseline,
-               string const & string,
+               std::string const & str,
                LyXFont const & font,
                LColor_color back,
                LColor_color frame);
 
        /// draw a string and enclose it inside a button frame
        Painter & buttonText(int x,
-               int baseline, string const & s,
+               int baseline, std::string const & s,
                LyXFont const & font);
 
 protected:
index 68ea1d5f75fef8177076dd1e266c56307133296a..e6d23cac6ddd849fa36930941fcd259667802aa5 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef TOOLBAR_H
 #define TOOLBAR_H
 
-
-#include "support/std_string.h"
 #include "ToolbarBackend.h"
 
 class LyXView;
@@ -38,7 +36,7 @@ public:
        void update(bool in_math, bool in_table);
 
        /// update the layout combox
-       virtual void setLayout(string const & layout) = 0;
+       virtual void setLayout(std::string const & layout) = 0;
        /**
         * Populate the layout combox - returns whether we did a full
         * update or not
index 09c107d1f2e3c513cb061ce774e8e995186e9b0b..b54e3145a4cb0c82d6f8642dc9079818e7cc7839 100644 (file)
@@ -20,7 +20,6 @@
 #include <boost/signals/signal1.hpp>
 #include <boost/signals/signal2.hpp>
 
-#include "support/std_string.h"
 
 class Painter;
 class FuncRequest;
@@ -61,9 +60,9 @@ public:
        /// a selection exists
        virtual void haveSelection(bool) const = 0;
        /// get the X clipboard contents
-       virtual string const getClipboard() const = 0;
+       virtual std::string const getClipboard() const = 0;
        /// fill the clipboard
-       virtual void putClipboard(string const &) const = 0;
+       virtual void putClipboard(std::string const &) const = 0;
 
        /// work area dimensions have changed
        boost::signal0<void> workAreaResize;
index 4b63c73392aed21f7a589a13dcc0ceac01c76a94..e456245a08ca1f450889ba40329ba0c89e219b19 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef BCVIEW_H
 #define BCVIEW_H
 
-
-#include "support/std_string.h"
 #include <boost/shared_ptr.hpp>
 #include <list>
 
@@ -92,7 +90,7 @@ class GuiBC : public BCView {
 public:
        ///
        GuiBC(ButtonController const & parent,
-             string const & cancel, string const & close);
+             std::string const & cancel, std::string const & close);
 
        //@{
        /** Store pointers to these widgets. The pointers are _not_
@@ -121,10 +119,10 @@ private:
        /// Enable/Disable a button
        virtual void setButtonEnabled(Button * obj, bool enable) const = 0;
        /// Set the Label on the button
-       virtual void setButtonLabel(Button * obj, string const & label) const = 0;
+       virtual void setButtonLabel(Button * obj, std::string const & label) const = 0;
 
-       string const cancel_label_;
-       string const close_label_;
+       std::string const cancel_label_;
+       std::string const close_label_;
 
        Button * okay_;
        Button * apply_;
index 4869473a584883d40f7e01cf354dc02f48bc1d57..85d093319cbd599b29d69ea2618d5eb32b4c2fb2 100644 (file)
@@ -21,7 +21,7 @@
 
 template <class Button, class Widget>
 GuiBC<Button, Widget>::GuiBC(ButtonController const & parent,
-                            string const & cancel, string const & close)
+                            std::string const & cancel, std::string const & close)
        : BCView(parent),
          cancel_label_(cancel), close_label_(close),
          okay_(0), apply_(0), cancel_(0), restore_(0)
index 978abaceab0ac048d4688bd465d76bb10379b008..ce247a617fb69d3f99cb7d8e295959b6a32cb866 100644 (file)
@@ -28,6 +28,7 @@ using lyx::support::user_lyxdir;
 
 using std::ostream;
 using std::ostringstream;
+using std::string;
 
 
 ControlAboutlyx::ControlAboutlyx(Dialog & parent)
index 889c6a97da48b0929d87f84313349feac86cee7d..31b90aab708e06faab8bbc20f78dd8d1ccc66b9f 100644 (file)
@@ -24,7 +24,7 @@ public:
 
        //@{
        /// Instantiate Dialog::Controller methods.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        virtual void clearParams() {}
        virtual void dispatchParams() {}
        virtual bool isBufferDependent() const { return false; }
@@ -33,10 +33,10 @@ public:
        //@{
        /// Provide the View with specific pieces of information.
        void getCredits(std::ostream &) const;
-       string const getCopyright() const;
-       string const getLicense() const;
-       string const getDisclaimer() const;
-       string const getVersion() const;
+       std::string const getCopyright() const;
+       std::string const getLicense() const;
+       std::string const getDisclaimer() const;
+       std::string const getVersion() const;
        //@}
 };
 
index ffb1d15d0dd5973122cd65dd001a1e25539e9536..db0b95260fc3ec1370b8ade65b682c9c1b4cc5f2 100644 (file)
@@ -23,6 +23,7 @@
 
 using lyx::support::OnlyFilename;
 
+using std::string;
 using std::pair;
 using std::vector;
 
index dbab5a6e6a2b146308b94a81872653fd10db168a..de881baa8e42855f1d5e5cc90cbe88e4f684c903 100644 (file)
@@ -26,11 +26,11 @@ public:
        ControlBibtex(Dialog &);
 
        /// Browse for a file
-       string const Browse(string const &, string const &, string const &);
+       std::string const Browse(std::string const &, std::string const &, std::string const &);
        /// get the list of bst files
-       void getBibStyles(std::vector<string> & data) const;
+       void getBibStyles(std::vector<std::string> & data) const;
        /// get the list of bib files
-       void getBibFiles(std::vector<string> & data) const;
+       void getBibFiles(std::vector<std::string> & data) const;
        /// build filelists of all availabe bib/bst/cls/sty-files. done through
        /// kpsewhich and an external script, saved in *Files.lst
        void rescanBibStyles() const;
index 1d770199bce8a25292fb4f9d9d9a91179d698296..68eae58c0fb9ae720f5bebf29778a3e26650f6b8 100644 (file)
 #include "funcrequest.h"
 #include "insets/insetbranch.h"
 
+
+using std::string;
+
+
 ControlBranch::ControlBranch(Dialog & parent)
        : Dialog::Controller(parent)
 {}
@@ -40,4 +44,3 @@ void ControlBranch::dispatchParams()
        string const lfun = InsetBranchMailer::params2string(string("branch"), params());
        kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
 }
-
index 268b5a2bec087e18f6177e49a709449e57e274be..b364ef5f67ce397614da707159ab690682f67f3c 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        ControlBranch(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
index 280d034c4fae438e83258573dfb3a9ba57375d4e..d445ad245cc6f2bf77e26df1177405ca2a058694 100644 (file)
@@ -23,6 +23,8 @@
 
 using lyx::support::rtrim;
 
+using std::string;
+
 
 ControlChanges::ControlChanges(Dialog & parent)
        : Dialog::Controller(parent)
index e824f1e67ef35814ee8e344eabac6b61304d4fd4..d0c918011280261b6cd7f507c6a760d06b70f7fa 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        ControlChanges(Dialog &);
        /// Nothing to initialise in this case.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        ///
        virtual void clearParams() {}
        ///
@@ -34,10 +34,10 @@ public:
        bool find();
 
        /// return date of change
-       string const getChangeDate();
+       std::string const getChangeDate();
 
        /// return author of change
-       string const getChangeAuthor();
+       std::string const getChangeAuthor();
 
        /// accept the current merge
        void accept();
index 975d740b46851ec7dd1a6be2935a5d0d78aeae99..cfb3878a2e9a9c39ec02b9e3c7f1bf8fcdcafd8e 100644 (file)
@@ -22,6 +22,8 @@
 
 using bv_funcs::font2string;
 
+using std::string;
+
 
 ControlCharacter::ControlCharacter(Dialog & parent)
        : Dialog::Controller(parent),
index e6a3b15a89969ab1982faaa4ba00fc232b45d453..fe45b6aee54a992d79fc2c405518ab8a2b1c66b2 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        ControlCharacter(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -46,7 +46,7 @@ public:
        ///
        void setColor(LColor_color);
        ///
-       void setLanguage(string const &);
+       void setLanguage(std::string const &);
        ///
        void setToggleAll(bool);
 
@@ -63,7 +63,7 @@ public:
        ///
        LColor_color getColor() const;
        ///
-       string getLanguage() const;
+       std::string getLanguage() const;
        ///
        bool getToggleAll() const;
 private:
index 30496e4218711a1ceabe6a350534da47c4b8a95b..93910d35a48929cd54efa318a83437ed0059a408 100644 (file)
@@ -15,6 +15,8 @@
 #include "buffer.h"
 #include "bufferparams.h"
 
+
+using std::string;
 using std::vector;
 using std::pair;
 
@@ -31,7 +33,7 @@ bool ControlCitation::initialiseParams(string const & data)
 {
        ControlCommand::initialiseParams(data);
 
-       vector<pair<string,string> > blist;
+       vector<pair<string, string> > blist;
        kernel().buffer().fillWithBibKeys(blist);
 
        typedef std::map<string, string>::value_type InfoMapValue;
index 36dbe44f7138887a8b4a2cbfea57b7d4bb31d98a..a01facad25687335492323607ccb72897e0bc597 100644 (file)
@@ -24,7 +24,7 @@ public:
        ControlCitation(Dialog &);
 
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
 
@@ -39,7 +39,7 @@ public:
        ///
        bool usingNatbib() const;
        /// Possible citations based on this key
-       std::vector<string> const getCiteStrings(string const & key) const;
+       std::vector<std::string> const getCiteStrings(std::string const & key) const;
 
        /// available CiteStyle-s (depends on availability of Natbib
        static std::vector<biblio::CiteStyle> const & getCiteStyles() {
index 8647f70a6a16da8f31755579da98ed84e49b7181..2734b45d53a07af9eaf90b9f32c47d1bca5d3290 100644 (file)
@@ -16,6 +16,9 @@
 #include "insets/insetcommand.h"
 
 
+using std::string;
+
+
 ControlCommand::ControlCommand(Dialog & dialog, string const & lfun_name)
        : Dialog::Controller(dialog),
          lfun_name_(lfun_name)
index afcdc0af0be2dfddf9a81b8e6144a38d0b602af9..0174bf858292a9840f58b1f7523c043d086c2d11 100644 (file)
@@ -26,13 +26,13 @@ public:
            it knows what to do with the rest of the contents.
            An empty name indicates that no action will occur on 'Apply'.
         */
-       ControlCommand(Dialog &, string const & lfun_name = string());
+       ControlCommand(Dialog &, std::string const & lfun_name = std::string());
        ///
        InsetCommandParams & params() { return params_; }
        ///
        InsetCommandParams const & params() const { return params_; }
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
@@ -44,7 +44,7 @@ private:
        ///
        InsetCommandParams params_;
        /// Flags what action is taken by Kernel::dispatch()
-       string const lfun_name_;
+       std::string const lfun_name_;
 };
 
 
index b17308e0537484aa655b3c53ccde4a463021e34f..4b8c3576ea3f02c1a991e838dc8a421ca2417f84 100644 (file)
@@ -26,7 +26,7 @@ using lyx::support::prefixIs;
 
 using std::back_inserter;
 using std::transform;
-
+using std::string;
 using std::vector;
 
 
index 65d47539cf1892b752b5dd5e69ef48550d6fd978..983b7e40a78da706815d277b612f5d25c2418cb2 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef CONTROLCOMMANDBUFFER_H
 #define CONTROLCOMMANDBUFFER_H
 
-#include "support/std_string.h"
-
 #include <vector>
 
 
@@ -32,32 +30,32 @@ public:
        ControlCommandBuffer(LyXView & lv);
 
        /// return the previous history entry if any
-       string const historyUp();
+       std::string const historyUp();
 
        /// return the next history entry if any
-       string const historyDown();
+       std::string const historyDown();
 
        /// return the font and depth in the active BufferView as a message.
-       string const getCurrentState() const;
+       std::string const getCurrentState() const;
 
        /// return the possible completions
-       std::vector<string> const completions(string const & prefix,
-                                             string & new_prefix);
+       std::vector<std::string> const completions(std::string const & prefix,
+                                             std::string & new_prefix);
 
        /// dispatch a command
-       void dispatch(string const & str);
+       void dispatch(std::string const & str);
 private:
        /// controlling LyXView
        LyXView & lv_;
 
        /// available command names
-       std::vector<string> commands_;
+       std::vector<std::string> commands_;
 
        /// command history
-       std::vector<string> history_;
+       std::vector<std::string> history_;
 
        /// current position in command history
-       std::vector<string>::const_iterator history_pos_;
+       std::vector<std::string>::const_iterator history_pos_;
 };
 
 #endif // CONTROLCOMMANDBUFFER_H
index 98cb2f21a2af1bfc672b79ffd540fd89038f7e31..e705ca4485391b9285ceccb27262ce6e6553371b 100644 (file)
@@ -36,6 +36,8 @@ using lyx::support::AddPath;
 using lyx::support::bformat;
 using lyx::support::user_lyxdir;
 
+using std::string;
+
 
 ControlDocument::ControlDocument(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d), bp_(0)
index f5ff71a7626cbc33e483572e6de1d64afbbb911b..9f1209b9f5e1366be8e74daaee85de8c05cbab4c 100644 (file)
@@ -15,6 +15,9 @@
 #include "funcrequest.h"
 
 
+using std::string;
+
+
 ControlERT::ControlERT(Dialog & parent)
        : Dialog::Controller(parent), status_(InsetERT::Collapsed)
 {}
index db45b09d359fb7419f62f8e2b6f60a494beac14f..6724c0fa1bcb55118eacde860d3aa5b5c05dcd14 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        void setStatus(InsetERT::ERTStatus status) { status_ = status; }
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
index 0217dacf701e053755273b38ad47d99552a51009..52832ffcb174c66890be9520fcedb0f08605eb18 100644 (file)
@@ -20,6 +20,7 @@
 
 
 using std::endl;
+using std::string;
 
 
 ControlErrorList::ControlErrorList(Dialog & d)
index deb0c03da2b98c547bdf0ec81f1af29cedf75f78..9dfc6159488e5ae932ff04d179a302ad40557722 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        virtual bool isBufferDependent() const { return true; }
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -37,14 +37,14 @@ public:
        /// goto this error in the parent bv
        void goTo(int item);
        /// return the parent document name
-       string const & name();
+       std::string const & name();
        ///
        ErrorList const & errorList() const;
 private:
        ///
        ErrorList errorlist_;
        ///
-       string name_;
+       std::string name_;
 };
 
 #endif // CONTROLERRORLIST_H
index 253bdfc5584ed42b611fa76e8761cd135105ba94..a7834b6cf725010df18671bcd44006c1c3869671 100644 (file)
 
 #include "insets/ExternalTemplate.h"
 
+
 namespace external = lyx::external;
 
 using std::vector;
+using std::string;
 
 
 ControlExternal::ControlExternal(Dialog & parent)
index 7d9e92417565c0dadc742110bf653f49b7304d6f..2903e43f753c3f7d23f5ea73f2c657534d0808c0 100644 (file)
@@ -32,7 +32,7 @@ public:
        ///
        ControlExternal(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
@@ -48,13 +48,13 @@ public:
        ///
        void editExternal();
        ///
-       std::vector<string> const getTemplates() const;
+       std::vector<std::string> const getTemplates() const;
        ///
-       int getTemplateNumber(string const &) const;
+       int getTemplateNumber(std::string const &) const;
        ///
        lyx::external::Template getTemplate(int) const;
        ///
-       string const Browse(string const &) const;
+       std::string const Browse(std::string const &) const;
 private:
        ///
        boost::scoped_ptr<InsetExternal::Params> params_;
index 2f7e5940c30a392939e665e7550614c5aa289d12..0d54cc6eefa13f36e0a502a019be0666ba47c122 100644 (file)
@@ -15,6 +15,9 @@
 #include "insets/insetfloat.h"
 
 
+using std::string;
+
+
 ControlFloat::ControlFloat(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 00306f614cae117aee78dd9327c938c12111ab22..f0bb07aaa33a13125befda65fe37320b7ea954d0 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        ControlFloat(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
index 337731cc67a3c59efd2ee639b56647f1ef4536af..57bdf8be05a9722c46a42a18530c467c4bb25cab 100644 (file)
 
 #include <boost/bind.hpp>
 
+
 using lyx::support::ForkedcallsController;
 
+using std::string;
 using std::vector;
 
 
index de37d7cbbed03c5c988d71389f1e1ee38e404152..d88b1af7911c5009bd776a6b20a435cbb2fefaab 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <boost/signals/connection.hpp>
 
-#include "support/std_string.h"
 #include <vector>
 #include <sys/types.h>
 
@@ -31,7 +30,7 @@ public:
        ///
        std::vector<pid_t> const getPIDs() const;
        ///
-       string const getCommand(pid_t) const;
+       std::string const getCommand(pid_t) const;
        ///
        void kill(pid_t);
 private:
index 632eeb6f7aa72f60952cb740a0871d56044d6846..2dd18b2b800153e00b65512c1fd57e9df02197c8 100644 (file)
@@ -40,7 +40,7 @@ using lyx::support::system_lyxdir;
 using lyx::support::user_lyxdir;
 
 using std::make_pair;
-
+using std::string;
 using std::pair;
 using std::vector;
 
index aba85420f472f1d65368e30f9b5e525e1699e5fd..4433125221fbd7d2cc171bb251ca460f3b631603 100644 (file)
@@ -31,7 +31,7 @@ public:
        ///
        ControlGraphics(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
@@ -44,13 +44,13 @@ public:
        InsetGraphicsParams const & params() const { return *params_.get(); }
 
        /// Browse for a file
-       string const Browse(string const &);
+       std::string const Browse(std::string const &);
        /// Read the Bounding Box from a eps or ps-file
-       string const readBB(string const & file);
+       std::string const readBB(std::string const & file);
        /// Control the bb
        bool bbChanged;
        /// test if file exist
-       bool isFilenameValid(string const & fname) const;
+       bool isFilenameValid(std::string const & fname) const;
 
 private:
        ///
@@ -60,10 +60,10 @@ private:
 namespace frnt {
 
 /// get the units for the bounding box
-std::vector<string> const getBBUnits();
+std::vector<std::string> const getBBUnits();
 
-/// The (tranlated) GUI string and it's LaTeX equivalent.
-typedef std::pair<string, string> RotationOriginPair;
+/// The (tranlated) GUI std::string and it's LaTeX equivalent.
+typedef std::pair<std::string, std::string> RotationOriginPair;
 ///
 std::vector<RotationOriginPair> getRotationOriginData();
 
index 63709585c9f65ecd857ee7796eaaae3c9ea272e5..f8f8061ff9aec3daa76c3186eaf3cc2b7d9ab8b1 100644 (file)
@@ -32,6 +32,7 @@ using lyx::support::MakeAbsPath;
 using lyx::support::OnlyPath;
 
 using std::pair;
+using std::string;
 
 
 ControlInclude::ControlInclude(Dialog & parent)
index ae71e24b64a4068ee86e7a42b8a6edee612676aa..6a011ccd5f22a523c72d6570d80f06ad90547d61 100644 (file)
@@ -36,7 +36,7 @@ public:
        ControlInclude(Dialog &);
 
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
@@ -50,13 +50,13 @@ public:
        void setParams(InsetCommandParams const &);
 
        /// Browse for a file
-       string const Browse(string const &, Type);
+       std::string const Browse(std::string const &, Type);
 
        /// load a file
-       void load(string const & file);
+       void load(std::string const & file);
 
        /// test if file exist
-       bool fileExists(string const & file);
+       bool fileExists(std::string const & file);
 private:
        ///
        InsetCommandParams params_;
index 1c4a590c9fb4c4e6793100e6a519a55e63fa7887..5cbbab2d30dc0fa0f4eab5ca2b64f3a2cb78da60 100644 (file)
@@ -14,6 +14,9 @@
 #include "ControlLog.h"
 
 
+using std::string;
+
+
 ControlLog::ControlLog(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 35c1a4ef56302550572874733869a37434741803..0843d1e6c5d60ddc3e1290bc8864b491ea0211c3 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        ControlLog(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -33,12 +33,12 @@ public:
        ///
        virtual bool isBufferDependent() const { return true; }
        ///
-       std::pair<Buffer::LogType, string> const & logfile() const {
+       std::pair<Buffer::LogType, std::string> const & logfile() const {
                return logfile_;
        }
 private:
 
-       std::pair<Buffer::LogType, string> logfile_;
+       std::pair<Buffer::LogType, std::string> logfile_;
 };
 
 #endif // CONTROLLOG_H
index 3beedee149e910852d8477cd8b5d3fda9010e704..860906bd7cbfd96270029f09944a3f0f4b27f2f9 100644 (file)
@@ -22,6 +22,8 @@ using lyx::support::compare;
 using lyx::support::LibFileSearch;
 using lyx::support::subst;
 
+using std::string;
+
 
 ControlMath::ControlMath(Dialog & dialog)
        : Dialog::Controller(dialog)
index 67f29bb90c302e03c7e919ba1d123f4b42e6dea5..129cf8cd234b5433540d9bdbf8050a4dadbb0a4a 100644 (file)
@@ -24,15 +24,15 @@ public:
        ControlMath(Dialog &);
 
        /// Nothing to initialise in this case.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        virtual void clearParams() {}
        virtual void dispatchParams() {}
        virtual bool isBufferDependent() const { return true; }
 
        /// dispatch an LFUN
-       void dispatchFunc(kb_action action, string const & arg = string()) const;
+       void dispatchFunc(kb_action action, std::string const & arg = std::string()) const;
        /// Insert a math symbol into the doc.
-       void dispatchInsert(string const & name) const;
+       void dispatchInsert(std::string const & name) const;
        /// Insert a subscript.
        void dispatchSubscript() const;
        /// Insert a superscript.
@@ -40,15 +40,15 @@ public:
        /// Insert a cube root
        void dispatchCubeRoot() const;
        /// Insert a matrix
-       void dispatchMatrix(string const & str) const;
+       void dispatchMatrix(std::string const & str) const;
        /// Insert a delimiter
-       void dispatchDelim(string const & str) const;
+       void dispatchDelim(std::string const & str) const;
        /// Wwitch between display and inline
        void dispatchToggleDisplay() const;
        /** A request to the kernel to launch a dialog.
         *  \param name the dialog identifier.
         */
-       void showDialog(string const & name) const;
+       void showDialog(std::string const & name) const;
 };
 
 
@@ -85,6 +85,6 @@ extern int const nr_latex_ams_ops;
  * Return the mangled XPM filename of the given
  * math symbol.
  */
-string const find_xpm(string const & name);
+std::string const find_xpm(std::string const & name);
 
 #endif // NOT CONTROLMATH
index 7236982df61b82eb559c77fbd45d91258b42bb16..ecee9dfd007fca9da44af8d3b58dcd05a3b2f5de 100644 (file)
@@ -15,6 +15,9 @@
 #include "funcrequest.h"
 
 
+using std::string;
+
+
 ControlMinipage::ControlMinipage(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 64cc8a96ac65e6f0a19e804dee4652f5894a4d50..bdb8fbfb6e1182d931f95d7ed612bea7ef8b55c3 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        ControlMinipage(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
index ed9e8ab3aca759616c301bc258cb67d916f95ff5..ac49fd1038d783021a4ee5570bbeed07e86b2504 100644 (file)
@@ -17,6 +17,7 @@
 
 
 using std::vector;
+using std::string;
 
 
 ControlNote::ControlNote(Dialog & parent)
index 09d3901b8ec43cda4f7a943f701f296e6514bd79..486a08640bd54ba0085fd442573be4c3cc513c83 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        ControlNote(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -41,6 +41,6 @@ private:
 };
 
 ///
-void note_gui_tokens(std::vector<string> &, std::vector<string> &);
+void note_gui_tokens(std::vector<std::string> &, std::vector<std::string> &);
 
 #endif // CONTROLNOTE_H
index 7e37b32abfe6a89a6e924c645914af591371bb86..0af8e5b9b98cbc9bee26c5f1729eec278fffca59 100644 (file)
 #include "ParagraphParameters.h"
 #include "support/std_sstream.h"
 
+
 using std::istringstream;
 using std::ostringstream;
+using std::string;
 
 
 ControlParagraph::ControlParagraph(Dialog & parent)
index ebcb2b54974d09ad88a7b3f018a553cd0821d229..5053526bd5d98031b004e01d5c13633fa384e5fc 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        ControlParagraph(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
index dc6a225f3d95e8fa169541488e507ddfce9da3c4..a6eb00dff86e4e31dbb226fb11f316ded38b77f4 100644 (file)
@@ -22,6 +22,9 @@
 #include "frontends/LyXView.h"
 
 
+using std::string;
+
+
 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d)
 {}
index 97f822a744d33705655fbdf904a6db431a01cf8b..f6aaa22d4f3b7b8a576699b1219c1d41ffc8c105 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "ControlDialog_impl.h"
 
-#include "support/std_string.h"
 
 /** A controller for Preamble dialogs.
  */
@@ -25,9 +24,9 @@ public:
        ControlPreamble(LyXView &, Dialogs &);
 
        ///
-       string const & params() const;
+       std::string const & params() const;
        ///
-       void params(string const & newparams);
+       void params(std::string const & newparams);
 private:
        /// Get changed parameters and Dispatch them to the kernel.
        virtual void apply();
@@ -37,7 +36,7 @@ private:
        virtual void clearParams();
 
        ///
-       string params_;
+       std::string params_;
 };
 
 #endif // CONTROLPREAMBLE_H
index 31696286e34fc173b54b3479ce58dc1f5c5e94b4..b5e1f4bb05c89375505b56efb0b5a7ce6a2d4d9e 100644 (file)
@@ -36,6 +36,7 @@ using lyx::support::system_lyxdir;
 using lyx::support::user_lyxdir;
 
 using std::pair;
+using std::string;
 
 
 extern BufferList bufferlist;
index 8a5f789b58bf5283b5f8206df11f16dd7fd8ae63..aa54bb41df0bdcbdfdb16ff36555eb4b36a6d3d8 100644 (file)
@@ -14,7 +14,6 @@
 
 
 #include "ControlDialog_impl.h"
-#include "support/std_string.h"
 #include "lyxrc.h"
 
 
@@ -35,22 +34,22 @@ public:
        LyXRC const & rc() const { return rc_; }
 
        /// various file pickers
-       string const browsebind(string const & file);
-       string const browseUI(string const & file);
-       string const browsekbmap(string const & file);
-       string const browsedict(string const & file);
+       std::string const browsebind(std::string const & file);
+       std::string const browseUI(std::string const & file);
+       std::string const browsekbmap(std::string const & file);
+       std::string const browsedict(std::string const & file);
 
        /// general browse
-       string const browse(string const & file, string const & title);
+       std::string const browse(std::string const & file, std::string const & title);
 
        /// browse directory
-       string const browsedir(string const & path, string const & title);
+       std::string const browsedir(std::string const & path, std::string const & title);
 
        /// redraw widgets (for xforms color change)
        void redrawGUI();
 
        /// set a color
-       void setColor(LColor_color col, string const & hex);
+       void setColor(LColor_color col, std::string const & hex);
 
        /// update the screen fonts after change
        void updateScreenFonts();
index 6aed2e1a1e0103ee13c68ec7731c3aa7b0b704a0..55ea077adeff009d500f2528581d6e2fd13ef9e2 100644 (file)
@@ -41,6 +41,7 @@ using lyx::support::QuoteName;
 using lyx::support::Systemcall;
 
 using std::endl;
+using std::string;
 
 
 ControlPrint::ControlPrint(LyXView & lv, Dialogs & d)
index e6119c68a939b98515bede26c38ba923964036c2..f02df010b1c363687d72645ed8d2a33ff0e9741b 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "ControlDialog_impl.h"
 
-#include "support/std_string.h"
 
 class PrinterParams;
 
@@ -28,7 +27,7 @@ public:
        ControlPrint(LyXView &, Dialogs &);
 
        /// Browse for a file
-       string const Browse(string const &);
+       std::string const Browse(std::string const &);
        ///
        PrinterParams & params() const;
 private:
index f8f8d8bc3804aab7e72077f596f4812a0d40acfc..a66dc273f8d69fd078bf374bb22ac345d202e0be 100644 (file)
@@ -22,6 +22,8 @@ using lyx::support::MakeAbsPath;
 using lyx::support::MakeDisplayPath;
 
 using std::vector;
+using std::string;
+
 
 extern BufferList bufferlist;
 
index 606c5956ef12e9f4a61806daebbb9231b9b86aed..d9181bc456d5990eae23174a01565a3708528b73 100644 (file)
@@ -24,17 +24,17 @@ public:
        ///
        ControlRef(Dialog &);
        ///
-       std::vector<string> const getLabelList(string const &) const;
+       std::vector<std::string> const getLabelList(std::string const &) const;
        ///
-       void gotoRef(string const &);
+       void gotoRef(std::string const &);
        ///
        void gotoBookmark();
        ///
-       std::vector<string> const getBufferList() const;
+       std::vector<std::string> const getBufferList() const;
        ///
        int getBufferNum() const;
        ///
-       string const getBufferName(int num) const;
+       std::string const getBufferName(int num) const;
 private:
        /** disconnect from the inset when the Apply button is pressed.
         Allows easy insertion of multiple references. */
index 6c0bae0b9bd804d1ed9f566e576380381e45d859..7b3fdbff6a90ea0be0a269327f2604e7d49ab33a 100644 (file)
@@ -20,6 +20,9 @@
 #include "support/tostr.h"
 
 
+using std::string;
+
+
 ControlSearch::ControlSearch(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d)
 {}
index 595b8ce359aad0d6cbff105a1f8ea27bd451e37a..16855db05f98c15f6aa8ebb7c54d76c5738d9476 100644 (file)
@@ -14,7 +14,6 @@
 
 
 #include "ControlDialog_impl.h"
-#include "support/std_string.h"
 
 /** A controller for Search dialogs.
  */
@@ -24,11 +23,11 @@ public:
        ControlSearch(LyXView &, Dialogs &);
 
        /// Searches occurence of string
-       void find(string const & search,
+       void find(std::string const & search,
                  bool casesensitive, bool matchword, bool forward);
 
        /// Replaces occurence of string
-       void replace(string const & search, string const & replace,
+       void replace(std::string const & search, std::string const & replace,
                     bool casesensitive, bool matchword, bool all);
 private:
        /// not needed.
index 36f3e69e594b72350ab74d1d27f4e30860711aee..b9ea5f9ee2b846866faf84053867861bb4f581cc 100644 (file)
@@ -31,6 +31,7 @@ using lyx::support::Systemcall;
 using lyx::support::trim;
 
 using std::vector;
+using std::string;
 
 
 ControlSendto::ControlSendto(LyXView & lv, Dialogs & d)
index 6f4cc60bb07d5ca7e2153f5701e8c55bcd219753..a86a67615e02164183090cfc7c989014af20a2f2 100644 (file)
@@ -14,7 +14,6 @@
 
 
 #include "ControlDialog_impl.h"
-#include "support/std_string.h"
 
 #include <vector>
 
@@ -35,15 +34,15 @@ public:
        void setFormat(Format const *);
 
        /// The command to be executed
-       string const getCommand() const { return command_; };
-       void setCommand(string const &);
+       std::string const getCommand() const { return command_; };
+       void setCommand(std::string const &);
 private:
        ///
        virtual void apply();
        ///
        Format const * format_;
        ///
-       string command_;
+       std::string command_;
 };
 
 #endif // CONTROLSENDTO_H
index fe57c8cb985c93336faee89ba5b2131dbff496fa..8144f1a0c7090924a859c2c32053a53516280707 100644 (file)
 #include "ControlShowFile.h"
 #include "support/filetools.h"
 
+
 using lyx::support::GetFileContents;
 using lyx::support::OnlyFilename;
 
+using std::string;
+
 
 ControlShowFile::ControlShowFile(Dialog & parent)
        : Dialog::Controller(parent)
index dc0ba577046d0a4c78b04daf6458c3c9ae3016ad..6f2f6483445cb77a052a4bd52311204b3ba4c53f 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        ControlShowFile(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -29,13 +29,13 @@ public:
        ///
        virtual bool isBufferDependent() const { return false; }
        ///
-       string getFileContents();
+       std::string getFileContents();
        ///
-       string getFileName();
+       std::string getFileName();
 
 private:
        ///
-       string filename_;
+       std::string filename_;
 };
 
 #endif // CONTROLSHOWFILE_H
index afa264cb06df53e1dfcb7bafc518ad7efda99904..5d9ac92a34d8a9c9476d5ae6db7d0a4e328fad97 100644 (file)
 
 #include "frontends/Alert.h"
 
+
 using lyx::support::bformat;
 
 using std::endl;
+using std::string;
 
 
 ControlSpellchecker::ControlSpellchecker(LyXView & lv, Dialogs & d)
index 4e87d437b181096ad63b24fd9876115c7c0f1af4..f8f68b547b8ce0c744ee7c582b78b6ef3b05b2c5 100644 (file)
@@ -15,7 +15,6 @@
 #include <boost/scoped_ptr.hpp>
 
 #include "ControlDialog_impl.h"
-#include "support/std_string.h"
 #include "WordLangTuple.h"
 
 class SpellBase;
@@ -34,10 +33,10 @@ public:
        ~ControlSpellchecker();
 
        /// replace word with replacement
-       void replace(string const &);
+       void replace(std::string const &);
 
        /// replace all occurances of word
-       void replaceAll(string const &);
+       void replaceAll(std::string const &);
 
        /// insert word in personal dictionary
        void insert();
@@ -50,10 +49,10 @@ public:
        void check();
 
        /// get suggestion
-       string const getSuggestion() const;
+       std::string const getSuggestion() const;
 
        /// get word
-       string const getWord() const;
+       std::string const getWord() const;
 
        /// returns progress value
        int getProgress() const { return oldval_; }
index 9f5b523434bd6e579063e44b7f17f4c1173b3fb1..63cbcfac21b069cb614f2890d4f8be345697590e 100644 (file)
@@ -17,6 +17,9 @@
 #include "insets/insettabular.h"
 
 
+using std::string;
+
+
 ControlTabular::ControlTabular(Dialog & parent)
        : Dialog::Controller(parent), active_cell_(-1)
 {}
index f7ed3ffe0dfe657693694f437b4736d38cf83b56..0448ecd392e5b31d43402b4a475dc0254fbc2553 100644 (file)
@@ -25,7 +25,7 @@ public:
 
        ControlTabular(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// We use set() instead.
@@ -40,7 +40,7 @@ public:
        /// return true if units should default to metric
        bool useMetricUnits() const;
        /// set a parameter
-       void set(LyXTabular::Feature, string const & arg = string());
+       void set(LyXTabular::Feature, std::string const & arg = std::string());
 
        /// borders
        void toggleTopLine();
@@ -48,9 +48,9 @@ public:
        void toggleLeftLine();
        void toggleRightLine();
 
-       void setSpecial(string const & special);
+       void setSpecial(std::string const & special);
 
-       void setWidth(string const & width);
+       void setWidth(std::string const & width);
 
        void toggleMultiColumn();
 
index e66f636b1b00778fd7824ab7fbd3f9cd0bc3071a..2361ca8199cd6ddb7aee410993c286e43baf2964 100644 (file)
@@ -16,6 +16,9 @@
 #include "support/tostr.h"
 
 
+using std::string;
+
+
 ControlTabularCreate::ControlTabularCreate(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 9df649ecee8f40a8a4212a30825972ac8cd9f123..00e602a763ec5c05b7d5defdaf0c427929e70c91 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        ControlTabularCreate(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        ///
index f23de137682f1fbdc2b748744296e02ec1896cd5..c9d91c280e0d828851ecb65714d5bd97441a75c7 100644 (file)
@@ -14,6 +14,9 @@
 #include "funcrequest.h"
 
 
+using std::string;
+
+
 void getTexFileList(ControlTexinfo::texFileSuffix type,
                    std::vector<string> & list)
 {
index 82080f43f3a368ca0cef05c050433538be83919e..2cd12e5c4198ece14979a2e1325b86a884008eb4 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        ControlTexinfo(Dialog &);
        /// Nothing to initialise in this case.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        ///
        virtual void clearParams() {}
        ///
@@ -35,9 +35,9 @@ public:
        /// the file extensions
        enum texFileSuffix {cls, sty, bst};
        /// show contents af a file
-       void viewFile(string const & filename) const;
+       void viewFile(std::string const & filename) const;
        /// show all classoptions
-       string const getClassOptions(string const & filename) const;
+       std::string const getClassOptions(std::string const & filename) const;
 private:
        ///
        virtual void apply() {}
@@ -48,6 +48,6 @@ private:
  *  Each entry in the file list is returned as a pair<name_with_path, name_only>
  */
 void getTexFileList(ControlTexinfo::texFileSuffix type,
-                   std::vector<string> & contents);
+                   std::vector<std::string> & contents);
 
 #endif // CONTROLTEXINFO_H
index 7de4e0d7dc5b5d28f7b34479161fe809cdac2341..da3883f0fe32d123f17f204d660b619abd2fe6b5 100644 (file)
 
 #include "frontends/LyXView.h"
 
+
+using std::string;
+
+
 ControlThesaurus::ControlThesaurus(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 3c397940f8259030d7e1cd999d395daba13e7303..83023bed0b6e5878ba69df057fcb86275b839b1a 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        ControlThesaurus(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -32,23 +32,23 @@ public:
        virtual bool isBufferDependent() const { return true; }
 
        /// replace the particular string
-       void replace(string const & newstr);
+       void replace(std::string const & newstr);
 
        /// get meanings
-       Thesaurus::Meanings const & getMeanings(string const & str);
+       Thesaurus::Meanings const & getMeanings(std::string const & str);
 
        /// the text
-       string const & text() const { return oldstr_; }
+       std::string const & text() const { return oldstr_; }
 
 private:
        /// last string looked up
-       string laststr_;
+       std::string laststr_;
 
        /// entries for last string
        Thesaurus::Meanings meanings_;
 
        /// original string
-       string oldstr_;
+       std::string oldstr_;
 
        /// not needed.
        virtual void apply() {}
index 2cc312980d942e0bb90418d164a414216d9f720a..797000262daa7cd1d7da11b22d60835bdb914071 100644 (file)
@@ -13,6 +13,8 @@
 #include "ControlToc.h"
 
 using std::vector;
+using std::string;
+
 
 class Buffer;
 
index 86d151f8cef760c9a0f4a4e094e1d820daab82c4..03c39ecb00ddc5c77ab75cb2f57a6eaa273dc35b 100644 (file)
@@ -28,10 +28,10 @@ public:
        void goTo(lyx::toc::TocItem const &);
 
        /// Return the list of types available
-       std::vector<string> const getTypes() const;
+       std::vector<std::string> const getTypes() const;
 
        /// Given a type, returns the contents
-       lyx::toc::Toc const getContents(string const & type) const;
+       lyx::toc::Toc const getContents(std::string const & type) const;
 };
 
 #endif // CONTROLTOC_H
index 7770aa23e51d3cd18463590af79e7e9ae7a2d223..4e445921ebf51e682ad5884306ab45c8a447f34d 100644 (file)
@@ -22,6 +22,7 @@ using lyx::support::unlink;
 
 using std::endl;
 using std::ostream;
+using std::string;
 
 
 ControlVCLog::ControlVCLog(Dialog & parent)
index f5eec5ad91bdd4b91480f878fac7f652d4b7941f..d1a8c437d089d98415e328197844c399199557e6 100644 (file)
@@ -20,7 +20,7 @@ public:
        ///
        ControlVCLog(Dialog &);
        /// Nothing to initialise in this case.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        ///
        virtual void clearParams() {}
        ///
@@ -30,7 +30,7 @@ public:
        /// put the log file into the ostream
        void getVCLogFile(std::ostream & ss) const;
        /// get the filename of the buffer
-       string const getBufferFileName() const;
+       std::string const getBufferFileName() const;
 };
 
 #endif // CONTROLVCLOG_H
index 8e3e562a8ed78e73b131b27bff6d0b07115eeaf0..d506f71814ae802ebcceb2950901b3b4c6efe5e2 100644 (file)
@@ -15,6 +15,9 @@
 #include "insets/insetwrap.h"
 
 
+using std::string;
+
+
 ControlWrap::ControlWrap(Dialog & parent)
        : Dialog::Controller(parent)
 {}
index 2434fb7f1771171c1b57cdccea04385d8ac36a25..63608d49008acba996011afef7f0c624e07a9432 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        ControlWrap(Dialog &);
        ///
-       virtual bool initialiseParams(string const & data);
+       virtual bool initialiseParams(std::string const & data);
        /// clean-up on hide.
        virtual void clearParams();
        /// clean-up on hide.
index 6b7e91ef3232af83861219029fbb764214bd7bbe..3d5e6d92d72e1006d5f5a59ab9c80a9a3a1de754 100644 (file)
@@ -16,6 +16,9 @@
 #include "BCView.h"
 
 
+using std::string;
+
+
 Dialog::Dialog(LyXView & lv, string const & name)
        : is_closing_(false), kernel_(lv), name_(name),
          bc_ptr_(new ButtonController)
index 84b40f65ca6681fc1a829d44ef12bc106cd6aa83..e4adb0f9720c9edb1e67711c41103067ba80939b 100644 (file)
@@ -14,7 +14,7 @@
 
 
 #include "Kernel.h"
-#include "support/std_string.h"
+
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
 
@@ -31,13 +31,13 @@ public:
        /// \param lv is the access point for the dialog to the LyX kernel.
        /// \param name is the identifier given to the dialog by its parent
        /// container.
-       Dialog(LyXView & lv, string const & name);
+       Dialog(LyXView & lv, std::string const & name);
        ~Dialog();
 
        /** The Dialog's name is the means by which a dialog identifies
         *  itself to the kernel.
         */
-       string const & name() const { return name_; }
+       std::string const & name() const { return name_; }
 
        /** \name Buttons
         *  These methods are publicly accessible because they are invoked
@@ -57,8 +57,8 @@ public:
        //@{
        /// \param data is a string encoding of the data to be displayed.
        /// It is passed to the Controller to be translated into a useable form.
-       void show(string const & data);
-       void update(string const & data);
+       void show(std::string const & data);
+       void update(std::string const & data);
 
        void hide();
        bool isVisible() const;
@@ -113,7 +113,7 @@ private:
 
        bool is_closing_;
        Kernel kernel_;
-       string name_;
+       std::string name_;
        boost::scoped_ptr<ButtonController> bc_ptr_;
        boost::scoped_ptr<Controller> controller_ptr_;
        boost::scoped_ptr<View> view_ptr_;
@@ -138,7 +138,7 @@ public:
         *  \param data is a string encoding of the parameters to be displayed.
         *  \return true if the translation was successful.
         */
-       virtual bool initialiseParams(string const & data) = 0;
+       virtual bool initialiseParams(std::string const & data) = 0;
 
        /// Enable the controller to clean up its data structures.
        virtual void clearParams() = 0;
@@ -186,7 +186,7 @@ public:
        /** \param parent Dialog owning this Controller.
         *  \param title  is the dialog title displayed by the WM.
         */
-       View(Dialog & parent, string title);
+       View(Dialog & parent, std::string title);
        virtual ~View() {}
 
        /** \name Generic View
@@ -224,9 +224,9 @@ public:
        virtual void partialUpdate(int id);
 
        /// sets the title of the dialog (window caption)
-       void setTitle(string const &);
+       void setTitle(std::string const &);
        /// gets the title of the dialog (window caption)
-       string const & getTitle() const;
+       std::string const & getTitle() const;
 
        /** \name View Access
         *  Enable the derived classes to access the other parts of the whole.
@@ -248,7 +248,7 @@ protected:
 
 private:
        Dialog & p_;
-       string title_;
+       std::string title_;
 };
 
 
index 2cfd0a23e79621db329be12fded0a8766bf8c241..c7371efd5aee3ff9f2487247350a2472e5cac9b2 100644 (file)
@@ -20,6 +20,9 @@
 #include "frontends/LyXView.h"
 
 
+using std::string;
+
+
 Kernel::Kernel(LyXView & lyxview)
        : lyxview_(lyxview)
 {}
index 6022e390bf0547de8ef30e714ea5fc081bbb5d26..2c09befb6d3693a98c6f59e49fdea801b017ef00 100644 (file)
@@ -12,8 +12,7 @@
 #ifndef KERNEL_H
 #define KERNEL_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 
 class Buffer;
@@ -47,7 +46,7 @@ public:
         *  It must, therefore, ask the kernel to provide this information.
         *  \param name is used to identify the dialog to the kernel.
         */
-       void updateDialog(string const & name) const;
+       void updateDialog(std::string const & name) const;
 
        /** A request from the Controller that future changes to the data
         *  stored by the dialog are not applied to the inset currently
@@ -55,7 +54,7 @@ public:
         *  a new inset at the cursor position.
         *  \param name is used to identify the dialog to the kernel.
         */
-       void disconnect(string const & name) const;
+       void disconnect(std::string const & name) const;
 
        /** \name Kernel Wrappers
         *  Simple wrapper functions to Buffer methods.
@@ -63,7 +62,7 @@ public:
        //@{
        bool isBufferAvailable() const;
        bool isBufferReadonly() const;
-       string const bufferFilepath() const;
+       std::string const bufferFilepath() const;
        //@}
 
        /** \enum DocTypes used to flag the different kinds of buffer
index 4c2753202463c29d2a68fc207abbb53e861ee916..bca83f8fd1fe4dff9d0b77c4247d5e3c72cea160 100644 (file)
@@ -14,6 +14,9 @@
 #include "ControlButtons.h"
 
 
+using std::string;
+
+
 ViewBase::ViewBase(string const & t)
        : controller_ptr_(0), title_(t)
 {}
index 203f88e98c0b769dd14ecf767fc42141caeb8016..5c199fbed0bf83b0ac2056195785f426408c2a15 100644 (file)
 class ControlButtons;
 class ButtonController;
 
-#include "support/std_string.h"
-
 #include <boost/utility.hpp>
 
+#include <string>
+
 class ViewBase : boost::noncopyable {
 public:
        ///
-       ViewBase(string const &);
+       ViewBase(std::string const &);
        ///
        virtual ~ViewBase() {}
 
@@ -59,16 +59,16 @@ public:
        ///
        ButtonController & bc();
        /// sets the title of the dialog (window caption)
-       void setTitle(string const &);
+       void setTitle(std::string const &);
        /// gets the title of the dialog
-       string const & getTitle() const;
+       std::string const & getTitle() const;
 
 protected:
        /// We don't own this.
        ControlButtons * controller_ptr_;
 
 private:
-       string title_;
+       std::string title_;
 
 };
 
index 0fa0722c4ce50c965b96a05cda67500b5a998c97..caa9be2d321ba3025ebfa11ae7f8c0969aae6a0f 100644 (file)
@@ -34,6 +34,7 @@ using lyx::support::subst;
 using lyx::support::token;
 using lyx::support::trim;
 
+using std::string;
 using std::ostringstream;
 using std::vector;
 
index 1694ab93a51e0506ecb006a37f5ac27c9569a8a6..adc9610cf900f2be552420c9982d158182bc5fb7 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef BIBLIOHELPERS_H
 #define BIBLIOHELPERS_H
 
-
-#include "support/std_string.h"
 #include <map>
 #include <vector>
 
@@ -49,27 +47,27 @@ enum Direction {
 };
 
 /// First entry is the bibliography key, second the data
-typedef std::map<string, string> InfoMap;
+typedef std::map<std::string, std::string> InfoMap;
 
 /// Returns a vector of bibliography keys
-std::vector<string> const getKeys(InfoMap const &);
+std::vector<std::string> const getKeys(InfoMap const &);
 
 /** Returns the BibTeX data associated with a given key.
     Empty if no info exists. */
-string const getInfo(InfoMap const &, string const &);
+std::string const getInfo(InfoMap const &, std::string const &);
 
 // rturn the year from the bibtex data record
-string const getYear(InfoMap const & map, string const & key);
+std::string const getYear(InfoMap const & map, std::string const & key);
 
 /// return the short form of an authorlist
-string const getAbbreviatedAuthor(InfoMap const & map, string const & key);
+std::string const getAbbreviatedAuthor(InfoMap const & map, std::string const & key);
 
 // return only the family name
-string const familyName(string const & name);
+std::string const familyName(std::string const & name);
 
 /** Search a BibTeX info field for the given key and return the
     associated field. */
-string const parseBibTeX(string data, string const & findkey);
+std::string const parseBibTeX(std::string data, std::string const & findkey);
 
 /** Returns an iterator to the first key that meets the search
     criterion, or end() if unsuccessful.
@@ -83,11 +81,11 @@ string const parseBibTeX(string data, string const & findkey);
     an enum defining the search direction.
 */
 
-std::vector<string>::const_iterator
+std::vector<std::string>::const_iterator
 searchKeys(InfoMap const & map,
-          std::vector<string> const & keys_to_search,
-          string const & search_expression,
-          std::vector<string>::const_iterator start,
+          std::vector<std::string> const & keys_to_search,
+          std::string const & search_expression,
+          std::vector<std::string>::const_iterator start,
           Search,
           Direction,
           bool caseSensitive=false);
@@ -105,7 +103,7 @@ struct CitationStyle {
 };
 
 /// Given the LaTeX command, return the appropriate CitationStyle
-CitationStyle const getCitationStyle(string const & command);
+CitationStyle const getCitationStyle(std::string const & command);
 
 /** Returns the LaTeX citation command
 
@@ -114,7 +112,7 @@ The CiteStyle enum,
 a flag forcing the full author list,
 a flag forcing upper case, e.g. "della Casa" becomes "Della Case"
 */
-string const getCiteCommand(CiteStyle, bool full, bool forceUCase);
+std::string const getCiteCommand(CiteStyle, bool full, bool forceUCase);
 
 /// Returns a vector of available Citation styles.
 std::vector<CiteStyle> const getCiteStyles(bool usingNatbib);
@@ -132,8 +130,8 @@ std::vector<CiteStyle> const getCiteStyles(bool usingNatbib);
    the InfoMap of bibkeys info,
    the available citation styles
 */
-std::vector<string> const
-getNumericalStrings(string const & key,
+std::vector<std::string> const
+getNumericalStrings(std::string const & key,
                    InfoMap const & map,
                    std::vector<CiteStyle> const & styles);
 
@@ -149,8 +147,8 @@ getNumericalStrings(string const & key,
    the InfoMap of bibkeys info,
    the available citation styles
 */
-std::vector<string> const
-getAuthorYearStrings(string const & key,
+std::vector<std::string> const
+getAuthorYearStrings(std::string const & key,
                     InfoMap const & map,
                     std::vector<CiteStyle> const & styles);
 } // namespace biblio
index 26aba08af97032ec544d72c571e5a5613e7fc1db..0977b1ddc09b97c4b0344bf6e74cafaf02354b2c 100644 (file)
@@ -40,17 +40,17 @@ enum FONT_STATE {
 };
 
 ///
-typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
+typedef std::pair<std::string, LyXFont::FONT_FAMILY> FamilyPair;
 ///
-typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
+typedef std::pair<std::string, LyXFont::FONT_SERIES> SeriesPair;
 ///
-typedef std::pair<string, LyXFont::FONT_SHAPE>  ShapePair;
+typedef std::pair<std::string, LyXFont::FONT_SHAPE>  ShapePair;
 ///
-typedef std::pair<string, LyXFont::FONT_SIZE>   SizePair;
+typedef std::pair<std::string, LyXFont::FONT_SIZE>   SizePair;
 ///
-typedef std::pair<string, FONT_STATE> BarPair;
+typedef std::pair<std::string, FONT_STATE> BarPair;
 ///
-typedef std::pair<string, LColor_color> ColorPair;
+typedef std::pair<std::string, LColor_color> ColorPair;
 
 ///
 std::vector<FamilyPair>   const getFamilyData();
index 9011a2d374d0343b13860b1578e4df389e7518e3..f6273174941cd2a51527c04554f715e111496083 100644 (file)
 
 #include <algorithm>
 
+
+using std::string;
 using std::vector;
 
+
 namespace {
 
 struct Sorter {
index ffff790236cc3d92791bb2e14ae2fa9dc5a6adb4..6aaa38a0bb1411cb6182e47ba2eff49402c75ce7 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef FRNT_LANG_H
 #define FRNT_LANG_H
 
-
-#include "support/std_string.h"
 #include <utility>
 #include <vector>
 
@@ -22,7 +20,7 @@
 namespace frnt {
 
 ///
-typedef std::pair<string, string> LanguagePair;
+typedef std::pair<std::string, std::string> LanguagePair;
 
 /** If the caller is the character dialog, add "No change" and "Reset"
  *  to the vector.
index 53262830d029c656fe74180495ab0100e00b0ec3..9ae3f80ed739c21fb0c9ebcff5aa232ea9436020 100644 (file)
@@ -28,6 +28,7 @@ using lyx::support::prefixIs;
 
 using std::pair;
 using std::vector;
+using std::string;
 
 
 string const browseFile(string const & filename,
index 0530656eb1fcad6a8f1d773ee216d37aae7ed5fc..6f0d73de31b3ef0499eb1e06ef9bec0f804f1261 100644 (file)
 #ifndef HELPERFUNCS_H
 #define HELPERFUNCS_H
 
-#include "support/std_string.h"
 #include <utility>
 #include <vector>
+#include <string>
+
 
 /** Launch a file dialog and return the chosen file.
     filename: a suggested filename.
     pattern: *.ps etc.
     dir1 = (name, dir), dir2 = (name, dir): extra buttons on the dialog.
 */
-string const
-browseFile(string const & filename,
-          string const & title,
-          string const & pattern,
+std::string const
+browseFile(std::string const & filename,
+          std::string const & title,
+          std::string const & pattern,
           bool save = false,
-          std::pair<string,string> const & dir1 =
-          std::make_pair(string(), string()),
-          std::pair<string,string> const & dir2 =
-          std::make_pair(string(), string()));
+          std::pair<std::string,std::string> const & dir1 =
+          std::make_pair(std::string(), std::string()),
+          std::pair<std::string,std::string> const & dir2 =
+          std::make_pair(std::string(), std::string()));
 
 
 /* Wrapper around browseFile which tries to provide a filename
@@ -39,16 +40,16 @@ browseFile(string const & filename,
    of the form "../baz/foo.txt", an absolute path is returned. This is
    intended to be useful for insets which encapsulate files/
 */
-string const
-browseRelFile(string const & filename,
-             string const & refpath,
-             string const & title,
-             string const & pattern,
+std::string const
+browseRelFile(std::string const & filename,
+             std::string const & refpath,
+             std::string const & title,
+             std::string const & pattern,
              bool save = false,
-             std::pair<string,string> const & dir1 =
-             std::make_pair(string(), string()),
-             std::pair<string,string> const & dir2 =
-             std::make_pair(string(), string()));
+             std::pair<std::string,std::string> const & dir1 =
+             std::make_pair(std::string(), std::string()),
+             std::pair<std::string,std::string> const & dir2 =
+             std::make_pair(std::string(), std::string()));
 
 
 /** Launch a file dialog and return the chosen directory.
@@ -56,17 +57,17 @@ browseRelFile(string const & filename,
     title: the title of the dialog.
     dir1 = (name, dir), dir2 = (name, dir): extra buttons on the dialog.
 */
-string const
-browseDir(string const & pathname,
-          string const & title,
-          std::pair<string,string> const & dir1 =
-          std::make_pair(string(), string()),
-          std::pair<string,string> const & dir2 =
-          std::make_pair(string(), string()));
+std::string const
+browseDir(std::string const & pathname,
+          std::string const & title,
+          std::pair<std::string,std::string> const & dir1 =
+          std::make_pair(std::string(), std::string()),
+          std::pair<std::string,std::string> const & dir2 =
+          std::make_pair(std::string(), std::string()));
 
 
 /// Returns a vector of units that can be used to create a valid LaTeX length.
-std::vector<string> const getLatexUnits();
+std::vector<std::string> const getLatexUnits();
 
 
 /** Functions to extract vectors of the first and second elems from a
index 59adcbb587c5570572c97862e1f53a7077894cd3..587b7b93d68594219cb9fe6e4a379c18ab4833c8 100644 (file)
@@ -36,6 +36,7 @@ using lyx::support::Systemcall;
 using lyx::support::token;
 using lyx::support::user_lyxdir;
 
+using std::string;
 using std::endl;
 
 
index ff3c6a163a5011bb34dce1e1feff03ee0e618f03..5300f90ebc0c7214b7608c0a96167e4ff0ef9418 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef TEX_HELPERS_H
 #define TEX_HELPERS_H
 
-
-#include "support/std_string.h"
 #include <vector>
 
 
@@ -27,12 +25,12 @@ void texhash();
 /** Fill \c contents from one of the three texfiles.
  *  Each entry in the file list is returned as a name_with_path
  */
-void getTexFileList(string const & filename, std::vector<string> & contents);
+void getTexFileList(std::string const & filename, std::vector<std::string> & contents);
 
 /// get the options of stylefile
-string const getListOfOptions(string const & classname, string const & type);
+std::string const getListOfOptions(std::string const & classname, std::string const & type);
 
 /// get a class with full path from the list
-string const getTexFileFromList(string const & classname, string const & type);
+std::string const getTexFileFromList(std::string const & classname, std::string const & type);
 
 #endif // TEX_HELPERS_H
index ffd0c17378d84beb3a3f5f47e1ae411b135f95bb..8b3fb4ad9ac9aa57822c9749d4441a7177093a02 100644 (file)
@@ -13,7 +13,8 @@
 #ifndef FONT_METRICS_H
 #define FONT_METRICS_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 class LyXFont;
 
@@ -60,17 +61,17 @@ namespace font_metrics {
                return width(&c, 1, f);
        }
        /// return the width of the string in the font
-       inline int width(string const & s, LyXFont const & f) {
+       inline int width(std::string const & s, LyXFont const & f) {
                if (s.empty()) return 0;
                return width(s.data(), s.length(), f);
        }
        /// FIXME ??
-       int signedWidth(string const & s, LyXFont const & f);
+       int signedWidth(std::string const & s, LyXFont const & f);
        /**
         * fill in width,ascent,descent with the values for the
         * given string in the font.
         */
-       void rectText(string const & str, LyXFont const & font,
+       void rectText(std::string const & str, LyXFont const & font,
                int & width,
                int & ascent,
                int & descent);
@@ -78,7 +79,7 @@ namespace font_metrics {
         * fill in width,ascent,descent with the values for the
         * given string in the font for a button.
         */
-       void buttonText(string const & str, LyXFont const & font,
+       void buttonText(std::string const & str, LyXFont const & font,
                int & width,
                int & ascent,
                int & descent);
index b6fddd96efc221aaf3d359d471e877f17d17ae9a..dfec643dd6f0bb710d2d761bb0d6a62b9b5977ec 100644 (file)
@@ -14,6 +14,8 @@
 #include "frontends/Alert.h"
 #include "frontends/Alert_pimpl.h"
 
+using std::string;
+
 
 namespace {
 
index 29b8675d0c14bb526ecd2402c14365c2eac6fdef..e1dd28e6c896b4f56517d693764bcb87ab927958 100644 (file)
 
 #include <vector>
 
+using std::string;
+
 
 namespace {
 
index 53494db6b8dee939a81f73f14f86f77bb47ca73c..af3cb9e191120b9089f16d8199e7e9cf8f1a8814 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "FileDialogPrivate.h"
 
+using std::string;
+
 
 FileDialog::FileDialog(string const & title,
                       kb_action action,
index b473fcf389371a764d1fe4aa55dfe73e31dfa107..01eee228e6b9b1ba8b3c3dbf4125b987465ebc77 100644 (file)
 #include <config.h>
 #include <gtkmm.h>
 
-#include "support/std_string.h"
-
 #include "FileDialogPrivate.h"
 
+using std::string;
+
 
 FileDialog::Private::Private(string const & title,
                             kb_action action,
index 47ec7ab4a0bbeaa976035381afe72a4fcf3315a1..f9880638e7b71b74703cd49d1b95ff139eb1553b 100644 (file)
 class FileDialog::Private : public SigC::Object
 {
 public:
-       Private(string const & title,
+       Private(std::string const & title,
                kb_action action,
                FileDialog::Button b1, FileDialog::Button b2);
-       FileDialog::Result const open(string const & path,
-                                     string const & mask,
-                                     string const & suggested);
-       FileDialog::Result const opendir(string const & path,
-                                        string const & suggested);
+       FileDialog::Result const open(std::string const & path,
+                                     std::string const & mask,
+                                     std::string const & suggested);
+       FileDialog::Result const opendir(std::string const & path,
+                                        std::string const & suggested);
 
-       FileDialog::Result const save(string const & path,
-                                     string const & mask,
-                                     string const & suggested);
+       FileDialog::Result const save(std::string const & path,
+                                     std::string const & mask,
+                                     std::string const & suggested);
 
 private:
        void onButton1Clicked();
@@ -37,8 +37,8 @@ private:
        Gtk::FileSelection fileSelection_;
        Gtk::Button button1_;
        Gtk::Button button2_;
-       string dir1_;
-       string dir2_;
+       std::string dir1_;
+       std::string dir2_;
        kb_action action_;
 };
 
index be533a2a3ba54554c5f59ee8eea414cc2e3276a2..dafda8d04922f44556d52f8ff6b6b6f8bc8c5d92 100644 (file)
@@ -20,6 +20,7 @@
 #include "version.h"
 
 using std::ostringstream;
+using std::string;
 
 
 namespace {
index 1e37b7e684a6f307e075169858977e6e13f1a3af..5680177e76aeecb7805d9d6de762715f76ff6715 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "GBC.h"
 
+using std::string;
+
 
 GBC::GBC(ButtonController const & parent,
         string const & cancel, string const & close)
index 51a1071f72e54105af19419f4be3339aada27ea8..cd89ef723107e44d607be37a83c4644df2949414 100644 (file)
 
 #include "ButtonController.h"
 #include "BCView.h"
-#include "support/std_string.h"
 #include "gettext.h"
 
 class GBC : public GuiBC<Gtk::Button, Gtk::Widget>
 {
 public:
        GBC(ButtonController const & parent,
-           string const & cancel = _("Cancel"),
-           string const & close = _("Close"));
+           std::string const & cancel = _("Cancel"),
+           std::string const & close = _("Close"));
 private:
        /// Updates the button sensitivity (enabled/disabled)
        void setButtonEnabled(Gtk::Button *, bool enabled) const;
@@ -33,7 +32,7 @@ private:
        void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
 
        /// Set the label on the button
-       void setButtonLabel(Gtk::Button *, string const & label) const;
+       void setButtonLabel(Gtk::Button *, std::string const & label) const;
 };
 
 #endif
index acf2b10821ce0877bae319c45be730a991124d45..bf50a7ab6f55713f7831df3d399375db4167ae26 100644 (file)
@@ -14,6 +14,8 @@
 #include <gdk/gdkkeysyms.h>
 #include "GLyXKeySym.h"
 
+using std::string;
+
 
 GLyXKeySym::GLyXKeySym() : keyval_(GDK_VoidSymbol)
 {
index 980a40d6d5ed6074c4be25808fde179a5b232e99..3ee53bcff000d58555b78f3d9be8d51e9278a221 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef GLYX_KEYSYM_H
 #define GLYX_KEYSYM_H
 
-#include "support/std_string.h"
 #include "frontends/LyXKeySym.h"
 
 class GLyXKeySym : public LyXKeySym
@@ -22,12 +21,12 @@ public:
        GLyXKeySym(unsigned int keyval);
        void setKeyval(unsigned int keyval);
        unsigned int getKeyval() const { return keyval_; }
-       virtual void init(string const & symbolname);
+       virtual void init(std::string const & symbolname);
        virtual ~GLyXKeySym() {}
        virtual bool isOK() const;
        virtual bool isModifier() const;
-       virtual string getSymbolName() const;
-       virtual char getISOEncoded(string const & encoding) const;
+       virtual std::string getSymbolName() const;
+       virtual char getISOEncoded(std::string const & encoding) const;
 private:
        unsigned int keyval_;
 };
index f1677cf736a70f2037f2885ea049f067f7b7a078..54c295d683d4250ed69a0ed435f6a9139d3769ed 100644 (file)
@@ -16,6 +16,8 @@
 #include "debug.h"
 #include "lyxfunc.h"
 
+using std::string;
+
 namespace
 {
 
index 8dafe13320f6b659eee8915fa1801a29b3e03fbd..f6db2ceb47fd7154637aafdaefbbf58199c44327 100644 (file)
@@ -23,7 +23,7 @@ public:
        GMenubar(LyXView *, MenuBackend const &);
        ~GMenubar();
        void update();
-       void openByName(string const &);
+       void openByName(std::string const &);
 private:
        void onCommandActivate(MenuItem const * item, Gtk::MenuItem * gitem);
        void onSubMenuActivate(MenuItem const * item, Gtk::MenuItem * gitem);
index 436b561b174b0c74dc26981f36e35010dd4c53ba..79a3ca9579b8ffc388b65e83498f3b905e1875fb 100644 (file)
 #include "GMiniBuffer.h"
 #include "debug.h"
 #include "bufferview_funcs.h"
+
+#include "frontends/controllers/ControlCommandBuffer.h"
+
 #include <boost/bind.hpp>
 #include <vector>
-#include "frontends/controllers/ControlCommandBuffer.h"
+
+using std::string;
 
 
 GMiniBuffer::GMiniBuffer(GView * view, ControlCommandBuffer & control) :
index baf978c1a14b0f535d213bc86e82670ab4e97b40..6c97551ea32d9b7018b78990efd561169a8a16de 100644 (file)
@@ -14,7 +14,7 @@
 #define GMINI_BUFFER_H
 
 #include "frontends/Timeout.h"
-#include "support/std_string.h"
+
 class ControlCommandBuffer;
 
 class GMiniBuffer : public SigC::Object
@@ -22,7 +22,7 @@ class GMiniBuffer : public SigC::Object
 public:
        GMiniBuffer(GView * view, ControlCommandBuffer & control);
        ~GMiniBuffer();
-       void message(string const & str);
+       void message(std::string const & str);
        /// go into edit mode
        void editMode();
 private:
index 958e25c1ce0cf049a60465ab47f34bd56ea44254..f91c0c35e3659ad8d5624807ef0c38859a2ee27b 100644 (file)
@@ -12,7 +12,6 @@
 #include <gtkmm.h>
 
 #include "GPainter.h"
-#include "support/std_string.h"
 #include "debug.h"
 #include "GWorkArea.h"
 #include "lyxrc.h"
@@ -32,6 +31,8 @@
 
 #include <cmath>
 
+using std::string;
+
 
 GPainter::GPainter(GWorkArea & xwa)
        : Painter(), owner_(xwa)
@@ -189,7 +190,7 @@ Painter & GPainter::image(int x, int y,
 
 
 Painter & GPainter::text(int x, int y,
-       string const & s, LyXFont const & f)
+       std::string const & s, LyXFont const & f)
 {
        size_t size = s.length() + 1;
        wchar_t * wcs = (wchar_t *) alloca(size * sizeof(wchar_t));
index 3c93e2418db19e8dafe66096d1bbf7ef6a139ca4..ff0ce5d82f9f4cfc39962cb267085e7a2eddbaff 100644 (file)
 #ifndef GPAINTER_H
 #define GPAINTER_H
 
+#include "frontends/Painter.h"
+
 #include <X11/Xft/Xft.h>
 
 #include <map>
-#include "frontends/Painter.h"
-#include "support/std_string.h"
 
 class LyXFont;
 class GWorkArea;
@@ -99,7 +99,7 @@ public:
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
-               string const & str, LyXFont const & f);
+               std::string const & str, LyXFont const & f);
 
        /** Draw a string at position x, y (y is the baseline)
         *  This is just for fast drawing
index de78f03e578ffcf4470bcf9fff69085c9549e4cb..af758a5b61c2e9983237e852e0b7e70cc1436274 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef GPRINT_H
 #define GPRINT_H
 
-#include "support/std_string.h"
 #include "GViewBase.h"
 
 class ControlPrint;
@@ -20,7 +19,7 @@ class ControlPrint;
 class GPrint : public GViewCB<ControlPrint, GViewGladeB>
 {
 public:
-       GPrint(Dialog & parent, string title = "Print Document");
+       GPrint(Dialog & parent, std::string title = "Print Document");
 private:
        virtual void apply();
        virtual void update();
@@ -46,4 +45,3 @@ private:
 };
 
 #endif
-
index 1a6aaf143896c0fc9db2090e6315a1bfed20df47..7335cca907afcec7ab232f73c37faee9b3f7baa9 100644 (file)
@@ -18,6 +18,9 @@
 #include "GText.h"
 #include "IdSc.h"
 
+using std::string;
+
+
 GText::GText(Dialog & parent, string const & title, string const & label)
        : GViewCB<ControlCommand, GViewGladeB>(parent, title),
          label_(label), entry_(0)
index b236bdce0c22b95cf8ad56e4662990c7a6ebdc34..bbbc88436ea68b0ea7335af187ed3b2b639410fe 100644 (file)
 #define GTEXT_H
 
 #include "GViewBase.h"
-#include "support/std_string.h"
 
 class ControlCommand;
 
 class GText : public GViewCB<ControlCommand, GViewGladeB>
 {
 public:
-       GText(Dialog & parent, string const & title, string const & label);
+       GText(Dialog & parent, std::string const & title, std::string const & label);
 private:
        virtual void apply();
        virtual void update();
        virtual void doBuild();
        void onEntryChanged();
-       string const label_;
+       std::string const label_;
        Gtk::Entry * entry_;
 };
 
index 91a31d23f0f8dc13dbe262b8641bba47a0994339..b0c9a080e53f86f345a53388492665f7706aed9a 100644 (file)
@@ -25,6 +25,8 @@
 #include "support/lstrings.h"
 #include "debug.h"
 
+using std::string;
+
 
 namespace
 {
index 3d04909ab25e28dcf07582d751d31ee480b3fd7b..01b82a44c4c6c346e0472136b6fc3fefb8fcaa45 100644 (file)
@@ -15,7 +15,6 @@
 #include <gtkmm.h>
 #include "frontends/Toolbar.h"
 #include "ToolbarBackend.h"
-#include "support/std_string.h"
 
 
 class GToolbar : public Toolbar, public SigC::Object
@@ -39,7 +38,7 @@ public:
        void update();
 
        /// select the right layout in the combox
-       void setLayout(string const & layout);
+       void setLayout(std::string const & layout);
 
        /// Populate the layout combox; re-do everything if force is true.
        void updateLayoutList();
index 86509fa9573365150d310d28f0dc86b5bad3eef9..e71763757cda0be59d645ed95003c69d319b1beb 100644 (file)
@@ -23,6 +23,9 @@
 #include "lyxfunc.h"
 #include <boost/bind.hpp>
 
+using std::string;
+
+
 BufferView * current_view;
 
 GView * GView::view_ = 0;
index 9185559011fb1e5606099f87cf364b05bc82e804..9bfb989045462d1332152dc0bbdb1baa54d6a3b6 100644 (file)
@@ -24,7 +24,7 @@ public:
 
        virtual void prohibitInput() const;
        virtual void allowInput() const;
-       virtual void message(string const &);
+       virtual void message(std::string const &);
        Gtk::VBox & getVBox() { return *vbox_.get(); }
        GView();
        bool on_delete_event(GdkEventAny * event);
@@ -38,7 +38,7 @@ public:
 private:
        void showViewState();
        bool onFocusIn(GdkEventFocus * event);
-       virtual void setWindowTitle(string const & t, string const & it);
+       virtual void setWindowTitle(std::string const & t, std::string const & it);
        static GView * view_;
        std::auto_ptr<Gtk::VBox> vbox_;
        boost::scoped_ptr<GMiniBuffer> minibuffer_;
index a80c1b4bac246ec67cb07177bb02c2ac2a07363d..beef2650d14e6da78f87710289b75506c8020710 100644 (file)
@@ -15,6 +15,8 @@
 #include "ControlButtons.h"
 #include "support/filetools.h"
 
+using std::string;
+
 
 GViewBase::GViewBase(Dialog & parent, string const & t, bool allowResize) :
        Dialog::View(parent, t), allowResize_(allowResize)
index 19cf5d767caac0bcea2ef1216b77562fca08c5de..524d9760f64b005d344068210d7058df8c4f2f68 100644 (file)
@@ -22,7 +22,7 @@
 class GViewBase : public Dialog::View, public SigC::Object
 {
 public:
-       GViewBase(Dialog &, string const &, bool allowResize);
+       GViewBase(Dialog &, std::string const &, bool allowResize);
        virtual ~GViewBase();
 protected:
        // Build the dialog
@@ -50,7 +50,7 @@ template <class Dialog>
 class GViewDB : public GViewBase
 {
 protected:
-       GViewDB(Dialog &, string const &, bool allowResize);
+       GViewDB(Dialog &, std::string const &, bool allowResize);
        virtual const Gtk::Window * window() const;
        virtual Gtk::Window * window();
        boost::scoped_ptr<Dialog> dialog_;
@@ -58,7 +58,7 @@ protected:
 
 
 template <class Dialog>
-GViewDB<Dialog>::GViewDB(Dialog & parent, string const & t, bool allowResize) :
+GViewDB<Dialog>::GViewDB(Dialog & parent, std::string const & t, bool allowResize) :
        GViewBase(parent, t, allowResize)
 {
 }
@@ -81,7 +81,7 @@ const Gtk::Window * GViewDB<Dialog>::window() const
 class GViewGladeB : public GViewBase
 {
 protected:
-       GViewGladeB(Dialog & parent, string const & t, bool allowResize);
+       GViewGladeB(Dialog & parent, std::string const & t, bool allowResize);
        virtual const Gtk::Window * window() const;
        virtual Gtk::Window * window();
        Glib::RefPtr<Gnome::Glade::Xml> xml_;
@@ -95,12 +95,12 @@ public:
        Controller & controller();
        Controller const & controller() const;
 protected:
-       GViewCB(Dialog & parent, string const & t, bool allowResize = false);
+       GViewCB(Dialog & parent, std::string const & t, bool allowResize = false);
 };
 
 
 template <class Controller, class Base>
-GViewCB<Controller, Base>::GViewCB(Dialog & parent, string const & t,
+GViewCB<Controller, Base>::GViewCB(Dialog & parent, std::string const & t,
                                   bool allowResize) :
        Base(parent, t, allowResize)
 {
index d3be415f89e38025d1b5f4898d80ac937b6488e7..dd5941c6fc9ece6848c14f744f6f712bfd40aa36 100644 (file)
@@ -21,6 +21,9 @@
 #include "funcrequest.h"
 #include "LColor.h"
 
+using std::string;
+
+
 ColorCache colorCache;
 
 
index d47c77107f99e905e7693e49e10f39a8dd83bbbc..a2182329d000aaa3e656b39bd540a07a4d4a17f6 100644 (file)
@@ -81,9 +81,9 @@ public:
        /// a selection exists
        virtual void haveSelection(bool) const;
        ///
-       virtual string const getClipboard() const;
+       virtual std::string const getClipboard() const;
        ///
-       virtual void putClipboard(string const &) const;
+       virtual void putClipboard(std::string const &) const;
        void inputCommit(gchar * str);
 private:
        bool onExpose(GdkEventExpose * event);
@@ -106,7 +106,7 @@ private:
        XftDraw * draw_;
        ColorHandler colorHandler_;
        GtkIMContext * imContext_;
-       string inputCache_;
+       std::string inputCache_;
 };
 
 #endif
index b70ae0c15e0c80767c280224dc099865b41e9650..f2506c810280513862a92980e04738df042d8e7d 100644 (file)
@@ -15,6 +15,8 @@
 
 using lyx::support::split;
 
+using std::string;
+
 
 /// Extract shortcut from "<identifer>|#<shortcut>" string
 string const id_sc::shortcut(string const & idsc)
index ebe72cc40a52850207fe9f64955ebf4e2387a4cb..dc40a534f82306b295f702f13b2d323aeabd9217 100644 (file)
 #ifndef ID_SC_H
 #define ID_SC_H
 
-#include "support/std_string.h"
+#include <string>
 
 namespace id_sc
 {
 
 /// Extract shortcut from "<identifer>|<shortcut>" string
-string const shortcut(string const &);
+std::string const shortcut(std::string const &);
 
 /// Extract identifier from "<identifer>|<shortcut>" string
-string const id(string const &);
+std::string const id(std::string const &);
 
 }
 
index d11ce197fe4e4856b448e5e0a1138c27e0179b50..ce655c1fc0990ecee837452092ad504c4b69f8e9 100644 (file)
@@ -53,6 +53,7 @@
 #include "xforms_helpers.h"
 
 using std::ostringstream;
+using std::string;
 
 
 extern BufferList bufferlist;
index 21b7a522b090ad3e470309db5cc1089afe33faec..c68cc0bf6c2c0189e8131b022356fa309bedbb4a 100644 (file)
@@ -27,6 +27,7 @@
 #include "frontends/lyx_gui.h"
 
 using std::endl;
+using std::string;
 
 // The global fontLoader
 xftFontLoader fontLoader;
index 4ff0dfad73a098d017ace55975752171be7b780a..6bfd7351ab2fe40023b59bffc01bba65c07b48e1 100644 (file)
@@ -13,7 +13,7 @@
 #define XFT_FONT_LOADER_H
 
 #include "lyxfont.h"
-#include "support/std_string.h"
+
 #include <X11/Xft/Xft.h>
 
 class GWorkArea;
@@ -61,7 +61,7 @@ private:
                                    LyXFont::FONT_SERIES series,
                                    LyXFont::FONT_SHAPE shape,
                                    LyXFont::FONT_SIZE size);
-       string familyString(LyXFont::FONT_FAMILY family);
+       std::string familyString(LyXFont::FONT_FAMILY family);
        /// Reset font handler
        void reset();
 
index 97d1af136cef13cfefdea02a890d7cda152940ec..068af20f6cee4ccd45f768214db2ebad047e9716 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <boost/scoped_array.hpp>
 
+using std::string;
+
 
 namespace {
 
index 04f889e701e12955f4997fc699744bb397c3b147..296f830340358a5d6176cdd9814d610ab55b35fd 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYX_GUI_H
 #define LYX_GUI_H
 
-#include "support/std_string.h"
+
 #include "FuncStatus.h"
 
 #include <vector>
@@ -30,13 +30,13 @@ namespace lyx_gui {
 extern bool use_gui;
 
 /// return a suitable serif font name (called from non-gui context too !)
-string const roman_font_name();
+std::string const roman_font_name();
 
 /// return a suitable sans serif font name (called from non-gui context too !)
-string const sans_font_name();
+std::string const sans_font_name();
 
 /// return a suitable monospaced font name (called from non-gui context too !)
-string const typewriter_font_name();
+std::string const typewriter_font_name();
 
 /// parse command line and do basic initialisation
 void parse_init(int & argc, char * argv[]);
@@ -51,7 +51,7 @@ void parse_lyxrc();
  * Start the main event loop, after executing the given
  * batch commands, and loading the given documents
  */
-void start(string const & batch, std::vector<string> const & files);
+void start(std::string const & batch, std::vector<std::string> const & files);
 
 /**
  * Synchronise all pending events.
@@ -72,7 +72,7 @@ FuncStatus getStatus(FuncRequest const & ev);
 /** Eg, passing LColor::black returns "000000",
  *      passing LColor::white returns "ffffff".
  */
-string const hexname(LColor_color col);
+std::string const hexname(LColor_color col);
 
 /**
  * update an altered GUI color
index 615728cebcb6a40042456a298e09d24ff70d8dfb..41c7570cb8554e8c222b02ff3ead96b0b77c0f9f 100644 (file)
 
 #include <algorithm>
 
+using lyx::support::bformat;
+
 using std::pair;
 using std::make_pair;
-using lyx::support::bformat;
+using std::string;
+
 
 int prompt_pimpl(string const & tit, string const & question,
            int default_button, int cancel_button,
index acaf295e2d5000d770aab2ad246074c8a4d1f45e..37adee70c173391072cf70158e76bfd48d4c2e22 100644 (file)
@@ -27,6 +27,8 @@
 
 using lyx::support::LibFileSearch;
 
+using std::string;
+
 
 BulletsModule::BulletsModule(QWidget * parent,  const char * name, WFlags fl)
        : BulletsModuleBase(parent, name, fl), tmpbulletset(0)
index 2f325ce6a677b604f4ca5c3f9d3e1a8a14a37333..a93d3f104b4305e10a0342aaa7308f2977f3c8a3 100644 (file)
@@ -77,6 +77,8 @@
 
 #include "qt_helpers.h"
 
+using std::string;
+
 
 namespace {
 
index fb4c463c958f7419c986b87403d534eb90d32073..0938cd81353f2f7ccf58fc1a62c06c27186f200f 100644 (file)
@@ -26,7 +26,7 @@ struct FileDialog::Private {
 };
 
 
-FileDialog::FileDialog(string const & t,
+FileDialog::FileDialog(std::string const & t,
                       kb_action s, Button b1, Button b2)
        : private_(new FileDialog::Private), title_(t), success_(s)
 {
@@ -41,11 +41,11 @@ FileDialog::~FileDialog()
 }
 
 
-FileDialog::Result const FileDialog::save(string const & path,
-                                           string const & mask,
-                                           string const & suggested)
+FileDialog::Result const FileDialog::save(std::string const & path,
+                                           std::string const & mask,
+                                           std::string const & suggested)
 {
-       string filter(mask);
+       std::string filter(mask);
        if (mask.empty())
                filter = _("All files (*)");
 
@@ -71,11 +71,11 @@ FileDialog::Result const FileDialog::save(string const & path,
 }
 
 
-FileDialog::Result const FileDialog::open(string const & path,
-                                           string const & mask,
-                                           string const & suggested)
+FileDialog::Result const FileDialog::open(std::string const & path,
+                                           std::string const & mask,
+                                           std::string const & suggested)
 {
-       string filter(mask);
+       std::string filter(mask);
        if (mask.empty())
                filter = _("All files (*)");
 
@@ -99,10 +99,10 @@ FileDialog::Result const FileDialog::open(string const & path,
 }
 
 
-FileDialog::Result const FileDialog::opendir(string const & path,
-                                           string const & suggested)
+FileDialog::Result const FileDialog::opendir(std::string const & path,
+                                           std::string const & suggested)
 {
-       string filter = _("Directories");
+       std::string filter = _("Directories");
 
        LyXFileDialog dlg(path, filter, title_, private_->b1, private_->b2);
        lyxerr[Debug::GUI] << "Select with path \"" << path
index 4bc65e36f792dd9d21993b559dd245593dd30225..785fe5edc9d3306138e75406c42cb6723dd0f623 100644 (file)
@@ -21,6 +21,8 @@
 
 using lyx::support::split;
 
+using std::string;
+
 
 namespace {
 
index 573e42b3fd60e5c4e0b29d5039b7d89ed683615e..2029ad4504d164ef7faaffcbccd07321b47df0dc 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "frontends/FileDialog.h"
 #include <qfiledialog.h>
-#include "support/std_string.h"
 
 class QToolButton;
 
@@ -23,17 +22,17 @@ class LyXFileDialog : public QFileDialog
 {
        Q_OBJECT
 public:
-       LyXFileDialog(string const & p, string const & m, string const & t,
+       LyXFileDialog(std::string const & p, std::string const & m, std::string const & t,
                      FileDialog::Button const & b1,
                      FileDialog::Button const & b2);
 public slots:
        void buttonClicked();
 private:
        QToolButton * b1_;
-       string b1_dir_;
+       std::string b1_dir_;
 
        QToolButton * b2_;
-       string b2_dir_;
+       std::string b2_dir_;
 };
 
 #endif // FILEDIALOG_PRIVATE_H
index 4e6534085d5c52162a93cec49c9c66ed9f5282e9..63d932538883de4971c3d576bb19e4e70d80db17 100644 (file)
@@ -31,6 +31,7 @@ using std::getline;
 
 using std::istringstream;
 using std::ostringstream;
+using std::string;
 
 
 typedef QController<ControlAboutlyx, QView<QAboutDialog> > base_class;
index bd6a45c57165237d89a0dd109ab0a9b631c74a91..e296f8181f2257c0efc222f2fc11529ce4e0d31d 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <config.h>
 
-
 #include "debug.h"
 #include "support/lstrings.h"
 
@@ -37,6 +36,7 @@ using lyx::support::split;
 using lyx::support::trim;
 
 using std::vector;
+using std::string;
 
 
 typedef QController<ControlBibtex, QView<QBibtexDialog> > base_class;
index 11df55887c1b43ac64d0cd7dea8497eb7c37f08f..ea3d26fd995b290c012800d1b7c2ad4f4258035c 100644 (file)
@@ -26,6 +26,8 @@
 
 using lyx::support::ChangeExtension;
 
+using std::string;
+
 
 QBibtexDialog::QBibtexDialog(QBibtex * form)
        : QBibtexDialogBase(0, 0, false, 0),
index 2bfdd00717a8309ed637a2e649944ad335da17c5..2c6b71470d93dffb9663b80250f5cd4834ee3045 100644 (file)
 #include "QChanges.h"
 #include "Qt2BC.h"
 
+
+using std::string;
+
+
 typedef QController<ControlChanges, QView<QChangesDialog> > base_class;
 
 
index 0fdc416c54422814aed5ffb3a8cce9a2802560ea..010bbedfaa7e552b93147cbaf5da89d40172b5b2 100644 (file)
@@ -34,7 +34,7 @@ using lyx::support::getVectorFromString;
 using lyx::support::trim;
 
 using std::find;
-
+using std::string;
 using std::vector;
 
 
index 4bc13b8448ba692c695a6aabf1f5531cdb85f9b1..742f008c0e0d61edca18c62d143fe79ea82f4327 100644 (file)
@@ -46,12 +46,12 @@ private:
        /// set the styles combo
        void updateStyle();
 
-       void updateBrowser(QListBox *, std::vector<string> const &) const;
+       void updateBrowser(QListBox *, std::vector<std::string> const &) const;
 
        /// selected keys
-       std::vector<string> citekeys;
+       std::vector<std::string> citekeys;
        /// available bib keys
-       std::vector<string> bibkeys;
+       std::vector<std::string> bibkeys;
 };
 
 #endif // QCITATION_H
index b55cf0b8b5d49741db3d940f719633ce63263296..42a7bb766c1ec117d54673c133478f0ac4305302 100644 (file)
@@ -24,6 +24,7 @@
 #include "QCitation.h"
 
 using std::vector;
+using std::string;
 
 
 QCitationDialog::QCitationDialog(QCitation * form)
@@ -216,7 +217,7 @@ void QCitationDialog::find(biblio::Direction dir)
        biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
 
        biblio::Search const type = add_->searchTypeCB->isChecked()
-               ? biblio::REGEX : biblio::SIMPLE;
+               ? biblio::REGEX : biblio::SIMPLE;
 
        vector<string>::const_iterator start = form_->bibkeys.begin();
        int const sel = add_->availableLB->currentItem();
index 8691a4e4b2d3c2860e9c2e27110d3febb3eac4ce..5a88cde8cfd2ba3661beb6612579a79da82c811f 100644 (file)
@@ -26,6 +26,7 @@
 using lyx::support::LibFileSearch;
 
 using std::vector;
+using std::string;
 
 
 namespace {
index 3d93d688ef01c8921fccaa0b4f1e72b4955dd46a..056f19b3ba696f3bba13a08bf497ddf9d6dc6ca0 100644 (file)
@@ -23,6 +23,8 @@
 #include <qpixmap.h>
 #include <qcheckbox.h>
 
+using std::string;
+
 namespace {
 
 char const * delim[] = {
index 7f03f14da3a24cdc2c6f1a3138e9fdd945277c78..412e247d74f83cc4566da249c6e9579525584b02 100644 (file)
@@ -12,9 +12,8 @@
 #ifndef QDELIMITERDIALOG_H
 #define QDELIMITERDIALOG_H
 
-
 #include "ui/QDelimiterDialogBase.h"
-#include "support/std_string.h"
+
 
 class QMathDelimiter;
 class IconPalette;
@@ -25,19 +24,19 @@ class QDelimiterDialog : public QDelimiterDialogBase {
 public:
        QDelimiterDialog(QMathDelimiter * form);
 public slots:
-       void ldelim_clicked(const string & str);
-       void rdelim_clicked(const string & str);
+       void ldelim_clicked(const std::string & str);
+       void rdelim_clicked(const std::string & str);
        void insertClicked();
 protected:
        //needed ? virtual void closeEvent(QCloseEvent * e);
 private:
-       void set_label(QLabel * label, const string & str);
+       void set_label(QLabel * label, const std::string & str);
 
        /// symbol of left delimiter
-       string left_;
+       std::string left_;
 
        /// symbol of right delimiter
-       string right_;
+       std::string right_;
 
        /// owning form
        QMathDelimiter * form_;
index c58814c7de59cfcbd3903b3df83f87759d70cdac..b6fef5e481d58d1c1585406149f148311db20a78 100644 (file)
@@ -18,7 +18,7 @@
 #include "QDialogView.h"
 
 
-QDialogView::QDialogView(Dialog & parent, string const & t)
+QDialogView::QDialogView(Dialog & parent, std::string const & t)
        : Dialog::View(parent,t), updating_(false)
 {}
 
index 99589d92870031c907279aaa09e72106071f1e5a..8229f06c4097e621aada56f32d1066783b469990 100644 (file)
@@ -27,7 +27,7 @@ class QDialogView : public QObject, public Dialog::View {
        Q_OBJECT
 public:
        ///
-       QDialogView(Dialog &, string const &);
+       QDialogView(Dialog &, std::string const &);
        ///
        virtual ~QDialogView() {}
        ///
@@ -81,7 +81,7 @@ private:
 template <class GUIDialog>
 class QView: public QDialogView {
 protected:
-       QView(Dialog &, string const &);
+       QView(Dialog &, std::string const &);
 
        /// update the dialog
        virtual void update();
@@ -99,7 +99,7 @@ protected:
 
 
 template <class GUIDialog>
-QView<GUIDialog>::QView(Dialog & p, string const & t)
+QView<GUIDialog>::QView(Dialog & p, std::string const & t)
        : QDialogView(p, t)
 {}
 
@@ -147,7 +147,7 @@ class QController: public Base
 {
 protected:
        ///
-       QController(Dialog &, string const &);
+       QController(Dialog &, std::string const &);
 public:
        /// The parent controller
        Controller & controller();
@@ -157,7 +157,7 @@ public:
 
 
 template <class Controller, class Base>
-QController<Controller, Base>::QController(Dialog & p, string const & t)
+QController<Controller, Base>::QController(Dialog & p, std::string const & t)
        : Base(p, t)
 {}
 
index 414b03835d53ea14129a71239bc9fc355bd4a1e9..e0da617cf16bd480f8ccc8084ee56bbfe69a797b 100644 (file)
 #include "lengthcombo.h"
 
 
+using lyx::support::bformat;
 
 using std::vector;
-using lyx::support::bformat;
+using std::string;
+
 
 typedef Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> > base_class;
 
index 640aebe69d5cf50a692d90769350615b3a44cf8d..4567612e78e6814b3c05a354c708c1cfc3449812 100644 (file)
@@ -48,7 +48,7 @@ private:
        void useClassDefaults();
 
        /// FIXME
-       std::vector<string> lang_;
+       std::vector<std::string> lang_;
 };
 
 #endif // QDOCUMENT_H
index 700e9741bce34afad2f0224b78d425fef862791d..0daec0fcb42497f109b4d56356a6d9d611785586 100644 (file)
@@ -24,7 +24,6 @@
 #include "bufferparams.h"
 #include "lyxrc.h"
 
-
 #include <qlabel.h>
 #include <qmultilineedit.h>
 #include <qlineedit.h>
@@ -37,6 +36,8 @@
 
 using lyx::support::token;
 
+using std::string;
+
 
 QDocumentDialog::QDocumentDialog(QDocument * form)
        : QDocumentDialogBase(0, 0, false, 0), form_(form)
index 248f5c97a30db84ffe44559b662bc471823996b5..7f92c6d5c1bc23d82b099a8f3f989d94d9c87719 100644 (file)
@@ -27,7 +27,6 @@
 #include "ui/MarginsModuleBase.h"
 #include "ui/PreambleModuleBase.h"
 
-#include "support/std_string.h"
 
 class QDocument;
 class FloatPlacement;
@@ -40,8 +39,8 @@ public:
        QDocumentDialog(QDocument *);
        ~QDocumentDialog();
 
-       void updateFontsize(string const &, string const &);
-       void updatePagestyle(string const &, string const &);
+       void updateFontsize(std::string const &, std::string const &);
+       void updatePagestyle(std::string const &, std::string const &);
 
        void showPreamble();
 
index 199a831487255b9f380d096f9b6581b7da8c4289..cbbf8db32f97b6029f7f457ca227eb2f149c3b22 100644 (file)
@@ -31,6 +31,8 @@
 
 using lyx::support::strToInt;
 
+using std::string;
+
 
 typedef QController<ControlExternal, QView<QExternalDialog> > base_class;
 
index 4659a5203ee24532c46aac519c962dfcdcf057be..65c7589667b820072e252f39b1e5bd493fd14040 100644 (file)
@@ -37,7 +37,7 @@ private:
        virtual void build_dialog();
 
        /// get the right helptext
-       string const helpText() const;
+       std::string const helpText() const;
 };
 
 #endif // QEXTERNAL_H
index c3144c7fc091e37790a0ba89d2a59a33af30f425..cd117c32672b92e32f8eed61c3e7cc910ee293f8 100644 (file)
@@ -41,6 +41,7 @@ using lyx::support::strToInt;
 using lyx::support::token;
 
 using std::vector;
+using std::string;
 
 
 typedef QController<ControlGraphics, QView<QGraphicsDialog> > base_class;
index 502399ff1ddd556daee30c38a240ca40b7dec116..be0d1c17e2c96495ea3c0e49ed3f859c552a3376 100644 (file)
@@ -43,7 +43,7 @@ private:
        void getBB();
 
        /// Store the LaTeX names for the rotation origins.
-       std::vector<string> origin_ltx;
+       std::vector<std::string> origin_ltx;
 
 };
 
index d35c85bf469c2b3096f35057a6a0815dd42e5860..9fc6a5b80ec6ca090b45395207e58be9f0bd697b 100644 (file)
@@ -24,6 +24,7 @@
 #include "QGraphicsDialog.h"
 #include "QGraphics.h"
 
+using std::string;
 
 
 QGraphicsDialog::QGraphicsDialog(QGraphics * form)
index 5c23e724be6369e6cfe9238e726330fe5d4fc909..bc7f3dc97b92de776e001bf024d1bac4b02e612e 100644 (file)
@@ -23,6 +23,8 @@
 #include <qcheckbox.h>
 #include <qcombobox.h>
 
+using std::string;
+
 
 typedef QController<ControlInclude, QView<QIncludeDialog> > base_class;
 
index 912dc1f37a583ae6e819d19f460074435cfd301c..60b7627f83298288623fd94893526ead49b20129 100644 (file)
@@ -22,6 +22,8 @@
 #include <qlineedit.h>
 #include <qpushbutton.h>
 
+using std::string;
+
 typedef QController<ControlCommand, QView<QIndexDialog> > base_class;
 
 
index 45212715e4ad2c81029d310670a01a84e3ed035d..a22020aeb04191a942b702b69e4a436dd7b05f11 100644 (file)
@@ -26,7 +26,7 @@ class QIndex :
 public:
        friend class QIndexDialog;
 
-       QIndex(Dialog &, string const & title, QString const & label);
+       QIndex(Dialog &, std::string const & title, QString const & label);
 protected:
        virtual bool isValid();
 private:
index 1dfe188a56af501e2a3c10584c995f2c65b7319f..2078eb77d5a66622d0d3a11dca9ea5cb0e1ba312 100644 (file)
@@ -28,6 +28,7 @@ using lyx::support::lowercase;
 
 using std::endl;
 using std::find_if;
+using std::string;
 
 
 namespace lyx {
index b4d1a1684c988d4a0c9f3e22963f2bb676d4ae1a..581a8bf424baabb3feff87cb80cb1438c37213df 100644 (file)
@@ -46,7 +46,7 @@ private:
         * The process is asynchronous, so this method starts the loading.
         * When finished, the Image::finishedLoading signal is emitted.
         */
-       virtual void load_impl(string const & filename);
+       virtual void load_impl(std::string const & filename);
        /**
         * Generate the pixmap, based on the current state of
         * image_ (clipped, rotated, scaled etc).
index e21519e4ccbf8c0315033d7bf689fafa6639e10f..ec63f09ca2f7b6ea06be124b3d96b5f7e1e2bce0 100644 (file)
@@ -21,6 +21,7 @@
 
 
 using std::pair;
+using std::string;
 
 
 QLMenubar::QLMenubar(LyXView * view, MenuBackend const & mbe)
index 6534d23f87d409f52f1da9c2e0a4c545ca906b05..ae14ae2148425631718b6dca37e2f1f561bd94cc 100644 (file)
@@ -15,7 +15,7 @@
 #define QLMENUBAR_H
 
 #include "frontends/Menubar.h"
-#include "support/std_string.h"
+
 #include <map>
 
 class LyXView;
@@ -28,7 +28,7 @@ public:
        QLMenubar(LyXView *, MenuBackend const &);
 
        /// opens a top-level submenu given its name
-       void openByName(string const &);
+       void openByName(std::string const &);
 
        /// update the state of the menuitems - not needed
        void update();
@@ -45,7 +45,7 @@ private:
        /// menu controller
        MenuBackend const & menubackend_;
 
-       typedef std::map<string, QLPopupMenu *> NameMap;
+       typedef std::map<std::string, QLPopupMenu *> NameMap;
 
        /// name to menu for openByName
        NameMap name_map_;
index a6dce362dbca80d831e28a040f8ea28a4269b7c3..8ca3000d4bda68917c3a5efa2a3231cc9bfa7de5 100644 (file)
@@ -25,6 +25,7 @@
 #include <qpainter.h>
 
 using std::endl;
+using std::string;
 
 
 QLPainter::QLPainter(QWorkArea & qwa)
index e24a56335ba33edb32688740a69a55acfc97c158..ffc5f2000447e3184332a2540fc5494f7b225b14 100644 (file)
@@ -12,9 +12,7 @@
 #ifndef QLPAINTER_H
 #define QLPAINTER_H
 
-
 #include "Painter.h"
-#include "support/std_string.h"
 
 #include <boost/scoped_ptr.hpp>
 
@@ -103,7 +101,7 @@ public:
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
-               string const & str, LyXFont const & f);
+               std::string const & str, LyXFont const & f);
 
        /** Draw a string at position x, y (y is the baseline)
         *  This is just for fast drawing
index 5f8bb90234dc408ecc70dd1aa3f95c96838dce10..b40a386236bbc9483208deec8b5289d6ff49c8cd 100644 (file)
@@ -23,7 +23,7 @@
 using lyx::support::subst;
 
 using std::make_pair;
-
+using std::string;
 using std::pair;
 
 
index cf1279cc2c524d64766445aabca70f0795e148bc..e86c03113f42fbdd8fb6e253291421ce43e8dd48 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "funcrequest.h"
 
-#include "support/std_string.h"
-
 #include <vector>
 #include <utility>
 
@@ -39,7 +37,7 @@ class QLPopupMenu : public QPopupMenu {
        Q_OBJECT
 public:
        QLPopupMenu(QLMenubar * owner,
-                   string const & name, bool toplevel);
+                   std::string const & name, bool toplevel);
 
        /// populate the menu
        void populate(Menu * menu);
@@ -53,7 +51,7 @@ private:
        QLMenubar * owner_;
 
        /// the name of this menu
-       string name_;
+       std::string name_;
 
        ///
        typedef std::vector<FuncRequest> Funcs;
index f88e416d55b00db13322243ff22f2810cc2a8135..a1f75666153c4125336d3cef3b9390524e4bc27c 100644 (file)
@@ -27,6 +27,7 @@
 #include <qtoolbar.h>
 
 using std::endl;
+using std::string;
 
 
 class QLComboBox : public QComboBox {
index 1701523f27aea541a73ae35a8fcb04dd8e7732fb..3f5f667975afb86c2471b88ad5d45f5b3a2db81f 100644 (file)
@@ -41,7 +41,7 @@ public:
        void add(ToolbarBackend::Toolbar const & tb);
 
        /// add an item to a toolbar
-       void add(QToolBar * tb, FuncRequest const &, string const & tooltip);
+       void add(QToolBar * tb, FuncRequest const &, std::string const & tooltip);
 
        /// show or hide a toolbar
        void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
@@ -50,7 +50,7 @@ public:
        void update();
 
        /// select the right layout in the combox
-       void setLayout(string const & layout);
+       void setLayout(std::string const & layout);
        /// Populate the layout combox.
        void updateLayoutList();
        /// Drop down the layout list
@@ -58,7 +58,7 @@ public:
        /// Erase the layout list
        void clearLayoutList();
 private:
-       void changed_layout(string const & sel);
+       void changed_layout(std::string const & sel);
 
        void button_selected(QToolButton * button);
 
@@ -66,7 +66,7 @@ private:
 
        boost::scoped_ptr<ToolbarProxy> proxy_;
 
-       std::map<string, QToolBar *> toolbars_;
+       std::map<std::string, QToolBar *> toolbars_;
 
        QLComboBox * combo_;
 
index 02988d67d1cdb44494c9e1199ee3362009579280..843d3aa08de7c51730d0134ca7adfbba78c4692f 100644 (file)
@@ -26,6 +26,7 @@
 
 using std::ifstream;
 using std::ostringstream;
+using std::string;
 
 typedef QController<ControlLog, QView<QLogDialog> > base_class;
 
index 8fab811c1d857d986f4c29fb941367c2c2b96621..bef0f54c3221b6050a1473d1981022e359435d50 100644 (file)
@@ -22,7 +22,7 @@
 #include <map>
 
 using std::endl;
-
+using std::string;
 using std::map;
 
 
index d22d134418a8b824b8a31a64854159d59aa1dcc6..e27cfff3ad59faf536a326b39bc4bd618e977e30 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef QLYXKEYSYM_H
 #define QLYXKEYSYM_H
 
-
-#include "support/std_string.h"
 #include "frontends/LyXKeySym.h"
 
 #include <qstring.h>
@@ -36,7 +34,7 @@ public:
        void set(QKeyEvent * ev);
 
        /// set from a LyX symbolic name
-       virtual void init(string const & symbolname);
+       virtual void init(std::string const & symbolname);
 
        /// Is this a valid key?
        virtual bool isOK() const;
@@ -45,7 +43,7 @@ public:
        virtual bool isModifier() const;
 
        /// return the LyX symbolic name
-       virtual string getSymbolName() const;
+       virtual std::string getSymbolName() const;
 
        /// Is this normal insertable text ? (last ditch attempt only)
        virtual bool isText() const;
@@ -55,7 +53,7 @@ public:
         * This converts the LyXKeySym to a 8-bit encoded character.
         * This relies on user to use the right encoding.
         */
-       virtual char getISOEncoded(string const & encoding) const;
+       virtual char getISOEncoded(std::string const & encoding) const;
        ///
        int key() const {
                return key_;
index c28c400213075cdad0e4ef77ebb1bacdd31758ec..897eec9ae9c3f26243dfc6273863801c6903ba12 100644 (file)
@@ -26,6 +26,7 @@
 #include <qlistbox.h>
 #include <qpopupmenu.h>
 
+using std::string;
 
 
 class QScrollViewSingle : public QScrollView {
index 47e0b1c4766e3b8845e190e51cafd13b77c296fa..09585fb11121f5306ae123a141df382b4b36996e 100644 (file)
@@ -12,9 +12,8 @@
 #ifndef QMATHDIALOG_H
 #define QMATHDIALOG_H
 
-
 #include "ui/QMathDialogBase.h"
-#include "support/std_string.h"
+
 
 class QMath;
 class IconPalette;
@@ -33,7 +32,7 @@ public slots:
        virtual void subscriptClicked();
        virtual void superscriptClicked();
        virtual void equationClicked();
-       void symbol_clicked(const string &);
+       void symbol_clicked(const std::string &);
        void insertSpace(int id);
        void insertRoot(int id);
        void insertStyle(int id);
index 5f74284cac9b50a7e010d11ee3ecc22aac6f3e98..4ede05e30d7cdf9b4a867f0933ff193363f60678 100644 (file)
@@ -25,6 +25,7 @@
 #include "emptytable.h"
 
 using std::ostringstream;
+using std::string;
 
 
 static char h_align_str[80] = "c";
index 972dddfe8d3133b971a0a4aabf3071db71809a09..7a062f4c4811b2fe75b36b119089b0f967aa761b 100644 (file)
@@ -26,6 +26,8 @@
 
 using lyx::support::strToDbl;
 
+using std::string;
+
 
 typedef QController<ControlMinipage, QView<QMinipageDialog> > base_class;
 
index 959c61e685ef7879df9c4e2a526b4598570c5dce..26823d20b4641b56e471e611440acdfb98e2ab01 100644 (file)
@@ -21,6 +21,8 @@
 #include "QNote.h"
 #include "Qt2BC.h"
 
+using std::string;
+
 
 typedef QController<ControlNote, QView<QNoteDialog> > base_class;
 
index e6faf8847578460befcdf667be8a2b58c87e0946..44cb3acc7a3a0b272a4ebb5031054fb356f74cb3 100644 (file)
@@ -40,7 +40,7 @@ using lyx::support::trim;
 
 using std::bind2nd;
 using std::remove_if;
-
+using std::string;
 using std::vector;
 
 
index 4ef7424af2865e85eee391e64cfcc0f3cf213203..fb92a5b01b53542f06c65066f015405e98667f88 100644 (file)
@@ -13,9 +13,8 @@
 #ifndef QPARAGRAPH_H
 #define QPARAGRAPH_H
 
-
 #include "QDialogView.h"
-#include "support/std_string.h"
+
 #include <vector>
 
 class ControlParagraph;
@@ -37,7 +36,7 @@ private:
        /// build the dialog
        virtual void build_dialog();
 
-       std::vector<string> units_;
+       std::vector<std::string> units_;
 };
 
 #endif // QPARAGRAPH_H
index adf0cfc9c9b1a17b56ca49e08e316903cffbc41f..0c0ad9e51c08a49b0a8823260374cea284c1e26f 100644 (file)
@@ -58,7 +58,7 @@ using lyx::support::strToDbl;
 using std::endl;
 using std::setfill;
 using std::setw;
-
+using std::string;
 using std::ostringstream;
 using std::pair;
 using std::vector;
index 3559ac2e478a53accce8442bddca77f5017a1b72..faf884df1995aa9e0b2c5dd5f9ad314cd68aa4ae 100644 (file)
@@ -43,7 +43,7 @@ private:
        virtual void build_dialog();
 
        /// languages
-       std::vector<string> lang_;
+       std::vector<std::string> lang_;
 
        /// converters
        Converters converters_;
index 1d470e704ec60798afce735d2140197d8027c614..f0532564a54d9dfc7a14355864eddaa64d27baba 100644 (file)
@@ -47,6 +47,8 @@
 #include "qcoloritem.h"
 #include "qfontexample.h"
 
+using std::string;
+
 
 QPrefsDialog::QPrefsDialog(QPrefs * form)
        : QPrefsDialogBase(0, 0, false, 0), form_(form)
index 4c9bc004c9cf55aa602c5fa908df4206ebc734b9..8ae515995ac241e7798d911079ceea6929b8e54e 100644 (file)
@@ -28,6 +28,7 @@
 #include "qt_helpers.h"
 
 using std::vector;
+using std::string;
 
 
 typedef QController<ControlRef, QView<QRefDialog> > base_class;
index d837dff84d417e9d772900631b70e5fc7184b86f..ed53f9d15c12369a6447c1f0aaa840ec58ff54a2 100644 (file)
 #ifndef QREF_H
 #define QREF_H
 
-
 #include "QDialogView.h"
+
 #include <vector>
-#include "support/std_string.h"
+
 
 class ControlRef;
 class QRefDialog;
@@ -64,7 +64,7 @@ private:
        bool at_ref_;
 
        /// the references
-       std::vector<string> refs_;
+       std::vector<std::string> refs_;
 };
 
 #endif // QREF_H
index 9a1d94bdd8e60ecad214d09f37531a639ad8abc0..6a705f4c7c2826bf8da6a2787b5a5398bf849385 100644 (file)
@@ -20,6 +20,8 @@
 #include <qpushbutton.h>
 #include <qcombobox.h>
 
+using std::string;
+
 
 typedef Qt2CB<ControlSearch, Qt2DB<QSearchDialog> > base_class;
 
index 05d3851cc1d94eb37bd0f43e4806bda179631373..3da9d557ffd602f1bd2a2bd2e647b7ca41ccdd0f 100644 (file)
@@ -36,10 +36,10 @@ private:
        /// build the dialog
        virtual void build_dialog();
 
-       void find(string const & str, bool casesens,
+       void find(std::string const & str, bool casesens,
                  bool words, bool backwards);
 
-       void replace(string const & findstr, string const & replacestr,
+       void replace(std::string const & findstr, std::string const & replacestr,
                bool casesens, bool words, bool all);
 };
 
index b9e0715c3812c226915e4aee66c5438056e68ccb..7131e42bd4b72b7afd29cf1266ffd9dcc4429755 100644 (file)
@@ -21,6 +21,8 @@
 #include <qcheckbox.h>
 #include <qlineedit.h>
 
+using std::string;
+
 namespace {
 
 void uniqueInsert(QComboBox * box, QString const & text)
index e0fe998f7c37e7d50c7ee5557a4afa001aa54b09..5ae2547714b663f8047d851a1d161c4ff21393db 100644 (file)
@@ -14,7 +14,6 @@
 
 
 #include "ui/QSearchDialogBase.h"
-#include "support/std_string.h"
 
 class QSearch;
 class QCloseEvent;
@@ -36,7 +35,7 @@ protected:
 
 private:
        // add a string to the combo if needed
-       void remember(string const & find, QComboBox & combo);
+       void remember(std::string const & find, QComboBox & combo);
 
        QSearch * form_;
 };
index 6b17aca2b48a498f9ba2d51e161fffce28d21e19..8e84fc31ec20f9f4b2dc80c331082df6f0c9c649 100644 (file)
@@ -24,6 +24,7 @@
 #include "format.h"
 
 using std::vector;
+using std::string;
 
 typedef Qt2CB<ControlSendto, Qt2DB<QSendtoDialog> > base_class;
 
index 86cd1209630b88dd36f1c49907c6bcb72b6e0c8c..e96ace94f79419c0ad1f5b2996977ca2ff43084c 100644 (file)
@@ -21,6 +21,8 @@
 #include <qtextview.h>
 #include <qpushbutton.h>
 
+using std::string;
+
 typedef QController<ControlShowFile, QView<QShowFileDialog> > base_class;
 
 
index 2b20d11d9039cb73b0d083a6db35586931fff9b6..81d6a80669331a36a9fe75c4f1d58ef2faf87d2d 100644 (file)
@@ -23,6 +23,8 @@
 #include <qlistbox.h>
 #include <qcombobox.h>
 
+using std::string;
+
 typedef Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> > base_class;
 
 
index 1bf239ca5be97860870f02e363f5b2e3546e4e90..e0af1dff893c92bed9c906e2ef89895660bb12fa 100644 (file)
@@ -28,6 +28,8 @@
 #include "lengthcombo.h"
 #include "qsetborder.h"
 
+using std::string;
+
 
 typedef QController<ControlTabular, QView<QTabularDialog> > base_class;
 
index 808b2378548a66996a83e3e0b13bcbf4ef1e5899..8b87feac318a8005bbb15f9f109d3798930dfc43 100644 (file)
@@ -23,6 +23,8 @@
 #include <qpushbutton.h>
 #include <qlineedit.h>
 
+using std::string;
+
 
 QTabularDialog::QTabularDialog(QTabular * form)
        : QTabularDialogBase(0, 0, false, 0),
index daea80fc5b95dd89cdad44861db1e548bc5e01fd..43b2706a37b34eb5b977fe22ff774df9a7643f3f 100644 (file)
@@ -24,6 +24,8 @@
 
 using lyx::support::OnlyFilename;
 
+using std::string;
+
 
 typedef QController<ControlTexinfo, QView<QTexinfoDialog> > base_class;
 
index 7e574b80e705c5eab74389ae520635e74078346e..2b2aff8b7013946ea08d80f8fad99158bed827ca 100644 (file)
@@ -45,7 +45,7 @@ private:
        ///
        ControlTexinfo::texFileSuffix activeStyle;
        ///
-       typedef std::vector<string> ContentsType;
+       typedef std::vector<std::string> ContentsType;
        std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
 };
 
index 2fabfd854b4303d3b890ecbe0116f2a07e7c48fc..d2883b6e9002261311689299a09b51df1455551f 100644 (file)
@@ -20,6 +20,7 @@
 #include <qcombobox.h>
 
 using std::vector;
+using std::string;
 
 
 QTexinfoDialog::QTexinfoDialog(QTexinfo * form)
index 784b1333158a20d8089d7b04e0f049c58933573f..df64d0adcda65b6446e55c2d57768302af3e4280 100644 (file)
@@ -21,6 +21,8 @@
 #include <qlistview.h>
 #include <qlineedit.h>
 
+using std::string;
+
 
 
 QThesaurusDialog::QThesaurusDialog(QThesaurus * form)
index 71cc8c9588fe6ee5a6da90c71a659940a4af91d4..ea098ee3c5bce7c898de0f84efb14355ab3d799b 100644 (file)
@@ -29,6 +29,7 @@ using std::endl;
 using std::pair;
 using std::stack;
 using std::vector;
+using std::string;
 
 
 typedef QController<ControlToc, QView<QTocDialog> > base_class;
index 2c3ab209470138c6d70d2b2ed4f78200faa4ca18..db42391a21aedf8a2e5f9c1bb96590e3f6cb2a9b 100644 (file)
@@ -35,7 +35,7 @@ private:
        void updateType();
 
        /// select an entry
-       void select(string const & text);
+       void select(std::string const & text);
 
        /// set the depth
        void set_depth(int depth);
index 8ddc24d4afd4159a3e72fb0645aea567e29c0cba..1beb2f3a00c233a3cd6f827ce420b84e79b16c93 100644 (file)
@@ -23,6 +23,8 @@
 #include <qpushbutton.h>
 #include <qlineedit.h>
 
+using std::string;
+
 typedef QController<ControlCommand, QView<QURLDialog> > base_class;
 
 QURL::QURL(Dialog & parent)
index e8e35d20ca022443014f4bc46dd42798e823be2e..ead7f478bf6811e66af082500cc370984578bcc8 100644 (file)
@@ -29,6 +29,7 @@
 #endif
 
 using std::endl;
+using std::string;
 
 
 QWorkArea::QWorkArea(int, int, int, int)
index 6e9c8e728cfbf4e3034cd7caeafc45d8d4af4f1c..b0c2c44664d468dce160e353fba754f390211d3c 100644 (file)
@@ -49,9 +49,9 @@ public:
        /// a selection exists
        virtual void haveSelection(bool) const;
        ///
-       virtual string const getClipboard() const;
+       virtual std::string const getClipboard() const;
        ///
-       virtual void putClipboard(string const &) const;
+       virtual void putClipboard(std::string const &) const;
        ///
        virtual void dragEnterEvent(QDragEnterEvent * event);
        ///
index 1c02f0c1cda20807d963a328f622111e45381460..6a92bee0259aed8caa86bc0d0c317dd8ed3eda31 100644 (file)
@@ -28,6 +28,8 @@
 
 using lyx::support::strToDbl;
 
+using std::string;
+
 
 typedef QController<ControlWrap, QView<QWrapDialog> > base_class;
 
index 8a84a9822958c4e364f0bd986dbd47ddb3432feb..982d5857b1d67a49060c0ebd432d240e383b434f 100644 (file)
@@ -17,6 +17,8 @@
 #include <qbutton.h>
 #include <qlineedit.h>
 
+using std::string;
+
 
 Qt2BC::Qt2BC(ButtonController const & parent,
             string const & cancel, string const & close)
index faef2bb04407aade81c9b2a45345f5a6c4f5ff9d..6da14301bf3630ad8308737f9e11202591c0bd4f 100644 (file)
@@ -31,7 +31,7 @@ class Qt2BC : public GuiBC<QButton, QWidget> {
 public:
        ///
        Qt2BC(ButtonController const &,
-             string const & = _("Cancel"), string const & = _("Close"));
+             std::string const & = _("Cancel"), std::string const & = _("Close"));
 private:
        /// Updates the button sensitivity (enabled/disabled)
        void setButtonEnabled(QButton *, bool enabled) const;
@@ -40,7 +40,7 @@ private:
        void setWidgetEnabled(QWidget *, bool enabled) const;
 
        /// Set the label on the button
-       void setButtonLabel(QButton *, string const & label) const;
+       void setButtonLabel(QButton *, std::string const & label) const;
 };
 
 #endif // QT2BC_H
index 4e7f9b39ac7e09fc63a824aec0f300c277b37faa..a867f1eb7fce1e14a949a5c0fbdcb098d917895e 100644 (file)
@@ -17,6 +17,8 @@
 #include "ButtonController.h"
 #include "ControlButtons.h"
 
+using std::string;
+
 
 Qt2Base::Qt2Base(string const & t)
        : ViewBase(t), updating_(false)
index 2884f598c356c9705c81af12799ac479f9a996cc..9be551ec4a82a3476045dec25f1e000d1f1c9943 100644 (file)
@@ -28,7 +28,7 @@ class Qt2Base : public QObject, public ViewBase {
        Q_OBJECT
 public:
        ///
-       Qt2Base(string const &);
+       Qt2Base(std::string const &);
        ///
        virtual ~Qt2Base() {}
 protected:
@@ -78,7 +78,7 @@ private:
 template <class Dialog>
 class Qt2DB: public Qt2Base {
 protected:
-       Qt2DB(string const &);
+       Qt2DB(std::string const &);
 
        /// update the dialog
        virtual void update();
@@ -96,7 +96,7 @@ protected:
 
 
 template <class Dialog>
-Qt2DB<Dialog>::Qt2DB(string const & t)
+Qt2DB<Dialog>::Qt2DB(std::string const & t)
        : Qt2Base(t)
 {}
 
@@ -154,12 +154,12 @@ public:
 
 protected:
        ///
-       Qt2CB(string const &);
+       Qt2CB(std::string const &);
 };
 
 
 template <class Controller, class Base>
-Qt2CB<Controller, Base>::Qt2CB(string const & t)
+Qt2CB<Controller, Base>::Qt2CB(std::string const & t)
        : Base(t)
 {}
 
index 3d467365da47edc6a7c688002ba578a4e2781635..d4e055e561c917858d0ac7e1d19954fc8c79cfe2 100644 (file)
@@ -30,6 +30,8 @@
 
 using lyx::support::LibFileSearch;
 
+using std::string;
+
 
 namespace {
 
index 00d291def8c1aad0e71def4c7fda1b668c0eb8ff..f55a42267f18e927e059f3da28a871aa9690a558 100644 (file)
@@ -44,7 +44,7 @@ public:
        virtual void busy(bool) const;
 
        /// display a status message
-       virtual void message(string const & str);
+       virtual void message(std::string const & str);
 
        /// clear status message
        virtual void clearMessage();
@@ -73,7 +73,7 @@ private:
         * @param t main window title
         * @param it iconified (short) title
         */
-       virtual void setWindowTitle(string const & t, string const & it);
+       virtual void setWindowTitle(std::string const & t, std::string const & it);
 
        QTimer statusbar_timer_;
 
index 43eff37982b3430890a4c10d2579baa696e67ef2..5284b473f226b0190401805530c59e8f54047261 100644 (file)
@@ -23,6 +23,8 @@
 
 using lyx::support::contains;
 
+using std::string;
+
 
 // FIXME: set disabled doesn't work properly
 FloatPlacement::FloatPlacement(QWidget * parent, char * name)
index 379433bbe3df2ae14181520bb75317292326e6f6..6782db52ee831ca025ff8950f6079fa3b44cdc1c 100644 (file)
@@ -10,8 +10,6 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#include "support/std_string.h"
-
 #include <qwidget.h>
 
 class QCheckBox;
@@ -27,10 +25,10 @@ public:
        void useWide();
 
        void set(InsetFloatParams const & params);
-       void set(string const & placement);
+       void set(std::string const & placement);
 
-       string const get(bool & wide) const;
-       string const get() const;
+       std::string const get(bool & wide) const;
+       std::string const get() const;
 
 public slots:
        void tbhpClicked();
index 469fa379a28b1c29d97b0a311e17e3f8906e351d..61297d43188f6b991463e3c169afadf89b7b55b1 100644 (file)
@@ -22,7 +22,7 @@
 using std::endl;
 using std::make_pair;
 using std::max;
-
+using std::string;
 using std::vector;
 
 
index 2b8d572d4f34bb78385871423e2725ff9698805e..a313824720623d2eb80fe2c98a285778351f5345 100644 (file)
@@ -14,7 +14,7 @@
 
 
 #include <qwidget.h>
-#include "support/std_string.h"
+
 #include <utility>
 #include <vector>
 
@@ -31,9 +31,9 @@ public:
        IconPalette(QWidget * parent, char const * name = 0);
 
        /// add a button
-       void add(QPixmap const & pixmap, string name, string tooltip);
+       void add(QPixmap const & pixmap, std::string name, std::string tooltip);
 signals:
-       void button_clicked(const string &);
+       void button_clicked(const std::string &);
 protected:
        virtual void resizeEvent(QResizeEvent * e);
 protected slots:
@@ -43,7 +43,7 @@ private:
 
        QGridLayout * layout_;
 
-       typedef std::pair<QPushButton *, string> Button;
+       typedef std::pair<QPushButton *, std::string> Button;
 
        std::vector<Button> buttons_;
 };
index 8139691036e11de027b55c3052d4999e7c9ba3cb..bd252f01c33537fd425aaebc437b439f8fe86f60 100644 (file)
@@ -49,6 +49,7 @@ using std::exit;
 
 using std::map;
 using std::vector;
+using std::string;
 
 
 extern BufferList bufferlist;
index 86ff23e9e85a2b4f593466e0662f356de289ddf6..a3bc98e27b2dfe55de9cf689a683a3585a144780 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <boost/assert.hpp>
 
+using std::string;
+
 
 PanelStack::PanelStack(QWidget * parent, const char * name)
        : QWidget(parent, name)
index 8045d9a79adaa7c8c2c179674db2211204d3f09e..fd3ceee26f214928c44891e290f1e11dff515a37 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef PANELSTACK_H
 #define PANELSTACK_H
 
-#include "support/std_string.h"
-
 #include <qwidget.h>
 
 #include <map>
@@ -28,20 +26,20 @@ public:
        PanelStack(QWidget * parent = 0, const char * name = "panelstack");
 
        /// add a category with no associated panel
-       void addCategory(string const & name, string const & parent = string());
+       void addCategory(std::string const & name, std::string const & parent = std::string());
 
        /// add a widget panel with a given name, under the given parent
-       void addPanel(QWidget * panel, string const & name, string const & parent = string());
+       void addPanel(QWidget * panel, std::string const & name, std::string const & parent = std::string());
 
        /// set current panel by logical name
-       void setCurrentPanel(string const &);
+       void setCurrentPanel(std::string const &);
 
 public slots:
        /// set current panel from an item
        void switchPanel(QListViewItem * i);
 
 private:
-       typedef std::map<string, QListViewItem *> PanelMap;
+       typedef std::map<std::string, QListViewItem *> PanelMap;
 
        PanelMap panel_map_;
 
index d226706dc89593019bc29313ea731d7522298e00..54f894c43103a7181dc44bb530bacb2ffca920b2 100644 (file)
@@ -39,6 +39,7 @@ using std::make_pair;
 
 using std::pair;
 using std::vector;
+using std::string;
 
 namespace {
 
index b3798ee1fb22bc724d6b994a12829b6a4a08c707..12e5045a82e1c3ac6d5d4ec986efac4e6e7ca6d5 100644 (file)
@@ -16,6 +16,8 @@
 #include "qfont_loader.h"
 #include "language.h"
 
+using std::string;
+
 
 namespace {
 
index 77995364db1bc384903bc04e3cf2e5f3e57802e2..1017a12aa7f1bbfb83625c8975259e3e8a23be22 100644 (file)
@@ -12,9 +12,8 @@
 #ifndef QLKEY_H
 #define QLKEY_H
 
-
 #include <qnamespace.h>
-#include "support/std_string.h"
+
 
 /**
  * Return true if the key event is a modifier.
@@ -40,7 +39,7 @@ bool q_is_modifier(int qkey)
  * Return the numeric Qt Key corresponding to the
  * given symbol name.
  */
-int string_to_qkey(string const & str)
+int string_to_qkey(std::string const & str)
 {
        // FIX! (Lgb)
 
@@ -343,7 +342,7 @@ int string_to_qkey(string const & str)
  * Convert the Qt keypress into a string understandable
  * by the LyX core (same as XKeysymToString).
  */
-string const qkey_to_string(int lkey)
+std::string const qkey_to_string(int lkey)
 {
        switch (lkey) {
        case Qt::Key_Escape: return "Escape";
index 40181a2b7a32f7e7c113d4e1b5d2e2a2d12a625e..4f3acc0ea85d592f55206ff6e050c0c1c9481990 100644 (file)
@@ -22,7 +22,7 @@
 #include <algorithm>
 
 using std::make_pair;
-
+using std::string;
 using std::pair;
 
 
index c350cdbb6c5fc2b328cd7c09ed57541061fdec80..4891ee560079e197a5feba486102db4696b20129 100644 (file)
@@ -12,9 +12,6 @@
 #ifndef QTHELPERS_H
 #define QTHELPERS_H
 
-
-#include "support/std_string.h"
-
 #include <utility>
 
 #include "lyxlength.h"
@@ -23,19 +20,19 @@ class LengthCombo;
 class QLineEdit;
 class QString;
 
-string makeFontName(string const & family, string const & foundry);
+std::string makeFontName(std::string const & family, std::string const & foundry);
 
-std::pair<string,string> parseFontName(string const & name);
+std::pair<std::string,std::string> parseFontName(std::string const & name);
 
 /// method to get a LyXLength from widgets
-string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
+std::string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
 
 /// method to set widgets from a LyXLength
 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
-       string const & len, LyXLength::UNIT default_unit);
+       std::string const & len, LyXLength::UNIT default_unit);
 
 /// format a string to the given width
-string const formatted(string const & text, int w = 80);
+std::string const formatted(std::string const & text, int w = 80);
 
 /**
  * toqstr - convert char * into unicode
@@ -52,7 +49,7 @@ QString const toqstr(char const * str);
  * Use this whenever there's a user-visible string that is encoded
  * for the locale (menus, dialogs etc.)
  */
-QString const toqstr(string const & str);
+QString const toqstr(std::string const & str);
 
 
 /**
@@ -68,7 +65,7 @@ QString const qt_(char const * str);
  *
  * Use this in qt2/ instead of qt_()
  */
-QString const qt_(string const & str);
+QString const qt_(std::string const & str);
 
 
 /**
@@ -76,6 +73,6 @@ QString const qt_(string const & str);
  *
  * Return the QString encoded in the locale
  */
-string const fromqstr(QString const & str);
+std::string const fromqstr(QString const & str);
 
 #endif // QTHELPERS_H
index 86afacc6ee0f7d8af7fdef7b9b31b3b0e9a4a528..ec07bc3b72bd0e30ce962048e5f0fdd3178f2959 100644 (file)
@@ -47,6 +47,7 @@ using lyx::support::LibFileSearch;
 
 using std::min;
 using std::max;
+using std::string;
 
 
 namespace {
index e25a891d80020c6fe8bfe01d55a4309a1d9c34b2..02c62f84ecc43dd00d6343a20a3cacc9d681d6c8 100644 (file)
 
 #include "lyx_forms.h"
 
+
 using std::make_pair;
 using std::pair;
+using std::string;
 
 
 void warning_pimpl(string const &, string const & message)
index 03aed496ae4d8e1075bf3ca9259e27aa8d6d2169..fdb6ed963b7d84066bd8fc99e1970dd034695f8c 100644 (file)
@@ -32,6 +32,7 @@ using std::setw;
 
 using std::istringstream;
 using std::ostringstream;
+using std::string;
 
 
 namespace {
index 79979b7f03810643f440ba39f00978d5deb92004..79458b33bb7d1d70509e9968f2317cdd6a6d7b9a 100644 (file)
@@ -16,8 +16,7 @@
 #ifndef COLOR_H
 #define COLOR_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 
 class LColor_color;
@@ -31,7 +30,7 @@ bool getRGBColor(LColor_color col,
 
 struct RGBColor;
 /// returns a string of form #rrggbb, given an RGBColor struct
-string const X11hexname(RGBColor const & col);
+std::string const X11hexname(RGBColor const & col);
 
 struct HSVColor {
        double h;
@@ -52,16 +51,16 @@ struct RGBColor {
                : r(red), g(green), b(blue) {}
        RGBColor(HSVColor const &);
        /// \param x11hexname is of the form "#ffa071"
-       RGBColor(string const & x11hexname);
+       RGBColor(std::string const & x11hexname);
 };
 
 struct NamedColor : public RGBColor {
-       string name;
+       std::string name;
        NamedColor() : RGBColor() {}
-       NamedColor(string const & n, RGBColor const & c)
+       NamedColor(std::string const & n, RGBColor const & c)
                : RGBColor(c), name(n) {}
        RGBColor const & color() const { return *this; }
-       string const & getname() const { return name; }
+       std::string const & getname() const { return name; }
 };
 
 inline
index fcc38a859f22635c6fee9c1927ef62f1ac0376e6..02ff865b4d2b113c2821aecd666eed5f3041bbd4 100644 (file)
@@ -32,6 +32,7 @@ using std::pow;
 #endif
 
 using std::endl;
+using std::string;
 
 
 namespace {
index 625246310daeddba8bf28a3be56266d0c3760d23..594d33d47cc3227e7ce133ed8e11f25015c559a5 100644 (file)
@@ -53,7 +53,7 @@ private:
        ///
        std::vector<GC> colorGCcache;
        ///
-       GC getGCForeground(string const & s);
+       GC getGCForeground(std::string const & s);
        ///
        typedef std::map<int, GC> LineGCCache;
        ///
index b8670042e99136b6b41bdf72cabbd7b7fe220f0f..66d3c43dd40106d910366f9c270f2cb06e42218b 100644 (file)
@@ -96,6 +96,8 @@
 #include "ams_ops.xbm"
 
 
+using std::string;
+
 
 namespace {
 
index 046ba0981578b64daa675bb9a684e3538c7a339c..8582cd32026aa60729a2b379ad078b93913f6b28 100644 (file)
@@ -21,6 +21,7 @@
 using lyx::support::rsplit;
 
 using std::endl;
+using std::string;
 
 
 FileDialog::FileDialog(string const &t, kb_action s, Button b1, Button b2)
index f9b2502697e295a357fa3a66bac89eb37dd2ae0e..d21f42df7c6c352e6d48f20983ac56f4ca3a0dcc 100644 (file)
@@ -31,6 +31,7 @@ using lyx::support::token;
 
 using std::abs;
 using std::endl;
+using std::string;
 
 
 /// Load font close to this size
index 51b0a850a6c1e19db50919eb03b2b803a8750178..47bc0776eda158d590a7d5c0ddb7194be37d326a 100644 (file)
 #ifndef FONTINFO_H
 #define FONTINFO_H
 
-
-#include "support/std_string.h"
-
 #include <boost/scoped_array.hpp>
 
+#include <string>
+
 /** This class manages a font.
     The idea is to create a FontInfo object with a font name pattern with a
     wildcard at the size field. Then this object can host request for font-
@@ -32,7 +31,7 @@ public:
        FontInfo() { init(); }
 
        ///
-       explicit FontInfo(string const & pat)
+       explicit FontInfo(std::string const & pat)
                : pattern(pat) { init(); }
 
        /// Does any font match our pattern?
@@ -48,23 +47,23 @@ public:
        }
 
        /// Get existing pattern
-       string const & getPattern() const { return pattern; }
+       std::string const & getPattern() const { return pattern; }
 
        /// Set new pattern
-       void setPattern(string const & pat);
+       void setPattern(std::string const & pat);
 
        /** Return full name of font close to this size.
          If impossible, result is the empty string */
-       string const getFontname(int size);
+       std::string const getFontname(int size);
 private:
        /// Font pattern (with wildcard for size)
-       string pattern;
+       std::string pattern;
 
        /// Available size list
        boost::scoped_array<int> sizes;
 
        /// Corresponding name list
-       boost::scoped_array<string> strings;
+       boost::scoped_array<std::string> strings;
 
        /// Number of matches
        int matches;
@@ -85,7 +84,7 @@ private:
        void query();
 
        /// Build newly sized font string
-       string const resize(string const &, int size) const;
+       std::string const resize(std::string const &, int size) const;
 };
 
 #endif // FONTINFO_H
index 899f0aded7fe6a827472ead27f63c2cdad6442d8..31836c0e681c47ecc67ce6fcfe61697689b39dfb 100644 (file)
@@ -28,6 +28,8 @@
 using lyx::support::bformat;
 using lyx::support::LibFileSearch;
 
+using std::string;
+
 
 extern "C" {
 
index 37bd974a75b9caad7090afadf9db671e22d19934..3ed7cf1d2db552f1d90d469ebc119e8ee8806344 100644 (file)
@@ -33,7 +33,7 @@ class FormBase : public ViewBase
 {
 public:
        ///
-       FormBase(string const &, bool allowResize);
+       FormBase(std::string const &, bool allowResize);
        ///
        virtual ~FormBase();
 
@@ -80,7 +80,7 @@ protected:
        /** Send the warning message from the daughter class to the
            message_widget direct. The message will persist till the mouse
            movesto a new object. */
-       void postWarning(string const & warning);
+       void postWarning(std::string const & warning);
        /// Reset the message_widget_
        void clearMessage();
 
@@ -105,11 +105,11 @@ private:
 
        /** Get the feedback message for ob.
            Called if warning_posted_ == false. */
-       virtual string const getFeedback(FL_OBJECT * /* ob */)
-               { return string(); }
+       virtual std::string const getFeedback(FL_OBJECT * /* ob */)
+               { return std::string(); }
 
        /// Post the feedback message for ob to message_widget_
-       void postMessage(string const & message);
+       void postMessage(std::string const & message);
 
        /** Variable used to decide whether to remove the existing feedback
            message or not (if it is in fact a warning) */
@@ -137,7 +137,7 @@ class FormDB: public FormBase
 {
 protected:
        ///
-       FormDB(string const &, bool allowResize=true);
+       FormDB(std::string const &, bool allowResize=true);
        /// Pointer to the actual instantiation of xform's form
        virtual FL_FORM * form() const;
        /// Real GUI implementation.
@@ -146,7 +146,7 @@ protected:
 
 
 template <class Dialog>
-FormDB<Dialog>::FormDB(string const & t, bool allowResize)
+FormDB<Dialog>::FormDB(std::string const & t, bool allowResize)
        : FormBase(t, allowResize)
 {}
 
@@ -169,12 +169,12 @@ public:
 
 protected:
        ///
-       FormCB(string const &, bool allowResize = true);
+       FormCB(std::string const &, bool allowResize = true);
 };
 
 
 template <class Controller, class Base>
-FormCB<Controller, Base>::FormCB(string const & t, bool allowResize)
+FormCB<Controller, Base>::FormCB(std::string const & t, bool allowResize)
        : Base(t, allowResize)
 {}
 
index a63b1b183c7bf77196c384adb3587cb44a05c48b..2544235c7c80edf1504dc60f8a3c565076b45b98 100644 (file)
@@ -24,6 +24,8 @@
 
 using lyx::support::compare;
 
+using std::string;
+
 
 typedef FormController<ControlCommand, FormView<FD_bibitem> > base_class;
 
index ea490c0fcb295e94faa1ffb2a0870aec2681a3f6..0680b60d19771f05eb9234f63144963e4932902c 100644 (file)
@@ -37,6 +37,7 @@ using lyx::support::prefixIs;
 using lyx::support::split;
 
 using std::vector;
+using std::string;
 
 
 typedef FormController<ControlBibtex, FormView<FD_bibtex> > base_class;
index ab1f7fd2657369164d8c02ffb54ac1bbf8e42914..face8b56437846d0564d6330c5a5bbd94bfee7ba 100644 (file)
@@ -22,6 +22,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 typedef FormController<ControlBranch, FormView<FD_branch> > base_class;
 
 FormBranch::FormBranch(Dialog & parent)
@@ -62,4 +65,3 @@ void FormBranch::apply()
 
        controller().params().branch = type;
 }
-
index 095dd66096b6b10ee4abfff338c093dbb07dc597..a59746961a178c7acf05408c5ea8d5f3923e900d 100644 (file)
@@ -15,6 +15,9 @@
 #include "xformsBC.h"
 
 
+using std::string;
+
+
 FormBrowser::FormBrowser(Dialog & parent,
                         string const & title, bool allowResize)
        : FormView<FD_browser>(parent, title, allowResize)
index 897ac1fa2f128daf3b4b572cef1d09ab43a4c2a6..98e37a8871be0727ac50d63d4436c58b156e4914 100644 (file)
@@ -25,7 +25,7 @@ struct FD_browser;
 class FormBrowser : public FormView<FD_browser> {
 public:
        ///
-       FormBrowser(Dialog &, string const &, bool allowResize = true);
+       FormBrowser(Dialog &, std::string const &, bool allowResize = true);
 private:
        /// Build the dialog.
        virtual void build();
index 103a20b382deb140516af39f768af92aa6caf646..4e086062c0283b0263dcc4b4f3cad22aa92d08c2 100644 (file)
@@ -20,6 +20,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 typedef FormController<ControlChanges, FormView<FD_changes> > base_class;
 
 FormChanges::FormChanges(Dialog & parent)
index 4e74f392042f0258543fbf81dba577415134b243..68628856855984a375186b696cc00967ecf82f6d 100644 (file)
@@ -45,6 +45,7 @@ using frnt::SizePair;
 using lyx::support::getStringFromVector;
 
 using std::vector;
+using std::string;
 
 
 typedef FormController<ControlCharacter, FormView<FD_character> > base_class;
index 76cca5bb796cb5caea838369643319e1249f36a0..080b61dc3928fe1a7ebc3bb5a7c906378f03140a 100644 (file)
@@ -56,7 +56,7 @@ private:
        ///
        std::vector<LColor_color>            color_;
        ///
-       std::vector<string>                lang_;
+       std::vector<std::string>                lang_;
 };
 
 #endif
index dee34c0f7fe8a53140ee21487958c89efb058b8a..4cca278c06cd14bccadc61558a0c7896081c65cd 100644 (file)
@@ -31,6 +31,7 @@ using std::find;
 using std::max;
 
 using std::vector;
+using std::string;
 
 
 namespace {
index 29ab3701afe0926d7dcb86de3a41f6056b412bbb..12258b000ca458a6dd657d52638607abbe8900db 100644 (file)
@@ -50,16 +50,16 @@ private:
        void findBiblio(biblio::Direction const dir);
 
        ///
-       void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
+       void updateBrowser(FL_OBJECT *, std::vector<std::string> const &) const;
        ///
        void setBibButtons(State) const;
        ///
        void setCiteButtons(State) const;
 
        /// used keys (left panel)
-       std::vector<string> citekeys;
+       std::vector<std::string> citekeys;
        /// available keys (right panel)
-       std::vector<string> bibkeys;
+       std::vector<std::string> bibkeys;
 };
 
 #endif // FORMCITATION_H
index f2ba3c28d9bba7493aa4e9fa2bc9c33935a19fce..92325a2be67c7d18e877817bcb93d2c981adcc02 100644 (file)
@@ -25,6 +25,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 namespace {
 
 enum GuiColors {
index 316fa79bbcb021a83e65b33d2eeae33de7ded733..4b3d7633efd36212644a1a9ff56ed9c0912d91dd 100644 (file)
@@ -15,7 +15,6 @@
 #include "Color.h"
 #include "forms_fwd.h"
 
-#include "support/std_string.h"
 #include <boost/scoped_ptr.hpp>
 #include <X11/Xlib.h> // for Pixmap
 
@@ -70,7 +69,7 @@ private:
        int minh_;
 
        /// The title displayed by the Window Manager.
-       string title_;
+       std::string title_;
 
        RGBColor input_color_;
        RGBColor color_;
index 63a75c1dbff762e8500593816adb01e2a91190e6..51dcee93fb788711fb9d29245ba5dd9ed1d0df03 100644 (file)
@@ -29,6 +29,8 @@
 using lyx::support::bformat;
 using lyx::support::LibFileSearch;
 
+using std::string;
+
 
 extern "C" {
 
index 0b843a1521525575e26aeb69f59bf61bd3f6c4ea..945cd746a5a0d956edac8459ecc395a5661938cc 100644 (file)
@@ -31,7 +31,7 @@ class Tooltips;
 class FormDialogView : public Dialog::View {
 public:
        ///
-       FormDialogView(Dialog &, string const &, bool allowResize);
+       FormDialogView(Dialog &, std::string const &, bool allowResize);
        ///
        virtual ~FormDialogView();
 
@@ -78,7 +78,7 @@ protected:
        /** Send the warning message from the daughter class to the
            message_widget direct. The message will persist till the mouse
            movesto a new object. */
-       void postWarning(string const & warning);
+       void postWarning(std::string const & warning);
        /// Reset the message_widget_
        void clearMessage();
 
@@ -103,11 +103,11 @@ private:
 
        /** Get the feedback message for ob.
            Called if warning_posted_ == false. */
-       virtual string const getFeedback(FL_OBJECT * /* ob */)
-               { return string(); }
+       virtual std::string const getFeedback(FL_OBJECT * /* ob */)
+               { return std::string(); }
 
        /// Post the feedback message for ob to message_widget_
-       void postMessage(string const & message);
+       void postMessage(std::string const & message);
 
        /** Variable used to decide whether to remove the existing feedback
            message or not (if it is in fact a warning) */
@@ -134,7 +134,7 @@ template <class FL_dialog>
 class FormView: public FormDialogView {
 protected:
        ///
-       FormView(Dialog &, string const &, bool allowResize=true);
+       FormView(Dialog &, std::string const &, bool allowResize=true);
        /// Pointer to the actual instantiation of xform's form
        virtual FL_FORM * form() const;
        /// Real GUI implementation.
@@ -143,7 +143,7 @@ protected:
 
 
 template <class FL_dialog>
-FormView<FL_dialog>::FormView(Dialog & parent, string const & t,
+FormView<FL_dialog>::FormView(Dialog & parent, std::string const & t,
                              bool allowResize)
        : FormDialogView(parent, t, allowResize)
 {}
@@ -166,13 +166,13 @@ public:
 
 protected:
        ///
-       FormController(Dialog &, string const &, bool allowResize = true);
+       FormController(Dialog &, std::string const &, bool allowResize = true);
 };
 
 
 template <class Controller, class Base>
 FormController<Controller, Base>::FormController(Dialog & p,
-                                                string const & t, bool resize)
+                                                std::string const & t, bool resize)
        : Base(p, t, resize)
 {}
 
index a9e0506614affe15e9cb0f9dbd2199988a18fb07..0ff440500face91a644f662135aa7ed5c09bf929 100644 (file)
@@ -56,7 +56,7 @@ using lyx::support::LibFileSearch;
 
 using std::bind2nd;
 using std::endl;
-
+using std::string;
 using std::vector;
 
 
index 3da4ac07743af0585688771e969d2bc29de04484..01fef77761f62912b62e158e0039be812fbe6978 100644 (file)
@@ -135,7 +135,7 @@ private:
        ///
        FL_OBJECT * fbullet;
        ///
-       std::vector<string> lang_;
+       std::vector<std::string> lang_;
        /// Contains all legal branches for this doc
        BranchList branchlist_;
 };
index 42392e8b50ecdf74a8dce53b19b4c04e4280a744..6e47c0ad87709ea44fa28a4a3078b0b6312599ab 100644 (file)
@@ -31,6 +31,8 @@
 using lyx::support::getStringFromVector;
 using lyx::support::strToInt;
 
+using std::string;
+
 
 typedef FormController<ControlExternal, FormView<FD_external> > base_class;
 
index 70dc887768899bd33e33f169bf0a5f67ca2eaf9c..c862140df7968888053beb8992e29283fb8bf1f0 100644 (file)
@@ -70,7 +70,7 @@ using lyx::support::trim;
 
 using std::max;
 using std::sort;
-
+using std::string;
 using std::map;
 
 
index ae0b2cdaeb1f0223ee47ead1a81aa55ead14dee9..9c79303c2bc73ad9971a94cfd9a0204033f7ebb1 100644 (file)
 #ifndef FORMFILEDIALOG_H
 #define FORMFILEDIALOG_H
 
-
-
-#include "support/std_string.h"
-
 #include "forms_fwd.h"
 
 #include "frontends/FileDialog.h"
@@ -32,11 +28,11 @@ class Dialogs;
 class DirEntry {
 public:
        ///
-       string name_;
+       std::string name_;
        ///
-       string displayed_;
+       std::string displayed_;
        ///
-       string ls_entry_;
+       std::string ls_entry_;
 };
 
 
@@ -57,19 +53,19 @@ public:
        ~Private();
 
        /// sets file selector user button action
-       void SetButton(int iIndex, string const & pszName = string(),
-                      string const & pszPath = string());
+       void SetButton(int iIndex, std::string const & pszName = std::string(),
+                      std::string const & pszPath = std::string());
        /// gets last dialog directory
-       string const GetDirectory() const;
+       std::string const GetDirectory() const;
        /// launches dialog and returns selected file
-       string const Select(string const & pszTitle = string(),
-                      string const & pszPath = string(),
-                      string const & pszMask = string(),
-                      string const & pszSuggested = string());
+       std::string const Select(std::string const & pszTitle = std::string(),
+                      std::string const & pszPath = std::string(),
+                      std::string const & pszMask = std::string(),
+                      std::string const & pszSuggested = std::string());
        /// launches dialog and returns selected directory
-       string const SelectDir(string const & pszTitle = string(),
-                      string const & pszPath = string(),
-                      string const & pszSuggested = string());
+       std::string const SelectDir(std::string const & pszTitle = std::string(),
+                      std::string const & pszPath = std::string(),
+                      std::string const & pszSuggested = std::string());
        /// XForms objects callback (static)
        static void FileDlgCB(FL_OBJECT *, long);
        /// Callback for double click in list
@@ -87,15 +83,15 @@ private:
        ///
        static int minh_;
        ///
-       string user_path1_;
+       std::string user_path1_;
        ///
-       string user_path2_;
+       std::string user_path2_;
        ///
-       string directory_;
+       std::string directory_;
        ///
-       string mask_;
+       std::string mask_;
        ///
-       string file_name_;
+       std::string file_name_;
        ///
        int depth_;
        ///
@@ -103,7 +99,7 @@ private:
        ///
        long last_time_;
        ///
-       string info_line_;
+       std::string info_line_;
        ///
        typedef std::vector<DirEntry> DirEntries;
        ///
@@ -120,11 +116,11 @@ private:
        /// updates dialog list to match class directory
        void Reread();
        /// sets dialog current directory
-       void SetDirectory(string const & pszPath);
+       void SetDirectory(std::string const & pszPath);
        /// sets dialog file mask
-       void SetMask(string const & pszNewMask);
+       void SetMask(std::string const & pszNewMask);
        /// sets dialog information line
-       void SetInfoLine(string const & pszLine);
+       void SetInfoLine(std::string const & pszLine);
        /// handle dialog during file selection
        bool RunDialog();
        /// Handle callback from list
index 18977d76a692a0d59ec80e726c1965691be8233c..a102a525d8182c28c83c0cc839f2e66ab4e8cdfb 100644 (file)
@@ -28,6 +28,8 @@
 
 using lyx::support::contains;
 
+using std::string;
+
 
 namespace {
 
index 689acd9a0784c9b09bc81930a103870ab75dcebb..b0a23bf87f972e046936a0caf29870b555661c24 100644 (file)
@@ -31,7 +31,7 @@ using lyx::support::strToInt;
 
 using std::find;
 using std::find_if;
-
+using std::string;
 using std::vector;
 
 
index ac6ad8fe6cf241d75aa95ecd2cbc1a67a07a028d..e2f2db1e5fbe243370f4995d5efcdb5b9e8a420f 100644 (file)
@@ -45,6 +45,7 @@ using lyx::support::token;
 using std::endl;
 
 using std::vector;
+using std::string;
 
 
 namespace {
index 6511f87c259bc8991b500bbedd4f06ca671f9338..11ebe2646790b79620c1f43fc92e9e01a3ca1373 100644 (file)
@@ -45,7 +45,7 @@ private:
        /// Update dialog before/whilst showing it.
        virtual void update();
        /// Update the BoundingBox info.
-       void updateBB(string const & filename, string const & bb_inset);
+       void updateBB(std::string const & filename, std::string const & bb_inset);
        /// Filter the inputs on callback from xforms
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
@@ -57,7 +57,7 @@ private:
        boost::scoped_ptr<FD_graphics_extra> extra_;
 
        /// Store the LaTeX names for the rotation origins.
-       std::vector<string> origins_;
+       std::vector<std::string> origins_;
 };
 
 #endif  // FORMGRAPHICS_H
index 978e0b9626756d437d4a6720b057019bc53ade78..c2dbd1fbc8bff689e69f370da3164e3fefaca408 100644 (file)
@@ -26,6 +26,8 @@
 
 using lyx::support::rtrim;
 
+using std::string;
+
 
 typedef FormController<ControlInclude, FormView<FD_include> > base_class;
 
index 9b0c1418b5b728b7271eb8e66ed53802c8c9f468..8560d19ca9b1635456d077159456f980613e4dac 100644 (file)
@@ -19,6 +19,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 FormLog::FormLog(Dialog & parent)
        : FormController<ControlLog, FormBrowser>(parent, _("LaTeX Log"))
 {}
index 3d90c09a587486e9c89833289276691fe056ed43..7280b2f091bae7572f05804e0fb60ab63e1a3b53 100644 (file)
@@ -23,6 +23,7 @@
 
 using std::max;
 using std::vector;
+using std::string;
 
 
 extern  "C" void C_FormDialogView_CancelCB(FL_OBJECT *, long);
index 94fea9f52421d2bbb2077dbce2a765162a363426..375f4e87769ba21907998fffe4fdde7d422ed9b1 100644 (file)
@@ -53,7 +53,7 @@ class FormMathsBitmap
        : public FormController<ControlMath, FormView<FD_maths_bitmap> > {
 public:
        ///
-       FormMathsBitmap(Dialog &, string const &, std::vector<string> const &);
+       FormMathsBitmap(Dialog &, std::string const &, std::vector<std::string> const &);
        ///
        void addBitmap(BitmapStore const &);
 
@@ -74,9 +74,9 @@ private:
        FL_OBJECT * buildBitmap(BitmapStore const & bmstore);
 
        /// The latex names associated with each symbol
-       std::vector<string> latex_;
+       std::vector<std::string> latex_;
        /// The latex name chosen
-       string latex_chosen_;
+       std::string latex_chosen_;
 
        /** Temporary store for bitmap data passed to addBitmap()
         *  but before the FL_OBJECT is created in build().
index 8609dda5c03c31c24b32d964bd87e10553c018bb..05b81cd0e4ffb5ee5f1903c2fdf715beb220a952 100644 (file)
@@ -28,6 +28,8 @@ using lyx::support::getStringFromVector;
 using lyx::support::isStrDbl;
 using lyx::support::subst;
 
+using std::string;
+
 
 typedef FormController<ControlMinipage, FormView<FD_minipage> > base_class;
 
index db4bf772a91b6e27eaf709e8a02f6109fe67cb93..9d0b192b2f400ff75cd2d5884da131eff0a6a990 100644 (file)
@@ -22,6 +22,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 typedef FormController<ControlNote, FormView<FD_note> > base_class;
 
 FormNote::FormNote(Dialog & parent)
@@ -65,4 +68,3 @@ void FormNote::apply()
        int i = fl_get_choice(dialog_->choice_type);
        controller().params().type = ids_[i - 1];
 }
-
index 14d9f556f0391aeb793b116de9ab253e77424b95..fa6e07600f7d6b970088ac8d6a687703e8eea992 100644 (file)
@@ -33,9 +33,9 @@ private:
        /// Update dialog before showing it
        virtual void update();
        ///
-       std::vector<string> ids_;
+       std::vector<std::string> ids_;
        ///
-       std::vector<string> gui_names_;
+       std::vector<std::string> gui_names_;
 };
 
 #endif // FORMNOTE_H
index 102adcae3b0ba1d9915a0ce998b2c9199fa7c8fb..7dd200a2e46fd04c75877684f3241d5b7db431b4 100644 (file)
@@ -41,6 +41,7 @@ using std::bind2nd;
 using std::remove_if;
 
 using std::vector;
+using std::string;
 
 
 namespace
index f78b289b2a2c82109245a592526b0ed3cadbd4eb..42965a99a5d9c00cc911b058313d422d3710fafa 100644 (file)
@@ -52,6 +52,7 @@ using std::min;
 
 using std::pair;
 using std::vector;
+using std::string;
 
 
 namespace {
index dbd25dc604bb30961fb1524ae23dcebd66876efa..d9d76dfd4d1e9faf0cfb540d003e82e5d6ad2d05 100644 (file)
@@ -68,7 +68,7 @@ private:
        /// Build the dialog
        virtual void build();
        /// control which feedback message is output
-       string const getFeedback(FL_OBJECT *);
+       std::string const getFeedback(FL_OBJECT *);
 
        /// Converters tabfolder
        boost::scoped_ptr<FD_preferences_inner_tab> converters_tab_;
@@ -100,7 +100,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void input(FL_OBJECT const * const);
                ///
@@ -146,7 +146,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
@@ -166,9 +166,9 @@ private:
                ///
                bool Input();
                ///
-               string const GetFrom() const;
+               std::string const GetFrom() const;
                ///
-               string const GetTo() const;
+               std::string const GetTo() const;
 
                ///
                FormPreferences & parent_;
@@ -190,7 +190,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
@@ -228,7 +228,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void update(LyXRC const & rc);
 
@@ -253,7 +253,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
@@ -280,7 +280,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
@@ -292,7 +292,7 @@ private:
                ///
                boost::scoped_ptr<FD_preferences_language> dialog_;
                ///
-               std::vector<string> lang_;
+               std::vector<std::string> lang_;
        };
        ///
        friend class Language;
@@ -309,7 +309,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void update(LyXRC const & rc);
 
@@ -333,7 +333,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void update(LyXRC const & rc);
 
@@ -357,7 +357,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void update(LyXRC const & rc);
 
@@ -382,7 +382,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
@@ -409,7 +409,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                void update(LyXRC const & rc);
 
@@ -434,7 +434,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input();
                ///
@@ -461,7 +461,7 @@ private:
                ///
                void build();
                ///
-               string const feedback(FL_OBJECT const * const) const;
+               std::string const feedback(FL_OBJECT const * const) const;
                ///
                bool input(FL_OBJECT const * const);
                ///
index 72403ec779a6804309ab3ba4befa39b8eb7cc4ac..3da4346df45949b5073fc7bb2fee25b7f4fb95e2 100644 (file)
@@ -29,6 +29,8 @@
 
 using lyx::support::strToInt;
 
+using std::string;
+
 
 typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
 
index a6223a2f323ab1338a52647337b0b69d717c7a1d..0fe2db21726f9dfe1561e9710d7335090b200906 100644 (file)
@@ -29,7 +29,7 @@ using lyx::support::getStringFromVector;
 using std::find;
 using std::max;
 using std::sort;
-
+using std::string;
 using std::vector;
 
 
index 927ea982b95ba1d40fa04599544b07a88230909a..4a5b24b0acd2fab9d543df14cb2233dba7fc97fb 100644 (file)
@@ -35,7 +35,7 @@ private:
        virtual void update();
 
        ///
-       void updateBrowser(std::vector<string> const &) const;
+       void updateBrowser(std::vector<std::string> const &) const;
 
        ///
        void switch_go_button();
@@ -43,7 +43,7 @@ private:
        ///
        bool at_ref_;
        ///
-       std::vector<string> refs_;
+       std::vector<std::string> refs_;
 };
 
 #endif // FORMREF_H
index d48206335f76cb96796bc43ea4da4f45faac9a19..66037d7bc1db5ae8de9f07f39b74465ee9764258 100644 (file)
@@ -21,6 +21,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 typedef FormCB<ControlSearch, FormDB<FD_search> > base_class;
 
 FormSearch::FormSearch()
index 1e2cffe780a2e6e950bd38d4d2b9deb35938e41f..589610c8d28bd2fa58aec4bd99980e1800b3ffda 100644 (file)
@@ -27,6 +27,7 @@
 using lyx::support::trim;
 
 using std::vector;
+using std::string;
 
 
 typedef FormCB<ControlSendto, FormDB<FD_sendto> > base_class;
index c59bea2d2d0db7dbf011c44444a1d7c83b5efc62..5e94c49c79330ed99895ece17f21bb38f6a19ef0 100644 (file)
@@ -19,6 +19,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 FormShowFile::FormShowFile(Dialog & parent)
        : FormController<ControlShowFile, FormBrowser>(parent, _("Show File"))
 {}
index 04449d33cad844aa0f9b490f88e9bac93cbd510a..b47713bb15a31311aa186f9a4a2375c58f5dfce2 100644 (file)
@@ -23,6 +23,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 typedef FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > base_class;
 
 FormSpellchecker::FormSpellchecker()
index 5ac257e0ebe926e8cf129ade8cd0f6a2a677f18c..f7c6ead413687a6fce474d8d757bc00fc9fccec6 100644 (file)
@@ -29,7 +29,7 @@ using lyx::support::getStringFromVector;
 using lyx::support::isStrDbl;
 
 using std::bind2nd;
-
+using std::string;
 using std::vector;
 
 
index 9375c85dd3f616cb14694285ef4d94ca21629557..e6e8529b863086a8efc8d68c53bca2f71fcb9cf2 100644 (file)
@@ -47,7 +47,7 @@ private:
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
        ///
-       virtual int checkLongtableOptions(FL_OBJECT *, string &);
+       virtual int checkLongtableOptions(FL_OBJECT *, std::string &);
 
        ///
        boost::scoped_ptr<FD_tabular_options> tabular_options_;
index ba1eb4811b60038dfad4ad66596fa05780d4f293..4e8f33c87e172a72243627c64754cc02cf537ba5 100644 (file)
@@ -20,6 +20,7 @@
 #include "lyx_forms.h"
 
 using std::make_pair;
+using std::string;
 
 
 typedef FormController<ControlTabularCreate, FormView<FD_tabular_create> > base_class;
index fd189335370f01e8605ad53ca2e062deac0a8e60..f609af0b96e2b07871574c0fb753ad5cc2d3abae 100644 (file)
@@ -22,6 +22,8 @@
 
 using lyx::support::OnlyFilename;
 
+using std::string;
+
 
 typedef FormController<ControlTexinfo, FormView<FD_texinfo> > base_class;
 
index 6f67ca1ddb750171716ca72d76c2a36628129e00..a28742a6feaf3f2ec658da0617dbfda83fd10815 100644 (file)
@@ -39,7 +39,7 @@ private:
        ControlTexinfo::texFileSuffix activeStyle;
 
        ///
-       typedef std::vector<string> ContentsType;
+       typedef std::vector<std::string> ContentsType;
        std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
 };
 
index f886890f4aeee28e7f0e7386c5a668cd9739af14..0fd0cd15097b14df836a03932e1cb7cf615b97f7 100644 (file)
@@ -25,6 +25,8 @@
 
 using lyx::support::trim;
 
+using std::string;
+
 
 typedef FormController<ControlCommand, FormView<FD_text> > base_class;
 
index 9f1408b12f03048fe15d63fee79a2e1a1b47eca6..2c09effac2c495f5a6d38aacceb693e34d893094 100644 (file)
@@ -22,7 +22,7 @@ struct FD_text;
 class FormText : public FormController<ControlCommand, FormView<FD_text> > {
 public:
        ///
-       FormText(Dialog &, string const & title, string const & label);
+       FormText(Dialog &, std::string const & title, std::string const & label);
 private:
        /// Set the Params variable for the Controller.
        virtual void apply();
@@ -32,7 +32,7 @@ private:
        virtual void update();
 
        ///
-       string const label_;
+       std::string const label_;
 };
 
 #endif // FORMTEXT_H
index e1e8895b13173e5c166b216c2c92aceec9671d1c..9e1dc93b4fb46c8b4e67b7ff81349f3a9d6ad522 100644 (file)
@@ -31,6 +31,7 @@ using std::isupper;
 #endif
 
 using std::vector;
+using std::string;
 
 
 typedef FormController<ControlThesaurus, FormView<FD_thesaurus> > base_class;
index d4e0ecfdc20e66d27cd6b3876dd4f00b30980240..7b0ab9c6240dd7c7890b311353c0f09db36b96e4 100644 (file)
 #ifndef FORMTHESAURUS_H
 #define FORMTHESAURUS_H
 
-
 #include "FormDialogView.h"
 
-
 class ControlThesaurus;
 struct FD_thesaurus;
 
@@ -35,10 +33,10 @@ private:
        virtual void update();
 
        /// set the replace word properly
-       void setReplace(string const & templ, string const & nstr);
+       void setReplace(std::string const & templ, std::string const & nstr);
 
        /// update browser entries
-       void updateMeanings(string const & str);
+       void updateMeanings(std::string const & str);
 
        /// Filter the inputs
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
@@ -47,7 +45,7 @@ private:
        int clickline_;
 
        /// current string
-       string str_;
+       std::string str_;
 };
 
 #endif // FORMTHESAURUS_H
index aab69b800a1448f0ad55ce0d6b19e31127b10dc3..a14c5f5ea06cb5dd6ae862c4571678dbf651e71d 100644 (file)
@@ -24,6 +24,7 @@
 using lyx::support::getStringFromVector;
 
 using std::vector;
+using std::string;
 
 
 typedef FormController<ControlToc, FormView<FD_toc> > base_class;
index 2e8ab02582ac1b9ddb9ff38b3816ca546ae806cf..2a30826980edbef3dd9435ba16a272ab094b96d4 100644 (file)
@@ -28,6 +28,8 @@
 using lyx::support::getStringFromVector;
 using lyx::support::subst;
 
+using std::string;
+
 
 typedef FormController<ControlWrap, FormView<FD_wrap> > base_class;
 
index 2367a2114783660c188ef8c7e42dda92d053eaad..dc741ca98e0181db71c59a85be374814d2a595df 100644 (file)
@@ -28,6 +28,8 @@
 
 using lyx::support::trim;
 
+using std::string;
+
 
 bool Tooltips::enabled_ = true;
 
index 01e0e890a2a6dd4e8ebbb9ddbbd613189c21248b..5b7624a098e3486b72a5bce71bb0becaa1f9140e 100644 (file)
@@ -18,8 +18,6 @@
 #ifndef TOOLTIPS_H
 #define TOOLTIPS_H
 
-#include "support/std_string.h"
-
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/trackable.hpp>
 
@@ -34,7 +32,7 @@ public:
        Tooltips();
 
        /// Initialise a tooltip for this ob.
-       void init(FL_OBJECT * ob, string const & tip);
+       void init(FL_OBJECT * ob, std::string const & tip);
 
        /// Are the tooltips on or off?
        static bool enabled() { return enabled_; }
@@ -58,7 +56,7 @@ private:
        static boost::signal0<void> toggled;
 
        /// The tooltips are stored so that they can be turned on and off.
-       typedef std::map<FL_OBJECT *, string> TooltipsMap;
+       typedef std::map<FL_OBJECT *, std::string> TooltipsMap;
 
        TooltipsMap tooltipsMap;
 };
index 0bd5360782703c0fc158b79189579e46c588b74b..d737f499fb0d4ef02c0d8c72c1d1211369b8fbb0 100644 (file)
@@ -30,7 +30,7 @@ using lyx::support::subst;
 
 using std::endl;
 using std::for_each;
-
+using std::string;
 using std::vector;
 
 
index 04775b3ea0fb63ec045328ca8303e32391a46edd..d43061d71bfced7b0b686b9d5c051cf0773b043c 100644 (file)
@@ -20,7 +20,6 @@
 #include "forms_fwd.h"
 #include <X11/X.h> // Window
 
-#include "support/std_string.h"
 #include <vector>
 
 
@@ -43,17 +42,17 @@ public:
        void update();
 
        /// Opens a top-level submenu given its name
-       void openByName(string const &);
+       void openByName(std::string const &);
 
        ///
        static void MenuCallback(FL_OBJECT *, long);
 
 private:
        ///
-       void add_toc(int menu, string const & extra_label,
+       void add_toc(int menu, std::string const & extra_label,
                     std::vector<int> & smn, Window win);
        ///
-       void add_references(int menu, string const & extra_label,
+       void add_references(int menu, std::string const & extra_label,
                            std::vector<int> & smn, Window win);
        ///
        int create_submenu(Window win, XFormsView * view,
index 34ab67c8457168d3daf0c4f40c1e854c7be88aec..7b6bda4e57bb959d448bbc9ff981c759ef2fbc07 100644 (file)
@@ -31,6 +31,7 @@
 #include "combox.h"
 
 using std::endl;
+using std::string;
 
 
 // some constants
index f0a50847302e6f818497e1bbff48f78707e966ef..f74fde1b15478eac9801d6110f4bef852e6d45b4 100644 (file)
@@ -36,7 +36,7 @@ public:
        void add(ToolbarBackend::Toolbar const & tb);
 
        /// add an item to a toolbar
-       void add(FuncRequest const &, string const & tooltip);
+       void add(FuncRequest const &, std::string const & tooltip);
 
        /// display toolbar, not implemented
        void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
@@ -45,7 +45,7 @@ public:
        void update();
 
        /// select the right layout in the combox
-       void setLayout(string const & layout);
+       void setLayout(std::string const & layout);
        /// Populate the layout combox.
        void updateLayoutList();
        /// Drop down the layout list
index 50e954ed5a0dcfaf9236b6ff6316d60d2c249fa9..8a3409c5a42031f636d4ed684727d78eb4f878cc 100644 (file)
@@ -31,6 +31,7 @@ using lyx::support::LibFileSearch;
 
 using std::abs;
 using std::endl;
+using std::string;
 
 
 //extern void AutoSave(BufferView *);
index 19aa954542a7312f63236c33a6a5b6f191e2aecd..d0647277f8e2a39e5bcaa34ae8a4d9104a659e75 100644 (file)
@@ -38,7 +38,7 @@ public:
         * @param xpos requested y position (or 0)
         * @param title window title
         */
-       void show(int xpos, int ypos, string const & t = string("LyX"));
+       void show(int xpos, int ypos, std::string const & t = std::string("LyX"));
 
        /// get the xforms main form
        FL_FORM * getForm() const;
@@ -51,7 +51,7 @@ public:
        static int atCloseMainFormCB(FL_FORM *, void *);
 
        /// display a status message
-       virtual void message(string const & str);
+       virtual void message(std::string const & str);
 
        /// clear back to normal status message
        virtual void clearMessage();
@@ -62,7 +62,7 @@ private:
         * @param t main window title
         * @param it iconified (short) title
         */
-       virtual void setWindowTitle(string const & t, string const & it);
+       virtual void setWindowTitle(std::string const & t, std::string const & it);
 
        /// update the minibuffer state message
        void show_view_state();
index 51e3c0ce19aa5140686f36ea71b6fab1cfbaa0eb..c883aec10202553d145066a35b250f32f4980871 100644 (file)
@@ -17,6 +17,7 @@
 #include <X11/keysym.h>
 
 using std::endl;
+using std::string;
 
 
 XLyXKeySym::XLyXKeySym()
index 9014c5096c24454ad3d6a6ef87f0c7eb0fb311e0..d1dd7c63c514ee8b4acbba020d6121a2bf6243de 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef XLYXKEYSYM_H
 #define XLYXKEYSYM_H
 
-
-#include "support/std_string.h"
 #include <X11/Xlib.h>
 #include "frontends/LyXKeySym.h"
 
@@ -27,7 +25,7 @@ public:
        /// X11 specific initialization with an X11 KeySym
        void initFromKeySym(KeySym);
 
-       virtual void init(string const & symbolname);
+       virtual void init(std::string const & symbolname);
 
        virtual ~XLyXKeySym() {}
 
@@ -37,14 +35,14 @@ public:
        /// Is this a modifier key only?
        virtual bool isModifier() const;
 
-       virtual string getSymbolName() const;
+       virtual std::string getSymbolName() const;
 
        /**
         * Return the value of the keysym into the local ISO encoding.
         * This converts the LyXKeySym to a 8-bit encoded character.
         * This relies on user to use the right encoding.
         */
-       virtual char getISOEncoded(string const & encoding) const;
+       virtual char getISOEncoded(std::string const & encoding) const;
 
        ///
        unsigned int keysym() const {
index c29c15f539a76cf217f856c3d696bc7670e6dc80..aa0216888b6320c113be41e26245ed3fc2dfba41 100644 (file)
@@ -24,7 +24,9 @@
 
 #include <boost/bind.hpp>
 
+
 using std::vector;
+using std::string;
 
 
 namespace {
index eb2edfa0e44d1988061db9c3dab176155716fcd8..9ed98d50d27654e385bb212e653cf4f0a893a58b 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "lyx_forms.h"
 
-#include "support/std_string.h"
 #include <boost/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/signals/connection.hpp>
@@ -44,7 +43,7 @@ public:
        int peek_event(FL_OBJECT *, int, int, XEvent * xev);
 
        /// show a message
-       void message(string const & str);
+       void message(std::string const & str);
 
        /// focus the buffer for editing mode
        void focus() { messageMode(false); }
@@ -66,13 +65,13 @@ private:
        void idle_timeout();
 
        /// set the minibuffer content in editing mode
-       void set_input(string const &);
+       void set_input(std::string const &);
 
        /// go into message mode
        void messageMode(bool on = true);
 
        /// show a temporary message whilst in edit mode
-       void show_info(string const & info, string const & input, bool append = true);
+       void show_info(std::string const & info, std::string const & input, bool append = true);
 
        /// the dropdown menu
        boost::shared_ptr<FL_FREEBROWSER> freebrowser_;
@@ -99,7 +98,7 @@ private:
        ControlCommandBuffer & controller_;
 
        /// stored input when showing info
-       string stored_input_;
+       std::string stored_input_;
 
        /// are we showing an informational temporary message ?
        bool info_shown_;
index 1c48f846ad8bf7380e39832c0447e13c0f01c583..265ee41d099bb1ae15ee35b1f3d94aa245886b80 100644 (file)
@@ -30,6 +30,8 @@
 
 using lyx::support::uppercase;
 
+using std::string;
+
 
 XPainter::XPainter(XWorkArea & xwa)
        : Painter(), owner_(xwa)
index d5473486d51a8f9099bdde5f3a64205f9e697fd3..3bf855b6c184578b52f7b44f0bcbad720757d66a 100644 (file)
@@ -14,7 +14,6 @@
 #define XPAINTER_H
 
 #include "frontends/Painter.h"
-#include "support/std_string.h"
 
 #include <X11/Xlib.h>
 
@@ -96,7 +95,7 @@ public:
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
-               string const & str, LyXFont const & f);
+               std::string const & str, LyXFont const & f);
 
        /** Draw a string at position x, y (y is the baseline)
         *  This is just for fast drawing
index 501f05e7ab960098620a9b2b446c2b7e09b2f88e..e37ee7167f07c4cbee571347ccb3d2478e9244a9 100644 (file)
@@ -22,6 +22,7 @@ using std::abs;
 using std::dec;
 using std::endl;
 using std::hex;
+using std::string;
 
 
 namespace {
index 7f60e4315292ed407d40d9105fca776c6219bdd9..b1337d8a09f30ca0291c18d8e35d4de76b371fc4 100644 (file)
 #ifndef XWORKAREA_H
 #define XWORKAREA_H
 
-
 #include "frontends/WorkArea.h"
 #include "XPainter.h"
 
 #include "lyx_forms.h"
 
+
 ///
 class XWorkArea : public WorkArea {
 public:
@@ -53,9 +53,9 @@ public:
        /// a selection exists
        virtual void haveSelection(bool) const;
        ///
-       virtual string const getClipboard() const;
+       virtual std::string const getClipboard() const;
        ///
-       virtual void putClipboard(string const &) const;
+       virtual void putClipboard(std::string const &) const;
 
        /// handles SelectionRequest X Event, to fill the clipboard
        int event_cb(XEvent * xev);
index c1b984b657cd38dd4e44c31e8510380c2414d467..0a15f6f8ed430bd8f3cca24169e20abc28008f49 100644 (file)
@@ -21,6 +21,8 @@
 
 using lyx::support::isStrDbl;
 
+using std::string;
+
 
 void addCheckedLyXLength(BCView & bcview,
                         FL_OBJECT * input, FL_OBJECT * label)
index 9450d0245f7cc43497301a3cc7bfaa729de96f72..063f8069c2e6f5966b9475fbda6f68cc92098d8d 100644 (file)
@@ -141,11 +141,11 @@ echo "#include <config.h>" >> ${TMP}
 echo "#include \"forms_gettext.h\"" >> ${TMP}
 echo "#include \"gettext.h\"" >> ${TMP}
 echo "#include \"../lyx_forms.h\"" >> ${TMP}
-
 grep bmtable ${CIN} > /dev/null &&
        echo "#include \"bmtable.h\"" >> ${TMP}
 grep combox ${CIN} > /dev/null &&
        echo "#include \"combox.h\"" >> ${TMP}
+echo "using std::string;" >> ${TMP}
 
 sed -f ${FDFIXC} < ${CIN} >> ${TMP}
 
index c2126a38867e8c2ae706d6355ef5f6e0ea4cb022..75cf0b6dfde7818349a24b4ef5c228c33d6bec94 100644 (file)
@@ -15,6 +15,8 @@
 
 namespace support = lyx::support;
 
+using std::string;
+
 
 // Extract shortcut from "<identifier>|<shortcut>" string
 string const scex(string const & str)
index d925e07f3f5b06df0dfcfb7eb5d9b3f20fd93a75..b5895e429be93bcf1526b7e8be3e22bbcf9d4a4f 100644 (file)
 #ifndef FORMS_GETTEXT_H
 #define FORMS_GETTEXT_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 /// Extract shortcut from "<identifer>|<shortcut>" string
-string const scex(string const &);
+std::string const scex(std::string const &);
 
 /// Extract identifier from "<identifer>|<shortcut>" string
-string const idex(string const &);
+std::string const idex(std::string const &);
 
 #endif // FORMS_GETTEXT_H
index 67fc065cea8e3cf0527b0b0b94e31b163f8b289f..0a2b331057d128b62c3207aec2784d1c84c02db6 100644 (file)
@@ -60,6 +60,7 @@ using std::setfill;
 using std::setw;
 using std::ostringstream;
 using std::vector;
+using std::string;
 
 
 extern BufferList bufferlist;
index 9dce83c0c81ef8999e81b2b2fcafa2c0e5d14c70..73703b343b0519b942d8a25be3164feb1630f44c 100644 (file)
@@ -31,6 +31,7 @@ using lyx::support::OnlyPath;
 using lyx::support::Systemcall;
 
 using std::endl;
+using std::string;
 
 
 // The global fontloader
index 3e7c879ca415e03144a173e0b0818b852d7b9a2e..eba8c5f4dac5533577cd26cd69263a21ed038c52 100644 (file)
@@ -27,6 +27,8 @@
 
 using lyx::support::uppercase;
 
+using std::string;
+
 
 namespace {
 
index 376e341a57aa67524f619f6dc463f6baf21ca71d..99f20eaab5c8f35b5958ea4d75e865f21e30e776 100644 (file)
@@ -18,6 +18,9 @@
 #include "lyx_forms.h"
 
 
+using std::string;
+
+
 xformsBC::xformsBC(ButtonController const & parent,
                   string const & cancel, string const & close)
        : GuiBC<FL_OBJECT, FL_OBJECT>(parent, cancel, close)
index 5ef50c9d368cc85224c14ba1301110e396d61958..e7725c3baac9e6a6c88b444aff157680f53363fb 100644 (file)
@@ -23,7 +23,7 @@ class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
 public:
        ///
        xformsBC(ButtonController const &,
-                string const & = _("Cancel"), string const & = _("Close"));
+                std::string const & = _("Cancel"), std::string const & = _("Close"));
 
 private:
        /// Updates the button sensitivity (enabled/disabled)
@@ -33,7 +33,7 @@ private:
        void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
 
        /// Set the label on the button
-       void setButtonLabel(FL_OBJECT *, string const & label) const;
+       void setButtonLabel(FL_OBJECT *, std::string const & label) const;
 };
 
 #endif // XFORMSBC_H
index 1646ea034a2758d7674d6f8bc6f1b738a8d922af..dcb4de0599659045fe3ce93674313607b3a4faa5 100644 (file)
 
 #include <boost/tuple/tuple.hpp>
 
+
 using lyx::support::float_equal;
 using lyx::support::prefixIs;
 using lyx::support::rtrim;
 
 using std::find_if;
+using std::string;
 
 
 namespace {
index 4ee651894fbf988e58c30fd491fcee83716bc7f5..6d4d3ccce1505d523ecd7f2b6ddea24b63944cb3 100644 (file)
@@ -42,8 +42,8 @@ public:
        Pixmap getPixmap() const;
 
        /// Internal callbacks.
-       void statusCB(string const &);
-       void errorCB(string const &);
+       void statusCB(std::string const &);
+       void errorCB(std::string const &);
 
 private:
        /// Create a copy
@@ -58,7 +58,7 @@ private:
         *  The process is asynchronous, so this method starts the loading.
         *  When finished, the Image::finishedLoading signal is emitted.
         */
-       virtual void load_impl(string const & filename);
+       virtual void load_impl(std::string const & filename);
        /** Generate the pixmap, based on the current state of
         *  image_ (clipped, rotated, scaled etc).
         *  Uses the params to decide on color, grayscale etc.
index 2bc499d256f8ead1dd6afdbebbdbb9ef9b16381d..5483ea810ede73aed5b1f0fdf5c11cab2792a108 100644 (file)
@@ -39,6 +39,7 @@ using std::make_pair;
 
 using std::ofstream;
 using std::vector;
+using std::string;
 
 
 bool isActive(FL_OBJECT * ob)
index dc59d7bdd70cfa1bc4099d1e29ac77db4db4e367..119233df6d63b0c5b4bb4f1e1e31ab1b61dadcd2 100644 (file)
@@ -16,7 +16,6 @@
 #include "forms_fwd.h"
 
 #include "Color.h"
-#include "support/std_string.h"
 
 #include <algorithm>
 #include <vector>
 class LyXLength;
 
 /// parse "&Save" etc. to <"Save", "#S">. Does not handle &&
-std::pair<string, string> parse_shortcut(string const & str);
+std::pair<std::string, std::string> parse_shortcut(std::string const & str);
 
 // A wrapper for the xforms routine, but this one accepts uint args
 unsigned long fl_getmcolor(int i, unsigned int * r, unsigned int * g,
                           unsigned int * b);
 
 // what we always need for lengths
-string const choice_Length_All =
+std::string const choice_Length_All =
     "cm|mm|in|text%%|col%%|page%%|line%%|ex|em|pt|sp|bp|dd|pc|cc|mu";
-string const choice_Length_WithUnit =
+std::string const choice_Length_WithUnit =
     "cm|mm|in|ex|em|pt|sp|bp|dd|pc|cc|mu";     // all with a Unit
 
 /// return the (in)active state of the object
@@ -42,34 +41,34 @@ bool isActive(FL_OBJECT * ob);
 /// Set an FL_OBJECT to activated or deactivated
 void setEnabled(FL_OBJECT *, bool enable);
 
-/// Take a string and add breaks so that it fits into a desired label width, w
-string formatted(string const &label, int w,
+/// Take a std::string and add breaks so that it fits into a desired label width, w
+std::string formatted(std::string const &label, int w,
                 int = 12 /*FL_NORMAL_SIZE*/, int = 0 /*FL_NORMAL_STYLE*/);
 
 /// Given an fl_choice or an fl_browser, create a vector of its entries
-std::vector<string> const getVector(FL_OBJECT *);
+std::vector<std::string> const getVector(FL_OBJECT *);
 
 /** Given an fl_input, an fl_choice or an fl_browser, return an entry
     \c num is the position for the string, where 0 means "current item"
  */
-string const getString(FL_OBJECT * ob, int num = 0);
+std::string const getString(FL_OBJECT * ob, int num = 0);
 
-/// Given input and choice widgets, create a string such as "1cm"
-string getLengthFromWidgets(FL_OBJECT * input, FL_OBJECT * choice);
+/// Given input and choice widgets, create a std::string such as "1cm"
+std::string getLengthFromWidgets(FL_OBJECT * input, FL_OBJECT * choice);
 
 /** Given a string such as "1cm", set the input and choice widgets.
     If the string is empty, the choice will be set to default_unit.
  */
 void updateWidgetsFromLengthString(FL_OBJECT * input, FL_OBJECT * choice,
-                                  string const & str,
-                                  string const & default_unit);
+                                  std::string const & str,
+                                  std::string const & default_unit);
 
 /** Given a LyXLength, set the input and choice widgets.
     If the length is null, the choice will be set to default_unit.
  */
 void updateWidgetsFromLength(FL_OBJECT * input, FL_OBJECT * choice,
                             LyXLength const & len,
-                            string const & default_unit);
+                            std::string const & default_unit);
 
 
 /** Return the position of val in the vector if found.
@@ -94,8 +93,8 @@ void setCursorColor(int color);
 struct XformsColor : public NamedColor {
        int colorID;
        XformsColor() : NamedColor(), colorID(0) {}
-       static bool read(string const &);
-       static bool write(string const &);
+       static bool read(std::string const &);
+       static bool write(std::string const &);
 };
 
 
@@ -105,17 +104,17 @@ struct XformsColor : public NamedColor {
 class RWInfo {
 public:
        ///
-       static bool WriteableDir(string const & dir);
+       static bool WriteableDir(std::string const & dir);
        ///
-       static bool ReadableDir(string const & dir);
+       static bool ReadableDir(std::string const & dir);
        ///
-       static bool WriteableFile(string const & file);
+       static bool WriteableFile(std::string const & file);
        ///
-       static bool ReadableFile(string const & file);
+       static bool ReadableFile(std::string const & file);
        ///
-       static string const & ErrorMessage() { return error_message; }
+       static std::string const & ErrorMessage() { return error_message; }
 private:
        ///
-       static string error_message;
+       static std::string error_message;
 };
 #endif // XFORMSHELPERS_H
index 18e8ed01bc2ff17232ab3e135ab3d4508dbdb8c2..fd18c01bcbbcdf6343761204f16b1e2ba6567d4e 100644 (file)
@@ -22,6 +22,7 @@ using std::getline;
 
 using std::istringstream;
 using std::vector;
+using std::string;
 
 
 FuncRequest::FuncRequest()
index 8a1d5acc01259e69702cb186d5074735c9fc7ee0..2091ab0b466551c68dda4d07d74c9a9a8c8e93a6 100644 (file)
@@ -14,7 +14,8 @@
 
 #include "lfuns.h"
 #include "frontends/mouse_state.h"
-#include "support/std_string.h"
+
+#include <string>
 
 class BufferView;
 
@@ -31,16 +32,16 @@ public:
        /// actions without extra argument
        FuncRequest(kb_action act, int x, int y, mouse_button::state button);
        /// actions with extra argument
-       FuncRequest(kb_action act, string const & arg);
+       FuncRequest(kb_action act, std::string const & arg);
        /// actions without extra argument
        FuncRequest(BufferView * bv, kb_action act);
        /// actions with extra argument
-       FuncRequest(BufferView * bv, kb_action act, string const & arg);
+       FuncRequest(BufferView * bv, kb_action act, std::string const & arg);
        /// for mouse events
        FuncRequest(BufferView * bv, kb_action act,
                int x, int y, mouse_button::state button);
        /// for changing requests a bit
-       FuncRequest(FuncRequest const & cmd, string const & arg);
+       FuncRequest(FuncRequest const & cmd, std::string const & arg);
        /// for changing requests a bit
        FuncRequest(FuncRequest const & cmd, BufferView * bv);
 
@@ -52,12 +53,12 @@ public:
        mouse_button::state button() const;
 
        /// output a message
-       void message(string const & msg) const;
+       void message(std::string const & msg) const;
        /// output an error message
-       void errorMessage(string const & msg) const;
+       void errorMessage(std::string const & msg) const;
 
-       /// argument parsing, extract argument i as string
-       string getArg(unsigned int i) const;
+       /// argument parsing, extract argument i as std::string
+       std::string getArg(unsigned int i) const;
 
 private:
        /// the BufferView we are talking to
@@ -65,8 +66,8 @@ private:
 public:  // should be private, too...
        /// the action
        kb_action action;
-       /// the action's string argument
-       string argument;
+       /// the action's std::string argument
+       std::string argument;
        /// the x coordinate of a mouse press
        int x;
        /// the y coordinate of a mouse press
index 47d4303fe9263958413e2b9cfd9eb4dfe8d7368f..9e48e11d0a77d46f8b181dae463dd7f82ae92ca0 100644 (file)
@@ -19,6 +19,9 @@
 #  include <locale.h>
 #endif
 
+using std::string;
+
+
 namespace {
 
 Messages & getLyXMessages()
index be41aef8dcc7a67400e9b4b55e21c8a68068d3cf..a53042c1006e2d21765b4c34bd93ef758ab170a1 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef GETTEXT_H
 #define GETTEXT_H
 
+#include <string>
+
 /*
  * Native Language Support
  *
  *   Panic/fatal (that should not happen) messages need not be translated
  */
 
-#include "support/std_string.h"
 
 //#ifdef ENABLE_NLS
 
 ///
-string const _(string const &);
+std::string const _(std::string const &);
 
 //#else // ENABLE_NLS
 
index 0d6a71a4efcb287492fa066328c8d21146add824..124141604e3fa115fb0f642d0e9b0ef48d892735 100644 (file)
@@ -21,6 +21,8 @@
 
 namespace support = lyx::support;
 
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
index 41427e07b33ce3e72609f662df7672a8765e5642..dbd3d6286d2a909545881ae7cdc2b5e830670136 100644 (file)
 #ifndef GRAPHICSCACHE_H
 #define GRAPHICSCACHE_H
 
-#include "support/std_string.h"
-#include <vector>
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 
+#include <vector>
+
 
 namespace lyx {
 namespace graphics {
@@ -42,16 +42,16 @@ public:
         *  Other formats can be loaded if a converter to a loadable format
         *  can be defined.
         */
-       std::vector<string> loadableFormats() const;
+       std::vector<std::string> loadableFormats() const;
 
        /// Add a graphics file to the cache.
-       void add(string const & file) const;
+       void add(std::string const & file) const;
 
        /// Remove a file from the cache.
-       void remove(string const & file) const;
+       void remove(std::string const & file) const;
 
        /// Returns \c true if the file is in the cache.
-       bool inCache(string const & file) const;
+       bool inCache(std::string const & file) const;
 
        /** Get the cache item associated with file.
         *  Returns an empty container if there is no such item.
@@ -65,7 +65,7 @@ public:
         */
        typedef boost::shared_ptr<CacheItem> ItemPtr;
        ///
-       ItemPtr const item(string const & file) const;
+       ItemPtr const item(std::string const & file) const;
 
 private:
        /** Make the c-tor, d-tor private so we can control how many objects
index 68eb0a4c1dc746a4275556c0a0ccdb5dde689dd6..c2e9350947bb210767ada2c9693013fb5e1bca6e 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <boost/bind.hpp>
 
+
 namespace support = lyx::support;
 
 using support::ChangeExtension;
@@ -38,6 +39,8 @@ using support::unzipFile;
 using support::zippedFile;
 
 using std::endl;
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
index 7de2af16f01dcb1f54bc34597b7cb51e72b91f34..69ca82ef2191252aadb4d644e5b815ed9b68745a 100644 (file)
@@ -34,7 +34,6 @@
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/signal0.hpp>
 
-#include "support/std_string.h"
 
 class InsetGraphics;
 
@@ -48,13 +47,13 @@ class Converter;
 class CacheItem : boost::noncopyable {
 public:
        ///
-       CacheItem(string const & file);
+       CacheItem(std::string const & file);
 
        /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
        ~CacheItem();
 
        ///
-       string const & filename() const;
+       std::string const & filename() const;
 
        /// It's in the cache. Now start the loading process.
        void startLoading() const;
index b75095ecd0fca4d1514d0be53f2f3638d6183334..0f54fb57de45690e770326fe6517e19dd7d24f75 100644 (file)
@@ -44,6 +44,7 @@ using support::unlink;
 using std::endl;
 using std::ostream;
 using std::ostringstream;
+using std::string;
 
 
 namespace lyx {
index 282730bfb3ccbfddeabc37957a2a5d6e7e22d05a..f1b69c90a0fa331dd05adb36cc95a59fa1715da0 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef GRAPHICSCONVERTER_H
 #define GRAPHICSCONVERTER_H
 
-#include "support/std_string.h"
 #include <boost/signals/signal1.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <boost/utility.hpp>
@@ -28,14 +27,14 @@ namespace graphics {
 class Converter : boost::noncopyable {
 public:
        /// Can the conversion be performed?
-       static bool isReachable(string const & from_format_name,
-                               string const & to_format_name);
+       static bool isReachable(std::string const & from_format_name,
+                               std::string const & to_format_name);
 
        /** One Converter per conversion ensures that the (hidden) signal
         *  is always connected to the expected slot.
         */
-       Converter(string const & from_file,   string const & to_file_base,
-                 string const & from_format, string const & to_format);
+       Converter(std::string const & from_file,   std::string const & to_file_base,
+                 std::string const & from_format, std::string const & to_format);
 
        /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
        ~Converter();
@@ -56,7 +55,7 @@ public:
         *  If conversion fails or has not been completed, however, it
         *  returns an empty string.
         */
-       string const & convertedFile() const;
+       std::string const & convertedFile() const;
 
 private:
        /// Use the Pimpl idiom to hide the internals.
index 7200a8ce341f0de70ffe7a67a36c3ecfcd414c08..9723d4388bf3a5b1afb63dfb87c371d5914101fe 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef GRAPHICSIMAGE_H
 #define GRAPHICSIMAGE_H
 
-#include "support/std_string.h"
-
 #include <boost/shared_ptr.hpp>
 #include <boost/function/function0.hpp>
 #include <boost/signals/signal1.hpp>
@@ -48,7 +46,7 @@ public:
        static boost::function0<ImagePtr> newImage;
 
        /// Return the list of loadable formats.
-       typedef std::vector<string> FormatList;
+       typedef std::vector<std::string> FormatList;
        ///
        static boost::function0<FormatList> loadableFormats;
 
@@ -78,7 +76,7 @@ public:
         *  The caller should expect this process to be asynchronous and
         *  so should connect to the "finished" signal above.
         */
-       void load(string const & filename);
+       void load(std::string const & filename);
 
        /** Generate the pixmap.
         *  Uses the params to decide on color, grayscale etc.
@@ -124,7 +122,7 @@ private:
         *  The caller should expect this process to be asynchronous and
         *  so should connect to the "finished" signal above.
         */
-       virtual void load_impl(string const & filename) = 0;
+       virtual void load_impl(std::string const & filename) = 0;
 
        /** Generate the pixmap.
         *  Uses the params to decide on color, grayscale etc.
@@ -172,7 +170,7 @@ bool Image::isDrawable() const
 
 
 inline
-void Image::load(string const & filename)
+void Image::load(std::string const & filename)
 {
        return load_impl(filename);
 }
index 7b05ffea565735c9475f77235ccf9edb105d9e1b..5567841954476623ecd5cd2417ba6f07c78e3b59 100644 (file)
@@ -20,6 +20,9 @@
 #include <boost/bind.hpp>
 
 
+using std::string;
+
+
 namespace lyx {
 namespace graphics {
 
index 5da61930ad7f182f4f2697d591c82928e0580b95..3d41d9c136ddd150e82b4f83c24fa02b3f5283a5 100644 (file)
@@ -25,7 +25,6 @@
 #define GRAPHICSLOADER_H
 
 #include "GraphicsTypes.h"
-#include "support/std_string.h"
 
 #include <boost/signals/signal0.hpp>
 #include <boost/scoped_ptr.hpp>
@@ -43,9 +42,9 @@ public:
        /// Must use the reset methods to make this instance usable.
        Loader();
        /// The image is not transformed, just displayed as-is.
-       Loader(string const & file_with_path, DisplayType = ColorDisplay);
+       Loader(std::string const & file_with_path, DisplayType = ColorDisplay);
        /// The image is transformed before display.
-       Loader(string const & file_with_path, Params const &);
+       Loader(std::string const & file_with_path, Params const &);
        ///
        Loader(Loader const &);
 
@@ -55,15 +54,15 @@ public:
        Loader & operator=(Loader const &);
 
        /// The file can be changed, or the display params, or both.
-       void reset(string const & file_with_path,
+       void reset(std::string const & file_with_path,
                   DisplayType = ColorDisplay) const;
        ///
-       void reset(string const & file_with_path, Params const &) const;
+       void reset(std::string const & file_with_path, Params const &) const;
        ///
        void reset(Params const &) const;
 
        /// Returns the absolute path of the loaded (loading?) file.
-       string const & filename() const;
+       std::string const & filename() const;
        ///
        bool empty() const { return filename().empty(); }
 
index f2a1d239707789d1c09ec19ff01efbf8a6798368..f9317fed70dfaffb9a38dbe67b6f0f8ec3cc5fe1 100644 (file)
@@ -16,6 +16,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::abs;
 
 
index 338b300ae463c0ee35f378c907bf437113be568b..678566e2bdc387bd679746df286ed992cf7c7bc3 100644 (file)
@@ -15,7 +15,8 @@
 #define GRAPHICSPARAMS_H
 
 #include "GraphicsTypes.h"
-#include "support/std_string.h"
+
+#include <string>
 #include <iosfwd>
 
 
@@ -29,7 +30,7 @@ struct BoundingBox {
        ///
        BoundingBox();
        ///
-       BoundingBox(string const &);
+       BoundingBox(std::string const &);
 
        /// 0 0 0 0 is empty!
        bool empty() const;
@@ -54,7 +55,7 @@ struct Params
        unsigned int scale;
 
        /// The image filename.
-       string filename;
+       std::string filename;
 
        /** Note that the BoundingBox is always relative to the BoundingBox
         *  as stored in the EPS file.
index 3a63460790bdc1013c1c87a3640abbc32d0a716b..8ad4dab9fef26aa2e3d834d7143e4d65a7a89594 100644 (file)
@@ -13,7 +13,9 @@
 #include "graphics/GraphicsTypes.h"
 #include "support/translator.h"
 
-#include "support/std_string.h"
+
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
index 2f8c03df6cb1eea92204858df54b85772b98e7ed..6aa987e4847e9bf659fd6520080a012ec8f6649f 100644 (file)
@@ -21,6 +21,8 @@
 
 namespace support = lyx::support;
 
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
index 1289fde12f12cc841cdcfdde55bcd76ec8dfebd6..07dd3b71f4c5618acc866bd0b4d32b925cb7ebcb 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef PREVIEWIMAGE_H
 #define PREVIEWIMAGE_H
 
-#include "support/std_string.h"
 #include <boost/scoped_ptr.hpp>
 
 class InsetOld;
@@ -29,14 +28,14 @@ public:
         *  descent = height * (1 - ascent_frac)
         */
        PreviewImage(PreviewLoader & parent,
-                    string const & latex_snippet,
-                    string const & bitmap_file,
+                    std::string const & latex_snippet,
+                    std::string const & bitmap_file,
                     double ascent_frac);
        ///
        ~PreviewImage();
 
        ///
-       string const & snippet() const;
+       std::string const & snippet() const;
        ///
        int ascent() const;
        ///
index de535cca6d04a7f78c844182fd9cae43d2443201..5f541b44677d6da5e9f20fd276731416df4222aa 100644 (file)
@@ -54,6 +54,7 @@ using std::ostream;
 using std::ostringstream;
 using std::pair;
 using std::vector;
+using std::string;
 
 
 namespace {
index 345e72c72151218adde3a540977c0aa7ea3fa775..ecb518f1a880423df1485f1ca14f875c412b1433 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef PREVIEWLOADER_H
 #define PREVIEWLOADER_H
 
-#include "support/std_string.h"
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/signal1.hpp>
@@ -42,7 +41,7 @@ public:
        /** Is there an image already associated with this snippet of LaTeX?
         *  If so, returns a pointer to it, else returns 0.
         */
-       PreviewImage const * preview(string const & latex_snippet) const;
+       PreviewImage const * preview(std::string const & latex_snippet) const;
 
        ///
        enum Status {
@@ -57,13 +56,13 @@ public:
        };
 
        /// How far have we got in loading the image?
-       Status status(string const & latex_snippet) const;
+       Status status(std::string const & latex_snippet) const;
 
        /// Add a snippet of LaTeX to the queue for processing.
-       void add(string const & latex_snippet) const;
+       void add(std::string const & latex_snippet) const;
 
        /// Remove this snippet of LaTeX from the PreviewLoader.
-       void remove(string const & latex_snippet) const;
+       void remove(std::string const & latex_snippet) const;
 
        /** We have accumulated several latex snippets with status "InQueue".
         *  Initiate their transformation into bitmap images.
index 8590d182ff0cc63c4f7507c897d618cd1e13ff43..991853b67fae9d8d09e8780b0ac3561f68a4c0d5 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef PREVIEWEDINSET_H
 #define PREVIEWEDINSET_H
 
-#include "support/std_string.h"
 #include <boost/signals/trackable.hpp>
 #include <boost/signals/connection.hpp>
 
@@ -75,12 +74,12 @@ private:
        /// Does the owning inset want a preview?
        virtual bool previewWanted(Buffer const &) const = 0;
        /// a wrapper to Inset::latex
-       virtual string const latexString(Buffer const &) const = 0;
+       virtual std::string const latexString(Buffer const &) const = 0;
 
        ///
        InsetOld & inset_;
        ///
-       string snippet_;
+       std::string snippet_;
 
        /// We don't own this. Cached for efficiency reasons.
        mutable PreviewImage const * pimage_;
index 76b0c223c8e6834e9cac6c545c2fe786117cc615..672edcdc6e1e7713bde9654d3239a5dc83bb81b2 100644 (file)
@@ -29,7 +29,7 @@ using lyx::support::ChangeExtension;
 using lyx::support::MakeDisplayPath;
 
 using std::find;
-
+using std::string;
 using std::vector;
 
 
index 610112a8c6888efae740d9c12405c591d381cb94..012a9c65666265045fa88133c480964aeb3a5644 100644 (file)
@@ -15,7 +15,7 @@
 #define IMPORTER_H
 
 #include <vector>
-#include "support/std_string.h"
+
 
 class LyXView;
 class Format;
@@ -24,8 +24,8 @@ class Importer {
 public:
        ///
        static
-       bool Import(LyXView * lv, string const & filename,
-                   string const & format);
+       bool Import(LyXView * lv, std::string const & filename,
+                   std::string const & format);
 
        ///
        static
@@ -33,6 +33,6 @@ public:
 private:
        ///
        static
-       std::vector<string> const Loaders();
+       std::vector<std::string> const Loaders();
 };
 #endif
index 3c997c56baf1045b3d3d5e9c4bfe55662feae009..f95a3a9b66a7fa553f6236896105ef5ad3ce31ea 100644 (file)
@@ -29,6 +29,7 @@ namespace support = lyx::support;
 using std::endl;
 using std::for_each;
 
+using std::string;
 using std::ostream;
 using std::vector;
 
index 518066abb57a8bcb18d4454b9d4acf614bbe0423..766d89880ea97b801c0d23e1183c11d9011817e7 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <boost/function.hpp>
 #include <boost/utility.hpp>
-#include "support/std_string.h"
+
 #include <iosfwd>
 #include <map>
 #include <vector>
@@ -34,19 +34,19 @@ struct Template {
        void dumpFormats(std::ostream &) const;
 
        /// What is the name of this template in the LyX format?
-       string lyxName;
+       std::string lyxName;
        /// What will the button in the GUI say?
-       string guiName;
+       std::string guiName;
        /// A short help text
-       string helpText;
+       std::string helpText;
        /** The format of the input file. Can be "*", in which case we try and
         *   ascertain the format from the contents of the file.
         */
-       string inputFormat;
+       std::string inputFormat;
        /// A file extension regular expression for the file browser
-       string fileRegExp;
+       std::string fileRegExp;
        /// What command should be executed to edit the file?
-       string editCommand;
+       std::string editCommand;
        /// Should we do automatic production of the output?
        bool automaticProduction;
 
@@ -58,18 +58,18 @@ struct Template {
                void readFormat(LyXLex &);
 
                /// The text that should be inserted into the exported file
-               string product;
+               std::string product;
                /// The filename of the resulting file
-               string updateResult;
+               std::string updateResult;
                /// The format of this file.
-               string updateFormat;
+               std::string updateFormat;
                /// What features does this external inset require?
-               string requirement;
+               std::string requirement;
                /// A collection of preamble snippets identified by name.
-               std::vector<string> preambleNames;
+               std::vector<std::string> preambleNames;
        };
        ///
-       typedef std::map<string, Format> Formats;
+       typedef std::map<std::string, Format> Formats;
        ///
        Formats formats;
 };
@@ -81,11 +81,11 @@ struct Template {
 class TemplateManager : boost::noncopyable {
 public:
        /// Map from the LyX name of the template to the template structure
-       typedef std::map<string, Template> Templates;
+       typedef std::map<std::string, Template> Templates;
        /** Map from the LyX name of the preamble definition to the preamble
         *  definition itself.
         */
-       typedef std::map<string, string> PreambleDefs;
+       typedef std::map<std::string, std::string> PreambleDefs;
 
        static TemplateManager & get();
        Templates & getTemplates();
@@ -93,14 +93,14 @@ public:
        /** return the template by LyX name.
         *  If it isn't found, return 0.
         */
-       Template const * getTemplateByName(string const & name) const;
+       Template const * getTemplateByName(std::string const & name) const;
        /** return the preamble definition by LyX name.
-        *  If it isn't found, return an empty string.
+        *  If it isn't found, return an empty std::string.
         */
-       string const getPreambleDefByName(string const & name) const;
+       std::string const getPreambleDefByName(std::string const & name) const;
 private:
        TemplateManager();
-       void readTemplates(string const & path);
+       void readTemplates(std::string const & path);
        void dumpTemplates(std::ostream &) const;
        void dumpPreambleDefs(std::ostream &) const;
 
index 8b8aa3def7d836e8a1b38d25ede0b172a53516b0..f28c9d6b8d1645018a60af6a8b62f236d42803cd 100644 (file)
@@ -21,6 +21,9 @@
 #include "LColor.h"
 
 
+using std::string;
+
+
 // Initialization of the counter for the inset id's,
 unsigned int InsetOld::inset_id = 0;
 
@@ -172,4 +175,3 @@ bool isHighlyEditableInset(InsetOld const * i)
 {
        return i && i->editable() == InsetOld::HIGHLY_EDITABLE;
 }
-
index 64271d6a1c9cb08ca89541ba46b8c6fb7da6cc25..670b52390e2a646da247df393664eea4cbab964e 100644 (file)
@@ -19,6 +19,7 @@
 #include "dimension.h"
 #include "ParagraphList_fwd.h"
 
+
 class Buffer;
 class LColor_color;
 class FuncRequest;
@@ -163,7 +164,7 @@ public:
        ///
        int width() const;
        /// what appears in the minibuffer when opening
-       virtual string const editMessage() const;
+       virtual std::string const editMessage() const;
        ///
        virtual EDITABLE editable() const;
        ///
@@ -196,9 +197,9 @@ public:
        virtual bool directWrite() const;
 
        ///
-       void setInsetName(string const & s) { name_ = s; }
+       void setInsetName(std::string const & s) { name_ = s; }
        ///
-       string const & getInsetName() const { return name_; }
+       std::string const & getInsetName() const { return name_; }
        ///
        void setOwner(UpdatableInset * inset) { owner_ = inset; }
        ///
@@ -324,7 +325,7 @@ private:
        ///
        UpdatableInset * owner_;
        ///
-       string name_;
+       std::string name_;
        /** We store the LColor::color value as an int to get LColor.h out
         *  of the header file.
         */
index 039c0ebd84f675f0f2be318c352b6d3dd991ff1a..b771a11da7cd0ecda72f6d1d85ba2e6333fb54fa 100644 (file)
@@ -12,8 +12,7 @@
 #ifndef INSETBASE_H
 #define INSETBASE_H
 
-#include "support/std_string.h"
-
+#include <string>
 #include <vector>
 #include <memory>
 
@@ -104,7 +103,7 @@ public:
        virtual void validate(LaTeXFeatures &) const {}
        /// Appends \c list with all labels found within this inset.
        virtual void getLabelList(Buffer const &,
-                                 std::vector<string> & /* list */) const {}
+                                 std::vector<std::string> & /* list */) const {}
 };
 
 #endif
index 2f21e403d9e6507670f78757cc643106de9b9ce2..d794437d35da16bcd99e15b88d5850074ed45d3b 100644 (file)
@@ -27,7 +27,7 @@ using lyx::support::prefixIs;
 using lyx::support::strToInt;
 
 using std::max;
-
+using std::string;
 using std::auto_ptr;
 
 
index c2d5797ab6d6f846eddb27b8db98a6cf5e0f118e..25d60f2523265998f296a6ed1a395a4365eb5d25 100644 (file)
@@ -39,7 +39,7 @@ public:
        ///
        void read(Buffer const &, LyXLex & lex);
        ///
-       virtual string const getScreenLabel(Buffer const &) const;
+       virtual std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -51,7 +51,7 @@ public:
        ///
        int getCounter() const { return counter; }
        ///
-       string const getBibLabel() const;
+       std::string const getBibLabel() const;
 
 private:
        ///
index d9c86160cb2ffd7e9d7df4a27cb79cb64a247b43..b0973ca0d4e63ca350669f3c18583b6bd34c629a 100644 (file)
@@ -46,7 +46,7 @@ namespace os = lyx::support::os;
 
 using std::endl;
 using std::getline;
-
+using std::string;
 using std::ifstream;
 using std::ostream;
 using std::pair;
index 7f1db0de0035929a601e35780df5e6dc466f4a9e..30999d6a5e9402d5d89c7d33f5579cfa867f3b90 100644 (file)
@@ -33,7 +33,7 @@ public:
        /// small wrapper for the time being
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -43,13 +43,13 @@ public:
                  LatexRunParams const &) const;
        ///
        void fillWithBibKeys(Buffer const & buffer,
-               std::vector<std::pair<string,string> > & keys) const;
+               std::vector<std::pair<std::string,std::string> > & keys) const;
        ///
-       std::vector<string> const getFiles(Buffer const &) const;
+       std::vector<std::string> const getFiles(Buffer const &) const;
        ///
-       bool addDatabase(string const &);
+       bool addDatabase(std::string const &);
        ///
-       bool delDatabase(string const &);
+       bool delDatabase(std::string const &);
 };
 
 #endif // INSET_BIBTEX_H
index 0193d450ef60e82e815903e61ed75915f2499900..7db6c4a291baf8cf702a479f2cda1ffba6a39425 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
@@ -162,7 +164,7 @@ int InsetBranch::linuxdoc(Buffer const & buf, std::ostream & os) const
        string const branch_sel = buf.params().branchlist().allSelected();
        if (branch_sel.find(params_.branch, 0) != string::npos)
                return inset.linuxdoc(buf, os);
-       return 0;
+       return 0;
 }
 
 
index dc42e85a48f0e59c5639134e83f3ca73809b7027..0ba0f0f634833717f7d225c91c424262ce9c11d9 100644 (file)
@@ -22,7 +22,7 @@
        ///
        void read(LyXLex & lex);
        ///
-       string branch;
+       std::string branch;
        /// Hack -- MV
        BranchList branchlist;
  };
@@ -36,7 +36,7 @@ public:
        ///
 
 
-       InsetBranch(BufferParams const &, string const &);
+       InsetBranch(BufferParams const &, std::string const &);
        /// Copy constructor
        InsetBranch(InsetBranch const &);
        ///
@@ -44,7 +44,7 @@ public:
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        InsetOld::Code lyxCode() const { return InsetOld::BRANCH_CODE; }
        ///
@@ -87,21 +87,21 @@ private:
 class InsetBranchMailer : public MailInset {
 public:
        ///
-       InsetBranchMailer(string const & name, InsetBranch & inset);
+       InsetBranchMailer(std::string const & name, InsetBranch & inset);
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static string const params2string(string const &, InsetBranchParams const &);
+       static std::string const params2string(std::string const &, InsetBranchParams const &);
        ///
-       static void string2params(string const &, InsetBranchParams &);
+       static void string2params(std::string const &, InsetBranchParams &);
 
 private:
        ///
-       string const name_;
+       std::string const name_;
        ///
        InsetBranch & inset_;
 };
index 0e12ccddbc8573eaa3e5131d0785d308ffa604a1..7756436ff65314a6b9c6a88f5df61cc3b9c45578 100644 (file)
 
 #include "support/std_sstream.h"
 
+
 using lyx::support::bformat;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 using std::ostringstream;
 
index eecdf464ff7ae75a993b6319b37e7a39c31c1f37..4c58a3acca598a846088ec359fd9a0e386f64b6f 100644 (file)
@@ -30,7 +30,7 @@ public:
        ///
        virtual InsetOld::Code lyxCode() const;
        ///
-       virtual string const editMessage() const;
+       virtual std::string const editMessage() const;
        ///
        virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
index 14f69222a99591b38e9aeb6c2001f9650efeb02b..c6babf5c03f3e171cfc4b5dd5681ee9cd801e483 100644 (file)
@@ -30,6 +30,7 @@ using lyx::support::ltrim;
 using lyx::support::rtrim;
 using lyx::support::split;
 
+using std::string;
 using std::ostream;
 using std::vector;
 using std::map;
index cc0848274b82bbb3a31c17bde0e3ea7edecc2d33..8547521d35ca920f2b5a61768eabb362c2f6f818 100644 (file)
@@ -29,7 +29,7 @@ public:
                return std::auto_ptr<InsetBase>(new InsetCitation(params()));
        }
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -66,13 +66,13 @@ private:
                ///
                InsetCommandParams params;
                ///
-               string generated_label;
+               std::string generated_label;
                ///
-               string screen_label;
+               std::string screen_label;
        };
 
        /// This function does the donkey work of creating the pretty label
-       string const generateLabel(Buffer const &) const;
+       std::string const generateLabel(Buffer const &) const;
        ///
        Cache::Style getStyle(Buffer const & buffer) const;
 
index f6e4ccd06bc5757185531b0a61c7c628dd84fb60..fe670599719b19cd120301e8a7a6f766983a6d8b 100644 (file)
 #include "frontends/Painter.h"
 #include "frontends/LyXView.h"
 
+
 using lyx::graphics::PreviewLoader;
 
 using std::endl;
-
+using std::string;
 using std::max;
 using std::ostream;
 
index 1ead924b0ab8673ae7a812b20dc7e62533e8594d..859e78866fc82fc62379b610b6f211bfd4bc8685 100644 (file)
@@ -96,7 +96,7 @@ public:
        void setFont(BufferView *, LyXFont const &, bool toggleall = false,
                 bool selectall = false);
        ///
-       void setLabel(string const & l) const;
+       void setLabel(std::string const & l) const;
        ///
        void setLabelFont(LyXFont & f);
 #if 0
@@ -108,7 +108,7 @@ public:
        ///
        void deleteLyXText(BufferView *, bool recursive=true) const;
        /// Appends \c list with all labels found within this inset.
-       void getLabelList(Buffer const &, std::vector<string> & list) const;
+       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
        int scroll(bool recursive=true) const;
        ///
@@ -140,9 +140,9 @@ public:
        bool nextChange(BufferView * bv, lyx::pos_type & length);
 
        ///
-       bool searchForward(BufferView * bv, string const & str,
+       bool searchForward(BufferView * bv, std::string const & str,
                           bool = true, bool = false);
-       bool searchBackward(BufferView * bv, string const & str,
+       bool searchBackward(BufferView * bv, std::string const & str,
                            bool = true, bool = false);
 
        ///
@@ -188,7 +188,7 @@ private:
        mutable int topbaseline;
 
        ///
-       mutable string label;
+       mutable std::string label;
 #if 0
        ///
        bool autocollapse;
index b3c80231cc78a79a781b5815e97dd45a75c526e3..acc2033c2c29baa1d54c2d2a7d0cee2d42a19862 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
index d1b9cfecd6cfa93dd017d06b18c28cb8067a6890..6d28ee9b90f19d92aa778aa991330c74b5f34c60 100644 (file)
@@ -43,7 +43,7 @@ public:
        virtual void read(Buffer const &, LyXLex & lex)
                { p_.read(lex); }
        /// Can remove one InsetBibKey is modified
-       void scanCommand(string const & c) { p_.scanCommand(c); };
+       void scanCommand(std::string const & c) { p_.scanCommand(c); };
        ///
        virtual int latex(Buffer const &, std::ostream &,
                          LatexRunParams const &) const;
@@ -61,29 +61,29 @@ public:
        ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const & getContents() const { return p_.getContents(); }
+       std::string const & getContents() const { return p_.getContents(); }
        ///
-       void setContents(string const & c) { p_.setContents(c); }
+       void setContents(std::string const & c) { p_.setContents(c); }
        ///
-       string const & getOptions() const { return p_.getOptions(); }
+       std::string const & getOptions() const { return p_.getOptions(); }
        ///
        ButtonRenderer & button() const { return button_; }
 
 protected:
        ///
-       string const getCommand() const { return p_.getCommand(); }
+       std::string const getCommand() const { return p_.getCommand(); }
        ///
-       string const & getCmdName() const { return p_.getCmdName(); }
+       std::string const & getCmdName() const { return p_.getCmdName(); }
        ///
-       void setCmdName(string const & n) { p_.setCmdName(n); }
+       void setCmdName(std::string const & n) { p_.setCmdName(n); }
        ///
-       void setOptions(string const & o) { p_.setOptions(o); }
+       void setOptions(std::string const & o) { p_.setOptions(o); }
        ///
        void setParams(InsetCommandParams const &);
        ///
        virtual BufferView * view() const;
        /// This should provide the text for the button
-       virtual string const getScreenLabel(Buffer const &) const = 0;
+       virtual std::string const getScreenLabel(Buffer const &) const = 0;
 
 private:
        ///
@@ -96,21 +96,21 @@ private:
 class InsetCommandMailer : public MailInset {
 public:
        ///
-       InsetCommandMailer(string const & name, InsetCommand & inset);
+       InsetCommandMailer(std::string const & name, InsetCommand & inset);
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetCommandParams &);
+       static void string2params(std::string const &, InsetCommandParams &);
        ///
-       static string const params2string(string const & name,
+       static std::string const params2string(std::string const & name,
                                          InsetCommandParams const &);
 private:
        ///
-       string const name_;
+       std::string const name_;
        ///
        InsetCommand & inset_;
 };
index 6f8ad66b1941ca64ac745bb3f3c20df8775c570d..996bf0502a68abfcbae679dd2fd7085ef5f2f09c 100644 (file)
@@ -15,6 +15,8 @@
 #include "debug.h"
 #include "lyxlex.h"
 
+
+using std::string;
 using std::endl;
 using std::ostream;
 
index e5186a9cf20f47441914464b3fb46478e2a33855..a29dc5fa959b372e3471c93e746077078f1f1ee0 100644 (file)
 #ifndef INSETCOMMANDPARAMS_H
 #define INSETCOMMANDPARAMS_H
 
-
-#include "support/std_string.h"
-
+#include <string>
 #include <iosfwd>
 
+
 class LyXLex;
 
+
 class InsetCommandParams {
 public:
        ///
        InsetCommandParams();
        ///
        explicit
-       InsetCommandParams(string const & n,
-                           string const & c = string(),
-                           string const & o = string());
+       InsetCommandParams(std::string const & n,
+                           std::string const & c = std::string(),
+                           std::string const & o = std::string());
        ///
        void read(LyXLex &);
        /// Parse the command
-       void scanCommand(string const &);
+       void scanCommand(std::string const &);
        ///
        void write(std::ostream &) const;
        /// Build the complete LaTeX command
-       string const getCommand() const;
+       std::string const getCommand() const;
        ///
-       string const & getCmdName() const { return cmdname; }
+       std::string const & getCmdName() const { return cmdname; }
        ///
-       string const & getOptions() const { return options; }
+       std::string const & getOptions() const { return options; }
        ///
-       string const & getContents() const { return contents; }
+       std::string const & getContents() const { return contents; }
        ///
-       void setCmdName(string const & n) { cmdname = n; }
+       void setCmdName(std::string const & n) { cmdname = n; }
        ///
-       void setOptions(string const & o) { options = o; }
+       void setOptions(std::string const & o) { options = o; }
        ///
-       void setContents(string const & c) { contents = c; }
+       void setContents(std::string const & c) { contents = c; }
        ///
        bool preview() const { return preview_; }
        ///
@@ -55,11 +55,11 @@ public:
 
 private:
        ///
-       string cmdname;
+       std::string cmdname;
        ///
-       string contents;
+       std::string contents;
        ///
-       string options;
+       std::string options;
        ///
        bool preview_;
 };
index 93c527f3779b916c5c039a413587a732577dca47..88f414efe8c19febcbc448d6a029ca31bae927ec 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index 5a1758f1cdb0414ab21910be21e57f2b5fab9ad9..a53126d97af8c86926b07aa6ebef43428e41001d 100644 (file)
@@ -18,7 +18,7 @@
 class InsetEnvironment : public InsetText {
 public:
        ///
-       InsetEnvironment(BufferParams const &, string const & name);
+       InsetEnvironment(BufferParams const &, std::string const & name);
        ///
        InsetEnvironment(InsetEnvironment const &);
        ///
@@ -33,7 +33,7 @@ public:
        int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
index 93370be244eb6bcb3d270303543f23b074162931..5ef362e02eec7af32f1bb24120271b829800a722 100644 (file)
@@ -37,7 +37,7 @@ using lyx::support::strToInt;
 
 using std::endl;
 using std::min;
-
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index 7c9868123d88b1de7f7572b28318adaa0af8f327..d6c342ff66486698a756feed161ca3cb73ab1478 100644 (file)
@@ -43,7 +43,7 @@ public:
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
        InsetERT(BufferParams const &,
-                Language const *, string const & contents, bool collapsed);
+                Language const *, std::string const & contents, bool collapsed);
        ///
        ~InsetERT();
        ///
@@ -53,7 +53,7 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        bool insertInset(BufferView *, InsetOld *);
        ///
@@ -125,7 +125,7 @@ private:
        ///
        void init();
        ///
-       string const get_new_label() const;
+       std::string const get_new_label() const;
        ///
        void setButtonLabel() const;
        ///
@@ -147,16 +147,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetERT::ERTStatus &);
+       static void string2params(std::string const &, InsetERT::ERTStatus &);
        ///
-       static string const params2string(InsetERT::ERTStatus);
+       static std::string const params2string(InsetERT::ERTStatus);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetERT & inset_;
 };
index 972b9df64aa25f5720db8d952804cbe6c2218657..3bc055888357e1a3b16bef2996a3f23b62bbc73c 100644 (file)
@@ -44,7 +44,7 @@ namespace support = lyx::support;
 namespace external = lyx::external;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
index 528a8bbdef9908ec24c342c9b9897139bb1a4794..9e955d1b76214a8105be3d99ea154e86e3d863b8 100644 (file)
@@ -21,7 +21,6 @@
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/trackable.hpp>
 
-#include "support/std_string.h"
 
 class RenderInset;
 
@@ -39,9 +38,9 @@ class InsetExternal : public InsetOld, public boost::signals::trackable
                TempName(TempName const &);
                ~TempName();
                TempName & operator=(TempName const &);
-               string const & operator()() const { return tempname_; }
+               std::string const & operator()() const { return tempname_; }
        private:
-               string tempname_;
+               std::string tempname_;
        };
 
 public:
@@ -53,11 +52,11 @@ public:
                bool read(Buffer const &, LyXLex &);
 
                /// The name of the tempfile used for manipulations.
-               string const & tempname() const { return tempname_(); }
+               std::string const & tempname() const { return tempname_(); }
 
                /// the current template used
-               void settemplate(string const &);
-               string const & templatename() const { return templatename_; }
+               void settemplate(std::string const &);
+               std::string const & templatename() const { return templatename_; }
 
                /// the filename
                lyx::support::FileName filename;
@@ -68,7 +67,7 @@ public:
 
        private:
                TempName tempname_;
-               string templatename_;
+               std::string templatename_;
        };
 
        InsetExternal();
@@ -123,7 +122,7 @@ public:
            If \param external_in_tmpdir == true, then the generated file is
            place in the buffer's temporary directory.
        */
-       void updateExternal(string const &, Buffer const &,
+       void updateExternal(std::string const &, Buffer const &,
                            bool external_in_tmpdir) const;
 
 private:
@@ -137,7 +136,7 @@ private:
            If \param external_in_tmpdir == true, then the generated file is
            place in the buffer's temporary directory.
        */
-       int write(string const & format, Buffer const &, std::ostream &,
+       int write(std::string const & format, Buffer const &, std::ostream &,
                  bool external_in_tmpdir = false) const;
 
        /// the current params
@@ -157,18 +156,18 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, Buffer const &,
+       static void string2params(std::string const &, Buffer const &,
                                  InsetExternal::Params &);
        ///
-       static string const params2string(InsetExternal::Params const &,
+       static std::string const params2string(InsetExternal::Params const &,
                                          Buffer const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetExternal & inset_;
 };
index e5c9ecc3fac987c4bd32dc87ed75f612eed24e99..0f0ba8a817347305f8acb8c1a78e84cce080aa0c 100644 (file)
@@ -35,7 +35,7 @@
 using lyx::support::contains;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
index e1000de62908164ab14c17f6437f77bfb84e73de..2c90b71535642c1a65c63244b2ef7e2e22d0ebd0 100644 (file)
@@ -25,9 +25,9 @@ struct InsetFloatParams {
        ///
        void read(LyXLex & lex);
        ///
-       string type;
+       std::string type;
        ///
-       string placement;
+       std::string placement;
        ///
        bool wide;
 };
@@ -39,7 +39,7 @@ struct InsetFloatParams {
 class InsetFloat : public InsetCollapsable {
 public:
        ///
-       InsetFloat(BufferParams const &, string const &);
+       InsetFloat(BufferParams const &, std::string const &);
        ///
        InsetFloat(InsetFloat const &);
        ///
@@ -64,7 +64,7 @@ public:
        ///
        int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        bool insetAllowed(InsetOld::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
@@ -96,16 +96,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetFloatParams &);
+       static void string2params(std::string const &, InsetFloatParams &);
        ///
-       static string const params2string(InsetFloatParams const &);
+       static std::string const params2string(InsetFloatParams const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetFloat & inset_;
 };
index 5aed5db8aeadd6bc4bdff0be72c99b7152c87051..ce9c6327050def0688817f201e8d9fafec4d1de2 100644 (file)
@@ -29,7 +29,7 @@
 using lyx::support::bformat;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 
 
index 50d7de189d3111d3d6508fbf61fb96272d52ea32..9052105ee1c5c962dbe65e4bac9dc571a107f574 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        InsetFloatList();
        ///
-       InsetFloatList(string const & type);
+       InsetFloatList(std::string const & type);
        ///
        ~InsetFloatList();
        ///
@@ -36,7 +36,7 @@ public:
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
index fb4dc96bb13dd63e68d01c8c367897299180fd52..46a2caa7cf637b0f5f202e627d14a0a83bea1ea8 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index d6acd653f26b3d5408060f5cfc79b7e304aa4a73..821c73016d5bf8dac117e06db974c1db25e4d0a5 100644 (file)
@@ -34,7 +34,7 @@ public:
        ///
        int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
 };
 
 #endif
index 48756136208fd4229525443df87378f4bd9a052c..5c1164c254aeff4ae83749ab5c64b7354ab6e70e 100644 (file)
@@ -100,7 +100,7 @@ using lyx::support::unzippedFileName;
 namespace os = lyx::support::os;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
index d09edf59c60a67c796dd333f4b05dbedca409151..6ac5f21424e8aa62e9d98875aeef0bf76f7ff2c4 100644 (file)
@@ -88,20 +88,20 @@ private:
        void statusChanged();
 
        /// Read the inset native format
-       void readInsetGraphics(LyXLex & lex, string const & bufpath);
+       void readInsetGraphics(LyXLex & lex, std::string const & bufpath);
 
        /// Get the status message, depends on the image loading status.
-       string const statusMessage() const;
+       std::string const statusMessage() const;
        /// Create the options for the latex command.
-       string const createLatexOptions() const;
+       std::string const createLatexOptions() const;
        /// Convert the file if needed, and return the location of the file.
-       string const prepareFile(Buffer const & buf, LatexRunParams const &) const;
+       std::string const prepareFile(Buffer const & buf, LatexRunParams const &) const;
 
        ///
        InsetGraphicsParams params_;
 
        /// holds the entity name that defines the graphics location (SGML).
-       string const graphic_label;
+       std::string const graphic_label;
 
        /// The thing that actually draws the image on LyX's screen.
        boost::scoped_ptr<GraphicRenderer> const graphic_;
@@ -117,19 +117,19 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const & data,
+       static void string2params(std::string const & data,
                                  Buffer const & buffer,
                                  InsetGraphicsParams &);
        ///
-       static string const params2string(InsetGraphicsParams const &,
+       static std::string const params2string(InsetGraphicsParams const &,
                                          Buffer const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetGraphics & inset_;
 };
index a4bb4cbe8f7d3f418ae57dbdf28f399fe1661990..351d3f056844de17700f0e69f0dddec8a3cf2f12 100644 (file)
@@ -31,6 +31,7 @@ using lyx::support::readBB_from_PSFile;
 using lyx::support::strToInt;
 using lyx::support::token;
 
+using std::string;
 using std::ostream;
 
 
index 627e1ee4764e8371d525d82192210d688fb5f07c..b96343836f71a14e30d40200f1a6918bc3f0c858 100644 (file)
@@ -15,7 +15,6 @@
 
 
 #include "graphics/GraphicsTypes.h"
-#include "support/std_string.h"
 #include "lyxlength.h"
 #include "support/filename.h"
 
@@ -51,20 +50,20 @@ struct InsetGraphicsParams
        bool noUnzip;
 
        /// The bounding box with "xLB yLB yRT yRT ", divided by a space!
-       string bb;
+       std::string bb;
        /// clip image
        bool clip;
 
        /// Rotation angle.
        float rotateAngle;
        /// Origin point of rotation
-       string rotateOrigin;
+       std::string rotateOrigin;
        /// Do we have a subcaption?
        bool subcaption;
        /// The text of the subcaption.
-       string subcaptionText;
+       std::string subcaptionText;
        /// any userdefined special command
-       string special;
+       std::string special;
 
        ///
        InsetGraphicsParams();
@@ -73,9 +72,9 @@ struct InsetGraphicsParams
        ///
        InsetGraphicsParams & operator=(InsetGraphicsParams const &);
        /// Save the parameters in the LyX format stream.
-       void Write(std::ostream & os, string const & bufpath) const;
+       void Write(std::ostream & os, std::string const & bufpath) const;
        /// If the token belongs to our parameters, read it.
-       bool Read(LyXLex & lex, string const & token, string const & bufpath);
+       bool Read(LyXLex & lex, std::string const & token, std::string const & bufpath);
        /// convert
   // Only a subset of InsetGraphicsParams is needed for display purposes.
   // This function also interrogates lyxrc to ascertain whether
index 7951275c05d28f5e7a40fce4ef4b0fc2cc4dc1b3..1f0321015b477d4df1fb6d1767b0fb12c6e3fb51 100644 (file)
@@ -24,7 +24,7 @@ public:
                return std::auto_ptr<InsetBase>(new InsetHFill);
        }
        ///
-       string const getScreenLabel(Buffer const &) const { return getContents(); }
+       std::string const getScreenLabel(Buffer const &) const { return getContents(); }
        ///
        InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; }
        ///
index 20e1338eeb1667d61ecb86984586efe58d38b6e7..3cdb48629d3fa1ba101203ab810f3db389dcb56a 100644 (file)
@@ -55,7 +55,7 @@ using lyx::support::OnlyPath;
 using lyx::support::subst;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
@@ -190,7 +190,7 @@ Types type(InsetCommandParams const & params)
                return VERBAST;
        return INCLUDE;
 }
+
 
 bool isVerbatim(InsetCommandParams const & params)
 {
index e3bfe8cfe5509449b5435cae84f70536c205e01b..27b4a551ac42719545d4ec11f59fdfce2ff7c394 100644 (file)
@@ -55,14 +55,14 @@ public:
         *  \param list the list of labels in the child buffer.
         */
        void getLabelList(Buffer const & buffer,
-                         std::vector<string> & list) const;
+                         std::vector<std::string> & list) const;
        /** Fills \c keys
         *  \param buffer the Buffer containing this inset.
         *  \param keys the list of bibkeys in the child buffer.
         */
        ///
        void fillWithBibKeys(Buffer const & buffer,
-               std::vector<std::pair<string,string> > & keys) const;
+               std::vector<std::pair<std::string,std::string> > & keys) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -88,7 +88,7 @@ private:
        /// set the parameters
        void set(InsetCommandParams const & params, Buffer const &);
        /// get the text displayed on the button
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        void write(std::ostream &) const;
        ///
@@ -97,7 +97,7 @@ private:
        /// the parameters
        InsetCommandParams params_;
        /// holds the entity name that defines the file location (SGML)
-       string const include_label;
+       std::string const include_label;
 
        /// Use the Pimpl idiom to hide the internals of the previewer.
        class PreviewImpl;
@@ -120,16 +120,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetCommandParams &);
+       static void string2params(std::string const &, InsetCommandParams &);
        ///
-       static string const params2string(InsetCommandParams const &);
+       static std::string const params2string(InsetCommandParams const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetInclude & inset_;
 };
index b1a3a39677d57629cad50629460d9b4c5d30fd8d..17d3e9efaae6ca403037bcb1fe2c870b901e5389 100644 (file)
@@ -16,6 +16,8 @@
 #include "LaTeXFeatures.h"
 #include "metricsinfo.h"
 
+
+using std::string;
 using std::ostream;
 
 
index 26df595c31f13309ee16cc7827b6b6838fa7b1ba..ece2887b30ff06dc6fe40fe6231540d46f96a876 100644 (file)
@@ -32,7 +32,7 @@ public:
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -61,7 +61,7 @@ public:
        ///
        InsetOld::Code lyxCode() const;
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
index 0d7e33f04069fbf94ce26a0f835f640940e30e05..27bd2cc1bf1bf17ef201aa827e64f6581f926b39 100644 (file)
@@ -19,6 +19,7 @@
 
 using lyx::support::escape;
 
+using std::string;
 using std::ostream;
 
 
index 805004f0ac00b78a9a552795cf1405338cb59489..2fe34f0b1f1487aa362ec4feec499590e572d0da 100644 (file)
@@ -28,13 +28,13 @@ public:
        ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const { return getContents(); }
+       std::string const getScreenLabel(Buffer const &) const { return getContents(); }
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
        /// Appends \c list with this label
-       void getLabelList(Buffer const &, std::vector<string> & list) const;
+       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
        int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
index f24815ebf625fee25f430e5449b6fab883b87745..bcbd6ed46cb23660b41a6d4f85ba1c1c60db0063 100644 (file)
@@ -28,7 +28,7 @@ using lyx::support::contains;
 using lyx::support::trim;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index 7d3ac2b540e7cda8c72c4f7b920d350726e0de8a..fb86a5526e2ed9d8494c9fd00fd7d1bb06bc7b82 100644 (file)
@@ -13,7 +13,6 @@
 #define INSET_LATEX_ACCENT_H
 
 #include "inset.h"
-#include "support/std_string.h"
 
 class Dimension;
 
@@ -32,7 +31,7 @@ public:
        InsetLatexAccent();
        ///
        explicit
-       InsetLatexAccent(string const & string);
+       InsetLatexAccent(std::string const & str);
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -117,7 +116,7 @@ private:
        /// Check if we know the modifier and can display it ok on screen.
        void checkContents();
        ///
-       string contents;
+       std::string contents;
        /// can display as proper char
        bool  candisp;
        /// modifier type
index aed518fd027c6c2ad50eda385be5e948623cfac0..05d377ee4610d4afae9943e9b9beffc680ac86f1 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index a1cbfa0016f09d040c9be823e9e2b53f439f2052..b0f13ed0d9aa05ea59e6217620fbd42bc0b4355f 100644 (file)
@@ -33,7 +33,7 @@ public:
        int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
 };
 
 #endif
index c31607a0444e078025d894a53aa812dbf1cd0ea4..5480c181ab2be15dd870b099521a6218fe363b22 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::endl;
 using std::auto_ptr;
 using std::istringstream;
index 1a2efe1265edbf04634670d2eef6ad2911865003..e484b3bf441a05f24354fc4cce7c89f741d6dca2 100644 (file)
@@ -75,7 +75,7 @@ public:
        int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        bool insetAllowed(InsetOld::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
@@ -106,16 +106,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetMinipage::Params &);
+       static void string2params(std::string const &, InsetMinipage::Params &);
        ///
-       static string const params2string(InsetMinipage::Params const &);
+       static std::string const params2string(InsetMinipage::Params const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetMinipage & inset_;
 };
index 08e9bceee3b237e1c15f6d82747ea4c9d89efc3f..051b27d6d8cc89d558e9b7ce86c367d4c5a29cb9 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
index 9924c0c7fc8139384dc13c9c196aeb4bb29c8d18..dc2a0336c964dd16b3b6f4377f613fd48d70a7b3 100644 (file)
@@ -22,7 +22,7 @@
        ///
        void read(LyXLex & lex);
        ///
-       string type;
+       std::string type;
 };
 
 
@@ -34,7 +34,7 @@ public:
        ///
 
 
-       InsetNote(BufferParams const &, string const &);
+       InsetNote(BufferParams const &, std::string const &);
        /// Copy constructor
        InsetNote(InsetNote const &);
        ///
@@ -42,7 +42,7 @@ public:
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        InsetOld::Code lyxCode() const { return InsetOld::NOTE_CODE; }
        ///
@@ -85,21 +85,21 @@ private:
 class InsetNoteMailer : public MailInset {
 public:
        ///
-       InsetNoteMailer(string const & name, InsetNote & inset);
+       InsetNoteMailer(std::string const & name, InsetNote & inset);
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static string const params2string(string const &, InsetNoteParams const &);
+       static std::string const params2string(std::string const &, InsetNoteParams const &);
        ///
-       static void string2params(string const &, InsetNoteParams &);
+       static void string2params(std::string const &, InsetNoteParams &);
 
 private:
        ///
-       string const name_;
+       std::string const name_;
        ///
        InsetNote & inset_;
 };
index 0a21e6763d30fab07a4c49e4a450a16c94a6a763..94da626e58d9e55a3f50c3b5ee8d930d38e69255 100644 (file)
@@ -17,6 +17,8 @@
 #include "LColor.h"
 #include "paragraph.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index b00cec4bf6e7b683309504c086afab53fb83fe4e..65a482e50f7b7b892dbaf0d4ceb570eb07479bc9 100644 (file)
@@ -32,7 +32,7 @@ public:
        /// code of the inset
        InsetOld::Code lyxCode() const { return InsetOld::OPTARG_CODE; }
        /// return an message upon editing
-       string const editMessage() const;
+       std::string const editMessage() const;
 
        /// Standard LaTeX output -- short-circuited
        int latex(Buffer const &, std::ostream &,
index ac80199bfe64d4631ca1bca7457f0a2095844d6a..7bd95b97c90462010e1ec4dfeed88ae0352e7fa6 100644 (file)
 
 #include "support/lstrings.h"
 
+
 using lyx::support::prefixIs;
 
 using std::endl;
-
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index e7068f10dadb946ee3f43609cdd9f43544a2e9a0..57bc9db7b29d97ef3188f56bb4dc7e36089d7109 100644 (file)
@@ -64,7 +64,7 @@ public:
          \end{itemize}
          */
        explicit
-       InsetQuotes(string const & str = "eld");
+       InsetQuotes(std::string const & str = "eld");
        /// Create the right quote inset after character c
        InsetQuotes(char c, BufferParams const & params);
        ///
@@ -110,8 +110,8 @@ private:
         */
        InsetQuotes(quote_language l, quote_side s, quote_times t);
        ///
-       void parseString(string const &);
+       void parseString(std::string const &);
        ///
-       string const dispString(Language const *) const;
+       std::string const dispString(Language const *) const;
 };
 #endif
index e1262f00f8f7052813cd76f77d53c00947c6a039..d2c1dfacac7f0b40888925b04005f629bc0217ae 100644 (file)
 
 #include "support/lstrings.h"
 
+
 using lyx::support::escape;
 
+using std::string;
 using std::ostream;
 
 
index 69dff7cac5392c9e45380e501e328ec86f4b1c5c..f0a641c4b2a45061e6c95ca910c52ee8e646d84b 100644 (file)
@@ -23,17 +23,17 @@ class InsetRef : public InsetCommand {
 public:
        struct type_info {
                ///
-               string latex_name;
+               std::string latex_name;
                ///
-               string gui_name;
+               std::string gui_name;
                ///
-               string short_gui_name;
+               std::string short_gui_name;
        };
        static type_info types[];
        ///
-       static int getType(string const & name);
+       static int getType(std::string const & name);
        ///
-       static string const & getName(int type);
+       static std::string const & getName(int type);
 
 
        InsetRef(InsetCommandParams const &, Buffer const &);
@@ -48,7 +48,7 @@ public:
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
index 736758f8801d3771eff469b8b4903dbb3818c2c6..5382ed330d4e5e8379b9b54a6b94179df4d9ad44 100644 (file)
@@ -24,6 +24,8 @@
 #include "frontends/font_metrics.h"
 #include "frontends/Painter.h"
 
+
+using std::string;
 using std::max;
 using std::auto_ptr;
 using std::ostream;
index c164c447176e9533b53967b105de67d37edf539d..01784e6be1c2ef08e8463ae80cf0976438195af5 100644 (file)
@@ -23,6 +23,8 @@
 #include "frontends/font_metrics.h"
 #include "frontends/Painter.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index 78b2e11a158d1ea9ab71a145ffe377bf254daa1d..ab4f7ef0f415c6c7ea1fba94be68c07ea9576897 100644 (file)
@@ -45,7 +45,7 @@ using lyx::support::strToInt;
 using std::endl;
 using std::max;
 using std::swap;
-
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
index 490885c01b9e91f4fee5061dd31fa6496ed1a26b..3a5629a41aa4192a269b2309e27ef6f1cd6e55a2 100644 (file)
@@ -47,7 +47,6 @@
 
 #include "inset.h"
 #include "tabular.h"
-#include "support/std_string.h"
 #include "frontends/mouse_state.h"
 
 class FuncStatus;
@@ -77,7 +76,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        //
        void insetUnlock(BufferView *);
        ///
@@ -125,10 +124,10 @@ public:
        /// Get the absolute document x,y of the cursor
        virtual void getCursor(BufferView &, int &, int &) const;
        ///
-       bool tabularFeatures(BufferView * bv, string const & what);
+       bool tabularFeatures(BufferView * bv, std::string const & what);
        ///
        void tabularFeatures(BufferView * bv, LyXTabular::Feature feature,
-                            string const & val = string());
+                            std::string const & val = std::string());
        ///
        int getActCell() const { return actcell; }
        ///
@@ -144,9 +143,9 @@ public:
        ///
        bool showInsetDialog(BufferView *) const;
        ///
-       FuncStatus getStatus(string const & argument) const;
+       FuncStatus getStatus(std::string const & argument) const;
        /// Appends \c list with all labels found within this inset.
-       void getLabelList(Buffer const &, std::vector<string> & list) const;
+       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
        int scroll(bool recursive=true) const;
        ///
@@ -176,9 +175,9 @@ public:
        /// find next change
        bool nextChange(BufferView *, lyx::pos_type & length);
        ///
-       bool searchForward(BufferView *, string const &,
+       bool searchForward(BufferView *, std::string const &,
                           bool = true, bool = false);
-       bool searchBackward(BufferView *, string const &,
+       bool searchBackward(BufferView *, std::string const &,
                            bool = true, bool = false);
 
        // this should return true if we have a "normal" cell, otherwise true.
@@ -282,7 +281,7 @@ private:
        ///
        WordLangTuple selectNextWordInt(BufferView *, float & value) const;
        ///
-       bool insertAsciiString(BufferView *, string const & buf, bool usePaste);
+       bool insertAsciiString(BufferView *, std::string const & buf, bool usePaste);
 
        //
        // Private structures and variables
@@ -335,20 +334,20 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        /// Returns the active cell if successful, else -1.
-       static int string2params(string const &, InsetTabular &);
+       static int string2params(std::string const &, InsetTabular &);
        ///
-       static string const params2string(InsetTabular const &);
+       static std::string const params2string(InsetTabular const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetTabular & inset_;
 };
 
-string const featureAsString(LyXTabular::Feature feature);
+std::string const featureAsString(LyXTabular::Feature feature);
 
 #endif
index 4183f1ddbca7c2263b6f45955ddb9509f3edc43a..0cba30dba00173528802411e519b887d368bf6de 100644 (file)
@@ -57,7 +57,7 @@ using lyx::support::strToUnsignedInt;
 using std::endl;
 using std::for_each;
 using std::max;
-
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 using std::vector;
index 9edd348baa0711b3f94c3fe5e60fbcf95d621cf1..26b601c242483505cfd7170d15d3f9bc7fae0e0e 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "frontends/mouse_state.h"
 
-#include "support/std_string.h"
 
 class Buffer;
 class BufferParams;
@@ -70,7 +69,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        bool isTextInset() const { return true; }
        ///
@@ -120,7 +119,7 @@ public:
        ///
        void writeParagraphData(Buffer const &, std::ostream &) const;
        ///
-       void setText(string const &, LyXFont const &);
+       void setText(std::string const &, LyXFont const &);
        ///
        void setAutoBreakRows(bool);
        ///
@@ -140,7 +139,7 @@ public:
        ///
        bool showInsetDialog(BufferView *) const;
        /// Appends \c list with all labels found within this inset.
-       void getLabelList(Buffer const &, std::vector<string> & list) const;
+       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
        int scroll(bool recursive = true) const;
        ///
@@ -181,10 +180,10 @@ public:
        bool nextChange(BufferView *, lyx::pos_type & length);
 
        ///
-       bool searchForward(BufferView *, string const &,
+       bool searchForward(BufferView *, std::string const &,
                           bool = true, bool = false);
        ///
-       bool searchBackward(BufferView *, string const &,
+       bool searchBackward(BufferView *, std::string const &,
                            bool = true, bool = false);
        ///
        bool checkInsertChar(LyXFont &);
index abd689b255282d7c9cbcd9b06a3fcaa86d6a1440..71ecf1b747adff74d6ddc1036cf8ec6a82d95762 100644 (file)
@@ -16,6 +16,8 @@
 #include "metricsinfo.h"
 #include "toc.h"
 
+
+using std::string;
 using std::ostream;
 
 
index b53a5501815c14a0092462c019a73ac5bbd4cab2..b41bc6110bcd60867d6cc4eb1ff251102773858a 100644 (file)
@@ -37,7 +37,7 @@ public:
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
index 2bc9ac98ba5bb0ff0e6b8846c3ac7d18db5bfb1a..51292b918ab8a8895c4164c8bbefaa8373246887 100644 (file)
 
 #include "support/lstrings.h"
 
+
 using lyx::support::subst;
 
+using std::string;
 using std::ostream;
 
 
index 94a6e446cd2a438c88d737ca67fbaf491e1a9754..af6bbf2e7d7c2b24822153a48f240c66b8b96dd4 100644 (file)
@@ -37,7 +37,7 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       string const getScreenLabel(Buffer const &) const;
+       std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
index 0225b6e6c471c4fc997c6189e97d59c1b43334a3..9be7eb2e91296ba127894a372e79ca1761346fa9 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::endl;
 using std::auto_ptr;
 using std::istringstream;
index 4e78a2d634ec368ad643a2b068af0231a25781de..2350b9b5d78da2ff203bdbeee25c6fbc3d936d28 100644 (file)
@@ -25,9 +25,9 @@ struct InsetWrapParams {
        void read(LyXLex &);
 
        ///
-       string type;
+       std::string type;
        ///
-       string placement;
+       std::string placement;
        ///
        LyXLength width;
 };
@@ -38,7 +38,7 @@ struct InsetWrapParams {
 class InsetWrap : public InsetCollapsable {
 public:
        ///
-       InsetWrap(BufferParams const &, string const &);
+       InsetWrap(BufferParams const &, std::string const &);
        ///
        ~InsetWrap();
        ///
@@ -59,7 +59,7 @@ public:
        ///
        int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        bool insetAllowed(InsetOld::Code) const;
        ///
@@ -87,16 +87,16 @@ public:
        ///
        virtual InsetBase & inset() const { return inset_; }
        ///
-       virtual string const & name() const { return name_; }
+       virtual std::string const & name() const { return name_; }
        ///
-       virtual string const inset2string(Buffer const &) const;
+       virtual std::string const inset2string(Buffer const &) const;
        ///
-       static void string2params(string const &, InsetWrapParams &);
+       static void string2params(std::string const &, InsetWrapParams &);
        ///
-       static string const params2string(InsetWrapParams const &);
+       static std::string const params2string(InsetWrapParams const &);
 private:
        ///
-       static string const name_;
+       static std::string const name_;
        ///
        InsetWrap & inset_;
 };
index 7a927220d5be18ab03e1520c7ee3791c6b8e2ae5..3e7622df20b663ba230d0b71541284160772818a 100644 (file)
@@ -12,8 +12,7 @@
 #ifndef MAILINSET_H
 #define MAILINSET_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 
 class InsetBase;
@@ -32,13 +31,13 @@ public:
        ///
        void hideDialog() const;
        ///
-       virtual string const inset2string(Buffer const &) const = 0;
+       virtual std::string const inset2string(Buffer const &) const = 0;
 
 protected:
        ///
        virtual InsetBase & inset() const = 0;
        ///
-       virtual string const & name() const = 0;
+       virtual std::string const & name() const = 0;
 };
 
 
index dc4cec60438418ce043060a7c027d478a241ad2a..447163a8cc7a9a7375f5d5502fe6268a04224cc2 100644 (file)
 
 #include "support/filetools.h"
 
+
 using lyx::support::AbsolutePath;
 using lyx::support::OnlyFilename;
 
+using std::string;
+
 
 RenderInset::RenderInset()
 {}
index c251f88cc39ba4ff5d079e93824057fca701ec60..fa3a2a37f91bc913e7737a0f7d898df420fc55c5 100644 (file)
@@ -61,7 +61,7 @@ public:
        virtual RenderInset * clone() const;
 
        /// This should provide the text for the button
-       void update(string const &, bool editable);
+       void update(std::string const &, bool editable);
 
        /// compute the size of the object returned in dim
        virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
@@ -75,7 +75,7 @@ public:
 
 private:
        /// The stored data.
-       string text_;
+       std::string text_;
        bool editable_;
        Box button_box_;
 };
@@ -111,7 +111,7 @@ private:
        GraphicRenderer & operator=(GraphicRenderer const &);
 
        /// The message to display instead of the graphic itself.
-       string const statusMessage() const;
+       std::string const statusMessage() const;
 
        /// Is the image ready to draw, or should we display a message instead?
        bool readyToDisplay() const;
index 9b14c4798f65619ab58e56c9fe9097e4416264f0..6e229995f64c1c851b9ba700fabc8bdf72e4e550 100644 (file)
 
 #include "support/lstrings.h"
 
+
 using lyx::support::strToDbl;
 using lyx::support::strToInt;
 
+using std::string;
+
 
 // some stuff for inset locking
 
index c0a735cd9c3018a08607e65f594c2920e23676e0..7dfe518d8613c61e83205ceb862d46091f0bcf5c 100644 (file)
@@ -111,10 +111,10 @@ public:
        ///
        // needed for search/replace functionality
        ///
-       virtual bool searchForward(BufferView *, string const &,
+       virtual bool searchForward(BufferView *, std::string const &,
                                   bool = true, bool = false);
        ///
-       virtual bool searchBackward(BufferView *, string const &,
+       virtual bool searchBackward(BufferView *, std::string const &,
                                    bool = true, bool = false);
 
 protected:
index b4ca4393a7b537ec9143127bbc3190606abfa5bd..fe7ae6a89dd1ec13a02f7f027783861bfa80dc68 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "trans_mgr.h"
 
-#include "support/std_string.h"
-
 
 /**
  * This class is used for managing keymaps
@@ -59,9 +57,9 @@ private:
        /// is key mapping enabled ?
        bool keymapon;
        /// the primary language keymap
-       string & prim_lang;
+       std::string & prim_lang;
        /// the secondary language keymap
-       string & sec_lang;
+       std::string & sec_lang;
        /// the translation manager
        TransManager trans;
 };
index acf8c6a404397e65ed409ae98a4c27ef1c8f97c4..f1abc99bf013fc419307554498857b245ad9f765 100644 (file)
@@ -38,6 +38,7 @@ using std::strpbrk;
 
 using std::endl;
 using std::max;
+using std::string;
 
 
 namespace {
index d8a3c9ca138951a08b45ef8fe2b1d53d153ae287..ae14e337d4916b988380f6814d114919e49956c2 100644 (file)
@@ -29,7 +29,7 @@ class ForkedProcess;
 /// i/a spell process-based spellchecker
 class ISpell : public SpellBase {
 public:
-       ISpell(BufferParams const & params, string const & lang);
+       ISpell(BufferParams const & params, std::string const & lang);
 
        ~ISpell();
 
@@ -46,10 +46,10 @@ public:
        virtual void accept(WordLangTuple const & word);
 
        /// return the next near miss after a MISSED result
-       virtual string const nextMiss();
+       virtual std::string const nextMiss();
 
        /// give an error message on messy exit
-       virtual string const error();
+       virtual std::string const error();
 
 private:
        /// read some data. Returns true on an error. Sets err_read
@@ -72,7 +72,7 @@ private:
        char buf[BUFSIZ];
 
        /// spell error
-       string error_;
+       std::string error_;
 
        boost::scoped_ptr<lyx::support::ForkedProcess> child_;
 
index 1d7839cf27d051ad7d692023b46d657b0ca950a5..1278af359d46ce00e44e2787901c95846d7a3d99 100644 (file)
 
 #include "support/filetools.h"
 
-using std::endl;
 using lyx::support::i18nLibFileSearch;
 
+using std::endl;
+using std::string;
+
 
 string const kb_keymap::printKeysym(LyXKeySymPtr key,
                                    key_modifier::state mod)
index 40c1b3847cfd760cb757fb1666e55b67f83ae0fa..a9da168d31c7e597e9bd4e0d90f78e2c472eff62 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include "support/std_string.h"
 #include <vector>
 
 class kb_sequence;
@@ -35,13 +34,13 @@ public:
         * occurs.
         * See kb_sequence::parse for the syntax of the seq string
         */
-       string::size_type bind(string const & seq, FuncRequest const & func);
+       std::string::size_type bind(std::string const & seq, FuncRequest const & func);
 
        // Parse a bind file
-       bool read(string const & bind_file);
+       bool read(std::string const & bind_file);
 
        /// print all available keysyms
-       string const print() const;
+       std::string const print() const;
 
        ///
        typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;
@@ -57,15 +56,15 @@ public:
               key_modifier::state mod, kb_sequence * seq) const;
 
        /// Given an action, find all keybindings.
-       string const findbinding(FuncRequest const & func,
-                                string const & prefix = string()) const;
+       std::string const findbinding(FuncRequest const & func,
+                                std::string const & prefix = std::string()) const;
 
        /**
         * Returns a string of the given keysym, with modifiers.
         * @param key the key as a keysym
         * @param mod the modifiers
         */
-       static string const printKeysym(LyXKeySymPtr key,
+       static std::string const printKeysym(LyXKeySymPtr key,
                                        key_modifier::state mod);
 
        typedef std::pair<key_modifier::state, key_modifier::state> modifier_pair;
@@ -94,7 +93,7 @@ private:
                    unsigned int r = 0);
 
        ///  Returns a string of the given key
-       string const printKey(kb_key const & key) const;
+       std::string const printKey(kb_key const & key) const;
 
        /// is the table empty ?
        bool empty() const {
index 2cae7938db17f0f892c18f35896030cc78a2c15a..46aa4b8e869a456409bd8a400b4016ea3d009d76 100644 (file)
@@ -22,6 +22,7 @@
 #include "frontends/LyXKeySymFactory.h"
 
 using std::make_pair;
+using std::string;
 
 
 FuncRequest const &
index 5bb5139862f93bddd4650c5d3a6ee2fbe651199d..3d894a1ec31c54d1fe602cb7db77656a7d757095 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include "support/std_string.h"
+#include <string>
 #include <vector>
 
 class kb_keymap;
@@ -59,19 +59,19 @@ public:
         * Prefixes can also be ignored by using the Tilde "~"
         * f.ex.: "~S-Space".
         */
-       string::size_type parse(string const & s);
+       std::string::size_type parse(std::string const & s);
 
        /**
         * Return the current sequence as a string.
         * @see parse()
         */
-       string const print() const;
+       std::string const print() const;
 
        /**
         * Return the current sequence and available options as
         * a string. No options are added if no curmap kb map exists.
         */
-       string const printOptions() const;
+       std::string const printOptions() const;
 
        /// Mark the sequence as deleted.
        void mark_deleted();
index c960edbca1e0be02a5f531cce9c9e715a373d46f..c811aac9a9c5bfe41897eb6425d4f1ec54c4f079 100644 (file)
@@ -20,6 +20,8 @@
 #include "lyxrc.h"
 
 using std::endl;
+using std::string;
+
 
 Languages languages;
 Language const * english_language;
index 1293778c588349d0413490838afe36f66693ad1f..b0eeff259dd3c62a8ee9d2007b785d920051f2bd 100644 (file)
@@ -16,7 +16,8 @@
 #define LANGUAGE_H
 
 #include <map>
-#include "support/std_string.h"
+#include <string>
+
 
 class Encoding;
 
@@ -26,22 +27,22 @@ public:
        ///
        Language() : RightToLeft_(false) {}
        ///
-       Language(string const & l, string const & b, string const & d,
-                bool rtl, Encoding const * e, string const & c,
-                string const & o)
+       Language(std::string const & l, std::string const & b, std::string const & d,
+                bool rtl, Encoding const * e, std::string const & c,
+                std::string const & o)
                : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
                  encoding_(e), code_(c), latex_options_(o)
                {}
        ///
-       string const & lang() const {
+       std::string const & lang() const {
                return lang_;
        }
        ///
-       string const & babel() const {
+       std::string const & babel() const {
                return babel_;
        }
        ///
-       string const & display() const {
+       std::string const & display() const {
                return display_;
        }
        ///
@@ -53,43 +54,43 @@ public:
                return encoding_;
        }
        ///
-       string const & code() const {
+       std::string const & code() const {
                return code_;
        }
        ///
-       string const & latex_options() const {
+       std::string const & latex_options() const {
                return latex_options_;
        }
 private:
        ///
-       string lang_;
+       std::string lang_;
        ///
-       string babel_;
+       std::string babel_;
        ///
-       string display_;
+       std::string display_;
        ///
        bool RightToLeft_;
        ///
        Encoding const * encoding_;
        ///
-       string code_;
+       std::string code_;
        ///
-       string latex_options_;
+       std::string latex_options_;
 };
 
 class Languages
 {
 public:
        ///
-       typedef std::map<string, Language> LanguageList;
+       typedef std::map<std::string, Language> LanguageList;
        ///
        typedef LanguageList::const_iterator const_iterator;
        ///
        typedef LanguageList::size_type size_type;
        ///
-       void read(string const & filename);
+       void read(std::string const & filename);
        ///
-       Language const * getLanguage(string const & language) const;
+       Language const * getLanguage(std::string const & language) const;
        ///
        size_type size() const {
                return languagelist.size();
index 2598077bf8436016c989120ff4e937868f175483..ef200b2c9d992c2f9941e77d107082edd069d337 100644 (file)
@@ -25,7 +25,7 @@ using std::copy;
 using std::endl;
 using std::find;
 using std::getline;
-
+using std::string;
 using std::ifstream;
 using std::ofstream;
 using std::ostream_iterator;
index a2faf5486ce40a758766abf2e7e9aa708011a57d..d663e14c0c90fbe6eef01f9fc4cda5f3424963ee 100644 (file)
 #ifndef LASTFILES_H
 #define LASTFILES_H
 
+#include <boost/utility.hpp>
+
 #include <deque>
 
-#include "support/std_string.h"
-#include <boost/utility.hpp>
 
 /** The latest documents loaded.
     This class takes care of the last .lyx files used by the LyX user. It
@@ -26,7 +26,7 @@
 class LastFiles : boost::noncopyable {
 public:
        ///
-       typedef std::deque<string> Files;
+       typedef std::deque<std::string> Files;
 
        ///
        typedef Files::const_iterator const_iterator;
@@ -37,7 +37,7 @@ public:
            @param num number of files to remember.
        */
        explicit
-       LastFiles(string const & file,
+       LastFiles(std::string const & file,
                  bool dostat = true, unsigned int num = 4);
 
        /** Insert #file# into the list.
@@ -47,18 +47,18 @@ public:
            file in the list is popped from the end.
            @param file the file to insert in the list.
        */
-       void newFile(string const & file);
+       void newFile(std::string const & file);
        /** Writes the lastfiles table to disk.
            Writes one file on each line, this way we can at least have
            some special chars (e.g. space), but newline in filenames
            are thus not allowed.
            @param file the file we write the lastfiles list to.
        */
-       void writeFile(string const & file) const;
+       void writeFile(std::string const & file) const;
        /** Return file #n# in the lastfiles list.
            @param n number in the list to get
        */
-       string const operator[](unsigned int n) const;
+       std::string const operator[](unsigned int n) const;
        /// Iterator to the beginning of the list.
        Files::const_iterator begin() const { return files.begin(); }
        /// Iterator to the end of the list.
@@ -95,7 +95,7 @@ private:
            LastFiles has been initialized with #dostat = false#.
            @param file the file containing the lastfiles.
        */
-       void readFile(string const & file);
+       void readFile(std::string const & file);
        /** Used by the constructor to set the number of stored last files.
            @param num the number of lastfiles to set.
        */
index 352923f5165a1128e94c4a00d7d3f8c72bc5b690..887302296de82b03238362a48eb46d5433fd198c 100644 (file)
@@ -16,6 +16,8 @@
 
 #include "gettext.h"
 
+using std::string;
+
 
 int const num_units = LyXLength::UNIT_NONE;
 
index b32271c20d8062693c394846217816b3eb79d284..23d7bf69f703a94aa45fbeec0eb6e34dd439237f 100644 (file)
@@ -16,7 +16,7 @@
 #define LENGTH_COMMON_H
 
 #include "lyxlength.h"
-#include "support/std_string.h"
+
 
 /// the number of units possible
 extern int const num_units;
@@ -31,7 +31,7 @@ extern char const * unit_name_gui[];
 extern char const * unit_name_ltx[];
 
 /// return the unit given a string representation such as "cm"
-LyXLength::UNIT unitFromString(string const & data);
+LyXLength::UNIT unitFromString(std::string const & data);
 
 
 #endif // LENGTH_COMMON_H
index 216f3aca041ac02dca0e2b60064aeb1c53679c87..98201039804174ba5cf87290ce668f093c58cf23 100644 (file)
@@ -72,7 +72,7 @@ using std::back_inserter;
 using std::copy;
 using std::endl;
 using std::make_pair;
-
+using std::string;
 using std::ifstream;
 using std::ios;
 using std::istream_iterator;
index 8bd7bc0060e17212f6c19fc061bef3fd88d82cd5..949f695295cc336553847012e6c252b133e6bf55 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYX_CB_H
 #define LYX_CB_H
 
-#include "support/std_string.h"
+#include <string>
 
 class Buffer;
 class BufferView;
@@ -23,19 +23,19 @@ extern bool quitting;
 ///
 bool MenuWrite(Buffer * buffer);
 /// write the given file, or ask if no name given
-bool WriteAs(Buffer * buffer, string const & filename = string());
+bool WriteAs(Buffer * buffer, std::string const & filename = std::string());
 ///
 void QuitLyX();
 ///
 void AutoSave(BufferView * bv);
 ///
-void NewFile(BufferView * bv, string const & filename);
+void NewFile(BufferView * bv, std::string const & filename);
 ///
-void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
+void InsertAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
 ///
-string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagraph);
+std::string getContentsOfAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
 ///
-string const getPossibleLabel(BufferView const & bv);
+std::string const getPossibleLabel(BufferView const & bv);
 ///
 void Reconfigure(BufferView * bv);
 #endif
index a24e01a3bd92d076d0b285de3106bd70981af340..f9b845e70e8852e5461f0d74c17a96600f44d387 100644 (file)
@@ -73,7 +73,7 @@ using lyx::support::user_lyxdir;
 namespace os = lyx::support::os;
 
 using std::endl;
-
+using std::string;
 using std::vector;
 
 #ifndef CXX_GLOBAL_CSTD
index e8a8d6874316a819e96675fa8fb623a3edce7cb5..c9cdf781bf96875eccc1c651b02a82a508131a41 100644 (file)
@@ -17,7 +17,7 @@
 #include <boost/scoped_ptr.hpp>
 #include <boost/utility.hpp>
 
-#include "support/std_string.h"
+#include <string>
 
 
 class ErrorItem;
@@ -49,13 +49,13 @@ private:
        /// check, set up and configure the user dir if necessary
        void queryUserLyXDir(bool explicit_userdir);
        /// read lyxrc/preferences
-       void readRcFile(string const & name);
+       void readRcFile(std::string const & name);
        /// read the given ui (menu/toolbar) file
-       void readUIFile(string const & name);
+       void readUIFile(std::string const & name);
        /// read the given languages file
-       void readLanguagesFile(string const & name);
+       void readLanguagesFile(std::string const & name);
        /// read the given encodings file
-       void readEncodingsFile(string const & name);
+       void readEncodingsFile(std::string const & name);
        /// parsing of non-gui LyX options. Returns true if gui
        bool easyParse(int & argc, char * argv[]);
        /// shows up a parsing error on screen
@@ -64,7 +64,7 @@ private:
        /// has this user started lyx for the first time?
        bool first_start;
        /// the parsed command line batch command if any
-       string batch_command;
+       std::string batch_command;
 };
 
 #endif // LYX_MAIN_H
index 7002698232fd4b9fab417a6d642765e7e02cb5ba..a4a7308aacf3bd532cb5ed07bd28cb72b8c90644 100644 (file)
@@ -12,6 +12,9 @@
 
 #include "lyx_sty.h"
 
+using std::string;
+
+
 //\NeedsTeXFormat{LaTeX2e}
 //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)]
 //\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.}
index 892332ce6816529fd604fd0bed0f3e6997fd7744..89655d86b765c8f1305def86255cce4cc5b34c17 100644 (file)
 #ifndef LYX_STY_H
 #define LYX_STY_H
 
-#include "support/std_string.h"
+#include <string>
 
 ///
-extern string const lyx_def;
+extern std::string const lyx_def;
 ///
-extern string const lyxline_def;
+extern std::string const lyxline_def;
 ///
-extern string const noun_def;
+extern std::string const noun_def;
 ///
-extern string const lyxarrow_def;
+extern std::string const lyxarrow_def;
 ///
-extern string const quotedblbase_def;
+extern std::string const quotedblbase_def;
 ///
-extern string const quotesinglbase_def;
+extern std::string const quotesinglbase_def;
 ///
-extern string const guillemotleft_def;
+extern std::string const guillemotleft_def;
 ///
-extern string const guillemotright_def;
+extern std::string const guillemotright_def;
 ///
-extern string const guilsinglleft_def;
+extern std::string const guilsinglleft_def;
 ///
-extern string const guilsinglright_def;
+extern std::string const guilsinglright_def;
 ///
-extern string const paragraphleftindent_def;
+extern std::string const paragraphleftindent_def;
 ///
-extern string const floatingfootnote_def;
+extern std::string const floatingfootnote_def;
 ///
-extern string const minipageindent_def;
+extern std::string const minipageindent_def;
 ///
-extern string const boldsymbol_def;
+extern std::string const boldsymbol_def;
 ///
-extern string const binom_def;
+extern std::string const binom_def;
 ///
-extern string const mathcircumflex_def;
+extern std::string const mathcircumflex_def;
 ///
-extern string const tabularnewline_def;
+extern std::string const tabularnewline_def;
 ///
-extern string const lyxgreyedout_def;
+extern std::string const lyxgreyedout_def;
 
 #endif // LYX_STY_H
index bea21a291ab02e064af85b18c23682026ed27835..4b52dad0d93ec2d235c454fe77c22b9a06378c7a 100644 (file)
@@ -29,6 +29,8 @@
 using lyx::support::lowercase;
 using lyx::support::uppercase;
 
+using std::string;
+
 
 namespace lyx {
 namespace find {
index 1bf5fcbd9601082ae5c5b78b69ac0648ca0bd614..93b167efec7666c454c4dcb4775e84a5e2e315f1 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef LYXFIND_H
 #define LYXFIND_H
 
-#include "support/std_string.h"
 #include "support/types.h"
 
 class BufferView;
@@ -34,7 +33,7 @@ enum SearchResult {
 
 
 int replace(BufferView * bv,
-              string const &, string const &,
+              std::string const &, std::string const &,
               bool, bool = true, bool = false,
               bool = false, bool = false);
 
@@ -44,7 +43,7 @@ int replace(BufferView * bv,
  * we want to go. This does also update the screen.
  */
 bool find(BufferView *,
-            string const & searchstr, bool forward,
+            std::string const & searchstr, bool forward,
             bool casesens = true, bool matchwrd = false);
 
 /**
@@ -56,7 +55,7 @@ bool find(BufferView *,
  */
 
 SearchResult find(BufferView *, LyXText * text,
-                    string const & searchstr, bool forward,
+                    std::string const & searchstr, bool forward,
                     bool casesens = true, bool matchwrd = false);
 
 /// find the next change in the buffer
index 18bdaea92cb1076381c0f9a535fd8bdf32b2ff77..2c3b3c25d2fec7853e04137e726b6448823503a5 100644 (file)
@@ -34,7 +34,7 @@ using lyx::support::rtrim;
 using lyx::support::subst;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 using std::ostringstream;
 
index 1706ea2ab0409da4163aed511626391ae2ad557a..65f7aeda8183c08d96e1435d1ff5bb1f3142b427 100644 (file)
@@ -15,7 +15,6 @@
 #ifndef LYXFONT_H
 #define LYXFONT_H
 
-#include "support/std_string.h"
 #include <iosfwd>
 
 class LColor_color;
@@ -233,25 +232,25 @@ public:
        void setLanguage(Language const * l);
 
        /// Set family after LyX text format
-       LyXFont & setLyXFamily(string const &);
+       LyXFont & setLyXFamily(std::string const &);
 
        /// Set series after LyX text format
-       LyXFont & setLyXSeries(string const &);
+       LyXFont & setLyXSeries(std::string const &);
 
        /// Set shape after LyX text format
-       LyXFont & setLyXShape(string const &);
+       LyXFont & setLyXShape(std::string const &);
 
        /// Set size after LyX text format
-       LyXFont & setLyXSize(string const &);
+       LyXFont & setLyXSize(std::string const &);
 
        /// Returns misc flag after LyX text format
-       LyXFont::FONT_MISC_STATE setLyXMisc(string const &);
+       LyXFont::FONT_MISC_STATE setLyXMisc(std::string const &);
 
        /// Sets color after LyX text format
-       LyXFont & setLyXColor(string const &);
+       LyXFont & setLyXColor(std::string const &);
 
        /// Returns size of font in LaTeX text notation
-       string const latexSize() const;
+       std::string const latexSize() const;
 
        /** Updates font settings according to request.
            If an attribute is IGNORE, the attribute is left as it is.
@@ -297,7 +296,7 @@ public:
                                 LyXFont const & next) const;
 
        /// Build GUI description of font state
-       string const stateText(BufferParams * params) const;
+       std::string const stateText(BufferParams * params) const;
 
        ///
        LColor_color realColor() const;
index 8dcf405e94a9caa1935d0d8c6d7446c6f638216b..abe1b46809e77973b076d483f7deda2144be55d9 100644 (file)
@@ -107,7 +107,7 @@ using lyx::support::user_lyxdir;
 
 using std::endl;
 using std::make_pair;
-
+using std::string;
 using std::istringstream;
 
 
index e71f0ef33f5bfad84b9616f929b03fe058ec1476..21d34fda034c78fe045db3967a8b3f2178f8cb53 100644 (file)
@@ -21,7 +21,6 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/signals/trackable.hpp>
 
-#include "support/std_string.h"
 
 class BufferView;
 class FuncRequest;
@@ -47,10 +46,10 @@ public:
        void dispatch(FuncRequest const &, bool verbose = false);
 
        /// Dispatch via a string argument
-       void dispatch(string const & s, bool verbose = false);
+       void dispatch(std::string const & s, bool verbose = false);
 
        /// return the status bar state string
-       string const view_status_message();
+       std::string const view_status_message();
 
        ///
        typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;
@@ -66,15 +65,15 @@ public:
        /// True if lyxfunc reports an error
        bool errorStat() const { return errorstat; }
        /// Buffer to store result messages
-       void setMessage(string const & m) const;
+       void setMessage(std::string const & m) const;
        /// Buffer to store result messages
-       void setErrorMessage(string const &) const;
+       void setErrorMessage(std::string const &) const;
        /// Buffer to store result messages from getStatus
-       void setStatusMessage(string const &) const;
+       void setStatusMessage(std::string const &) const;
        /// Buffer to store result messages
-       string const getMessage() const { return dispatch_buffer; }
+       std::string const getMessage() const { return dispatch_buffer; }
        /// Buffer to store result messages
-       string const getStatusMessage() const { return status_buffer; }
+       std::string const getStatusMessage() const { return status_buffer; }
        /// Handle a accented char key sequence
        void handleKeyFunc(kb_action action);
 
@@ -104,24 +103,24 @@ private:
        /** Buffer to store messages and result data. Is there a
            good reason to have this one as static in Dispatch? (Ale)
        */
-       mutable string dispatch_buffer;
+       mutable std::string dispatch_buffer;
        /** Buffer to store messages and result data from getStatus
        */
-       mutable string status_buffer;
+       mutable std::string status_buffer;
 
        /// send a post-dispatch status message
-       void sendDispatchMessage(string const & msg, FuncRequest const & ev, bool verbose);
+       void sendDispatchMessage(std::string const & msg, FuncRequest const & ev, bool verbose);
 
        // I think the following should be moved to BufferView. (Asger)
 
        ///
-       void menuNew(string const & argument, bool fromTemplate);
+       void menuNew(std::string const & argument, bool fromTemplate);
 
        ///
-       void open(string const &);
+       void open(std::string const &);
 
        ///
-       void doImport(string const &);
+       void doImport(std::string const &);
 
        ///
        void closeBuffer();
index 8de501294d0a4feca7ff5f818dbec85d8f7d18d5..c38c814d22c5d957143f008b350ab33d62fe48aa 100644 (file)
@@ -18,6 +18,7 @@
 #include "support/std_sstream.h"
 
 using std::ostringstream;
+using std::string;
 
 
 LyXGlueLength::LyXGlueLength(LyXLength const & len)
index 31adcf6213f36ef37c7715f73a5ceb33d18b91eb..6c1ea63cbb3133f194510848a1f1a10f0f4a4dd9 100644 (file)
@@ -16,8 +16,6 @@
 
 #include "lyxlength.h"
 
-#include "support/std_string.h"
-
 
 class LyXGlueLength {
 public:
@@ -36,7 +34,7 @@ public:
          1.2 cm  //  4mm +2pt  //  2cm -4mm +2mm  //  4+0.1-0.2cm
          The traditional Latex format is also accepted, like
          4cm plus 10pt minus 10pt */
-       explicit LyXGlueLength(string const & data);
+       explicit LyXGlueLength(std::string const & data);
 
        ///
        LyXLength const & len() const;
@@ -47,11 +45,11 @@ public:
 
 
        /// conversion
-       string const asString() const;
+       std::string const asString() const;
        ///
-       string const asLatexString() const;
+       std::string const asLatexString() const;
 
-       friend bool isValidGlueLength(string const & data,
+       friend bool isValidGlueLength(std::string const & data,
                                      LyXGlueLength* result);
 
 private:
@@ -69,6 +67,6 @@ bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2);
 bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2);
 /** If "data" is valid, the length represented by it is
     stored into "result", if that is not 0. */
-bool isValidGlueLength(string const & data, LyXGlueLength * result = 0);
+bool isValidGlueLength(std::string const & data, LyXGlueLength * result = 0);
 
 #endif // LYXGLUELENGTH_H
index c785dc19a4c30c0ca900c8aa4c0af7bb8757199f..168997c78d8f879534e8d0a7315527e184f466e8 100644 (file)
@@ -23,6 +23,7 @@ using lyx::support::subst;
 using lyx::support::trim;
 
 using std::endl;
+using std::string;
 
 
 //  The order of the LayoutTags enum is no more important. [asierra300396]
@@ -450,7 +451,7 @@ bool LyXLayout::Read(LyXLex & lexrc, LyXTextClass const & tclass)
        }
        lexrc.popTable();
 
-       if (labelstring_appendix_.empty())      
+       if (labelstring_appendix_.empty())
                labelstring_appendix_ = labelstring_;
        return error;
 }
index f2a87f895f0c7fef2b85cbe51bd52422d5baa84f..adc64f7135ce94005646cb323323c7a783c08ea0 100644 (file)
@@ -17,7 +17,8 @@
 #include "lyxfont.h"
 #include "layout.h"
 #include "Spacing.h"
-#include "support/std_string.h"
+
+#include <string>
 
 class LyXLex;
 class LyXTextClass;
@@ -44,25 +45,25 @@ public:
        ///
        void readSpacing(LyXLex &);
        ///
-       string const & name() const;
+       std::string const & name() const;
        ///
-       void setName(string const & n);
+       void setName(std::string const & n);
        ///
-       string const & obsoleted_by() const;
+       std::string const & obsoleted_by() const;
        ///
-       string const & depends_on() const;
+       std::string const & depends_on() const;
        ///
-       string const & latexname() const { return latexname_; }
+       std::string const & latexname() const { return latexname_; }
        ///
-       string const & labelstring() const { return labelstring_; }
+       std::string const & labelstring() const { return labelstring_; }
        ///
-       string const & endlabelstring() const { return endlabelstring_; }
+       std::string const & endlabelstring() const { return endlabelstring_; }
        ///
-       string const & preamble() const { return preamble_; }
+       std::string const & preamble() const { return preamble_; }
        ///
-       string const & latexparam() const { return latexparam_; }
+       std::string const & latexparam() const { return latexparam_; }
        ///
-       string const & labelstring_appendix() const {
+       std::string const & labelstring_appendix() const {
                return labelstring_appendix_;
        }
        /** Default font for this layout/environment.
@@ -93,15 +94,15 @@ public:
        LyXFont reslabelfont;
 
        /// Text that dictates how wide the left margin is on the screen
-       string leftmargin;
+       std::string leftmargin;
        /// Text that dictates how wide the right margin is on the screen
-       string rightmargin;
+       std::string rightmargin;
        /// Text that dictates how much space to leave after a potential label
-       string labelsep;
+       std::string labelsep;
        /// Text that dictates how much space to leave before a potential label
-       string labelindent;
+       std::string labelindent;
        /// Text that dictates the width of the indentation of indented pars
-       string parindent;
+       std::string parindent;
        ///
        float parskip;
        ///
@@ -143,11 +144,11 @@ public:
        /// show this in toc
        int toclevel;
        /// for new environment insets
-       string latexheader;
+       std::string latexheader;
        /// for new environment insets
-       string latexfooter;
+       std::string latexfooter;
        /// for new environment insets
-       string latexparagraph;
+       std::string latexparagraph;
 
        /** true when the fragile commands in the paragraph need to be
            \protect'ed. */
@@ -176,36 +177,36 @@ public:
        /// Does this layout allow for an optional parameter?
        int optionalargs;
        /// Which counter to step
-       string counter;
+       std::string counter;
 
 private:
        /// Name of the layout/paragraph environment
-       string name_;
+       std::string name_;
 
        /** Name of an layout that has replaced this layout.
            This is used to rename a layout, while keeping backward
            compatibility
        */
-       string obsoleted_by_;
+       std::string obsoleted_by_;
 
        /** Name of an layout which preamble must come before this one
            This is used when the preamble snippet uses macros defined in
            another preamble
         */
-       string depends_on_;
+       std::string depends_on_;
 
        /// LaTeX name for environment
-       string latexname_;
+       std::string latexname_;
        /// Label string. "Abstract", "Reference", "Caption"...
-       string labelstring_;
+       std::string labelstring_;
        ///
-       string endlabelstring_;
+       std::string endlabelstring_;
        /// Label string inside appendix. "Appendix", ...
-       string labelstring_appendix_;
+       std::string labelstring_appendix_;
        /// LaTeX parameter for environment
-       string latexparam_;
+       std::string latexparam_;
        /// Macro definitions needed for this layout
-       string preamble_;
+       std::string preamble_;
 };
 
 #endif
index b9e12d91342718158bbbc6005e4aef5e37746a5d..e94b90e0d6bd138900da25f8b04e596bd89e79ec 100644 (file)
@@ -24,6 +24,7 @@
 
 using std::abs;
 using std::ostringstream;
+using std::string;
 
 
 LyXLength::LyXLength()
index 01b6d3286f2d1ea559f0f17a30bfde2adb82cd32..2b0f33e6a7584a7978647ead66416f0ceb3f794f 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef LYX_LENGTH_H
 #define LYX_LENGTH_H
 
-#include "support/std_string.h"
+#include <string>
 
 /**
  * LyXLength - Represents latex length measurement
@@ -51,7 +51,7 @@ public:
        LyXLength(double v, LyXLength::UNIT u);
 
        /// "data" must be a decimal number, followed by a unit
-       explicit LyXLength(string const & data);
+       explicit LyXLength(std::string const & data);
 
        ///
        double value() const;
@@ -66,15 +66,15 @@ public:
        ///
        bool empty() const;
        /// return string representation
-       string const asString() const;
+       std::string const asString() const;
        /// return string representation for LaTeX
-       string const asLatexString() const;
+       std::string const asLatexString() const;
        /// return the on-screen size of this length
        int inPixels(int text_width, int em_width = 0) const;
        /// return the on-screen size of this length of an image
        int inBP() const;
 
-       friend bool isValidLength(string const & data, LyXLength * result);
+       friend bool isValidLength(std::string const & data, LyXLength * result);
 
 private:
        ///
@@ -89,7 +89,7 @@ bool operator==(LyXLength const & l1, LyXLength const & l2);
 bool operator!=(LyXLength const & l1, LyXLength const & l2);
 /** If "data" is valid, the length represented by it is
     stored into "result", if that is not 0. */
-bool isValidLength(string const & data, LyXLength * result = 0);
+bool isValidLength(std::string const & data, LyXLength * result = 0);
 /// return the name of the given unit number
 char const * stringFromUnit(int unit);
 
index ebabf59977db5c9d752dd7c63325f421a2a8192b..02192ad4e7e70c1590324b3ce32f2e76fb8781e1 100644 (file)
@@ -31,7 +31,7 @@ using lyx::support::subst;
 using lyx::support::trim;
 
 using std::endl;
-
+using std::string;
 using std::istream;
 using std::ostream;
 
index 77babdab04551ca71cc9be762040e4eeacc36a80..4c5ea7d6941b264c5513bd5a8d9188dd19c75636 100644 (file)
 #ifndef LYXLEX_H
 #define LYXLEX_H
 
+#include <boost/utility.hpp>
+
 #include <iosfwd>
 
-#include "support/std_string.h"
-#include <boost/utility.hpp>
 
 ///
 struct keyword_item {
@@ -57,7 +57,7 @@ public:
        /// file is open and end of file is not reached
        bool isOK() const;
        /// return true if able to open file, else false
-       bool setFile(string const & filename);
+       bool setFile(std::string const & filename);
        ///
        void setStream(std::istream & is);
        ///
@@ -81,7 +81,7 @@ public:
        */
        bool nextToken();
        /// Push a token, that next token got from lyxlex.
-       void pushToken(string const &);
+       void pushToken(std::string const &);
 
        ///
        int getLineNo() const;
@@ -93,7 +93,7 @@ public:
        ///
        float getFloat() const;
        ///
-       string const getString() const;
+       std::string const getString() const;
 
        /** Get a long string, ended by the tag `endtag'.
            This string can span several lines. The first line
@@ -102,7 +102,7 @@ public:
            each following line. This mechanism does not work
            perfectly if you use tabs.
        */
-       string const getLongString(string const & endtag);
+       std::string const getLongString(std::string const & endtag);
 
        ///
        bool eatLine();
@@ -122,7 +122,7 @@ public:
            and file name. If message contains the substring `$$Token',
            it is replaced with the value of GetString()
        */
-       void printError(string const & message) const;
+       void printError(std::string const & message) const;
 
        /**
           Prints the current token table on the supplied ostream.
index f5c1a1b412c19914ae3402d5a555d1aa2057d9c0..cb5befc76e448cb87cf3f11fcdd664429ba31d84 100644 (file)
@@ -30,7 +30,7 @@ using std::endl;
 using std::getline;
 using std::lower_bound;
 using std::sort;
-
+using std::string;
 using std::ios;
 using std::istream;
 using std::ostream;
index 79078d5d029ebc91c8d903032b5774a3f4de6a61..52ea84d33b6f2456039ae35ac66789c69fc6ca67 100644 (file)
@@ -26,9 +26,9 @@ struct LyXLex::Pimpl : boost::noncopyable {
        ///
        Pimpl(keyword_item * tab, int num);
        ///
-       string const getString() const;
+       std::string const getString() const;
        ///
-       void printError(string const & message) const;
+       void printError(std::string const & message) const;
        ///
        void printTable(std::ostream & os);
        ///
@@ -36,7 +36,7 @@ struct LyXLex::Pimpl : boost::noncopyable {
        ///
        void popTable();
        ///
-       bool setFile(string const & filename);
+       bool setFile(std::string const & filename);
        ///
        void setStream(std::istream & i);
        ///
@@ -52,7 +52,7 @@ struct LyXLex::Pimpl : boost::noncopyable {
        ///
        bool nextToken();
        ///
-       void pushToken(string const &);
+       void pushToken(std::string const &);
        /// fb__ is only used to open files, the stream is accessed through is.
        std::filebuf fb__;
        /// gz__ is only used to open files, the stream is accessed through is.
@@ -61,7 +61,7 @@ struct LyXLex::Pimpl : boost::noncopyable {
        /// the stream that we use.
        std::istream is;
        ///
-       string name;
+       std::string name;
        ///
        keyword_item * table;
        ///
@@ -73,7 +73,7 @@ struct LyXLex::Pimpl : boost::noncopyable {
        ///
        int lineno;
        ///
-       string pushTok;
+       std::string pushTok;
        ///
        char commentChar;
 private:
index c2082dcf6ba3e4e6a4f0bf8eedfaaf5418b80c90..9995916fc401415aa52163d9becde132ebc543a0 100644 (file)
@@ -47,6 +47,7 @@ using std::endl;
 using std::ios;
 using std::ofstream;
 using std::ostream;
+using std::string;
 
 
 namespace lyx {
index 4e6b8b2e82380c9491f99184949a223d71f9aede..d9240392535b000a34642bd257d9b63a3284cf2a 100644 (file)
@@ -21,7 +21,8 @@
 #include "paper.h"
 #include "graphics/GraphicsTypes.h"
 
-#include "support/std_string.h"
+#include <string>
+
 
 /// This contains the runtime configuration of LyX
 class LyXRC //: public noncopyable {
@@ -137,73 +138,73 @@ enum LyXRCTags {
        ///
        void setDefaults();
        ///
-       int read(string const & filename);
+       int read(std::string const & filename);
        ///
-       void write(string const & filename) const;
+       void write(std::string const & filename) const;
        ///
        void print() const;
        ///
        void output(std::ostream & os) const;
        ///
-       static string const getDescription(LyXRCTags);
+       static std::string const getDescription(LyXRCTags);
        ///
-       string bind_file;
+       std::string bind_file;
        ///
-       string ui_file;
+       std::string ui_file;
        ///
-       string printer;
+       std::string printer;
        ///
-       string print_command;
+       std::string print_command;
        ///
-       string print_evenpage_flag;
+       std::string print_evenpage_flag;
        ///
-       string print_oddpage_flag;
+       std::string print_oddpage_flag;
        ///
-       string print_pagerange_flag;
+       std::string print_pagerange_flag;
        ///
-       string print_copies_flag;
+       std::string print_copies_flag;
        ///
-       string print_collcopies_flag;
+       std::string print_collcopies_flag;
        ///
-       string print_reverse_flag;
+       std::string print_reverse_flag;
        ///
-       string print_landscape_flag;
+       std::string print_landscape_flag;
        ///
-       string print_to_printer;
+       std::string print_to_printer;
        ///
        bool print_adapt_output;
        ///
-       string print_to_file;
+       std::string print_to_file;
        ///
-       string print_file_extension;
+       std::string print_file_extension;
        ///
-       string print_extra_options;
+       std::string print_extra_options;
        ///
-       string print_spool_command;
+       std::string print_spool_command;
        ///
-       string print_spool_printerprefix;
+       std::string print_spool_printerprefix;
        ///
-       string print_paper_flag;
+       std::string print_paper_flag;
        ///
-       string print_paper_dimension_flag;
+       std::string print_paper_dimension_flag;
        ///
-       string custom_export_command;
+       std::string custom_export_command;
        ///
-       string custom_export_format;
+       std::string custom_export_format;
        /// postscript interpreter (in general "gs", if it is installed)
-       string ps_command;
+       std::string ps_command;
        /// option for telling the dvi viewer about the paper size
-       string view_dvi_paper_option;
+       std::string view_dvi_paper_option;
        /// default paper size for local xdvi/dvips/ghostview/whatever
        PAPER_SIZE default_papersize;
        /// command to run chktex incl. options
-       string chktex_command;
+       std::string chktex_command;
        ///
-       string document_path;
+       std::string document_path;
        ///
-       string template_path;
+       std::string template_path;
        ///
-       string tempdir_path;
+       std::string tempdir_path;
        ///
        bool use_tempdir;
        ///
@@ -213,13 +214,13 @@ enum LyXRCTags {
        ///
        bool check_lastfiles;
        /// filename for lastfiles file
-       string lastfiles;
+       std::string lastfiles;
        /// maximal number of lastfiles
        unsigned int num_lastfiles;
        /// shall a backup file be created
        bool make_backup;
        /// A directory for storing backup files
-       string backupdir_path;
+       std::string backupdir_path;
        /// Zoom factor for screen fonts
        unsigned int zoom;
        /// parameter for button_4 and button_5 (scrollwheel)
@@ -231,25 +232,25 @@ enum LyXRCTags {
        /// DPI of monitor
        float dpi;
        ///
-       string fontenc;
+       std::string fontenc;
        ///
-       string roman_font_name;
+       std::string roman_font_name;
        ///
-       string sans_font_name;
+       std::string sans_font_name;
        ///
-       string typewriter_font_name;
+       std::string typewriter_font_name;
        ///
-       string roman_font_foundry;
+       std::string roman_font_foundry;
        ///
-       string sans_font_foundry;
+       std::string sans_font_foundry;
        ///
-       string typewriter_font_foundry;
+       std::string typewriter_font_foundry;
        ///
-       string popup_bold_font;
+       std::string popup_bold_font;
        ///
-       string popup_normal_font;
+       std::string popup_normal_font;
        ///
-       string font_norm;
+       std::string font_norm;
        ///
        enum FontEncoding {
                ///
@@ -274,17 +275,17 @@ enum LyXRCTags {
        ///
        void set_font_norm_type();
        ///
-       string popup_font_encoding;
+       std::string popup_font_encoding;
        ///
        unsigned int autosave;
        ///
-       string ascii_roff_command;
+       std::string ascii_roff_command;
        ///
        unsigned int ascii_linelen;
        /// use library instead of process
        bool use_spell_lib;
        /// Ispell command
-       string isp_command;
+       std::string isp_command;
        /// Accept compound words in spellchecker?
        bool isp_accept_compound;
        /// Pass input encoding switch to ispell?
@@ -296,33 +297,33 @@ enum LyXRCTags {
        /// Use escape chars?
        bool isp_use_esc_chars;
        /// Alternate language for ispell
-       string isp_alt_lang;
+       std::string isp_alt_lang;
        /// Alternate personal dictionary file for ispell
-       string isp_pers_dict;
+       std::string isp_pers_dict;
        /// Escape characters
-       string isp_esc_chars;
+       std::string isp_esc_chars;
        ///
        bool use_kbmap;
        ///
-       string primary_kbmap;
+       std::string primary_kbmap;
        ///
-       string secondary_kbmap;
+       std::string secondary_kbmap;
        ///
-       string lyxpipes;
+       std::string lyxpipes;
        ///
-       string date_insert_format;
+       std::string date_insert_format;
        ///
-       string language_package;
+       std::string language_package;
        ///
        bool language_auto_begin;
        ///
        bool language_auto_end;
        ///
-       string language_command_begin;
+       std::string language_command_begin;
        ///
-       string language_command_end;
+       std::string language_command_end;
        ///
-       string language_command_local;
+       std::string language_command_local;
        ///
        bool language_global_options;
        ///
@@ -334,7 +335,7 @@ enum LyXRCTags {
        ///
        bool mark_foreign_language;
        ///
-       string default_language;
+       std::string default_language;
        ///
        bool cursor_follows_scrollbar;
        ///
@@ -352,9 +353,9 @@ enum LyXRCTags {
        ///
        float preview_scale_factor;
        /// user name
-       string user_name;
+       std::string user_name;
        /// user email
-       string user_email;
+       std::string user_email;
 };
 
 ///
index de288e2817e534f9fa0d0cdf44b4812831cc5c64..e0f4336f35e3c60ec2b02d3515664aa1414aae19 100644 (file)
@@ -66,6 +66,7 @@ using lyx::support::split;
 using lyx::support::unlink;
 
 using std::endl;
+using std::string;
 
 
 // provide an empty mkfifo() if we do not have one. This disables the
@@ -139,6 +140,7 @@ void LyXComm::closeConnection()
        ready = false;
 }
 
+
 int LyXComm::startPipe(string const & filename, bool write)
 {
        int fd;
index e7ea2f3902ccde6200b9ea64727ec0ea2df617e5..eb36be249476f93441cf34ca79d4551297390dc9 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef LYXSERVER_H
 #define LYXSERVER_H
 
-#include "support/std_string.h"
-
 #include <boost/signals/trackable.hpp>
 
 class LyXFunc;
@@ -35,10 +33,10 @@ public:
          This is one of the small things that would have been a lot
          cleaner with a Signal/Slot thing.
         */
-       typedef void (*ClientCallbackfct)(LyXServer *, string const &);
+       typedef void (*ClientCallbackfct)(LyXServer *, std::string const &);
 
        /// Construct with pipe-basename and callback to receive messages
-       LyXComm(string const & pip, LyXServer * cli, ClientCallbackfct ccb = 0)
+       LyXComm(std::string const & pip, LyXServer * cli, ClientCallbackfct ccb = 0)
                : pipename(pip), client(cli), clientcb(ccb) {
                ready = false;
                openConnection();
@@ -53,19 +51,19 @@ public:
        void emergencyCleanup();
 
        /// Send message
-       void send(string const &);
+       void send(std::string const &);
 
        /// asynch ready-to-be-read notification
        void read_ready();
 
 private:
        /// the filename of the in pipe
-       string const inPipeName() {
+       std::string const inPipeName() {
                return pipename + ".in";
        }
 
        /// the filename of the out pipe
-       string const outPipeName() {
+       std::string const outPipeName() {
                return pipename + ".out";
        }
 
@@ -76,10 +74,10 @@ private:
        void closeConnection();
 
        /// start a pipe
-       int startPipe(string const &, bool);
+       int startPipe(std::string const &, bool);
 
        /// finish a pipe
-       void endPipe(int &, string const &, bool);
+       void endPipe(int &, std::string const &, bool);
 
        /// This is -1 if not open
        int infd;
@@ -91,7 +89,7 @@ private:
        bool ready;
 
        /// Base of pipename including path
-       string pipename;
+       std::string pipename;
 
        /// The client
        LyXServer * client;
@@ -116,12 +114,12 @@ public:
        // lyxserver is using a buffer that is being edited with a bufferview.
        // With a common buffer list this is not a problem, maybe. (Alejandro)
        ///
-       LyXServer(LyXFunc * f, string const & pip)
+       LyXServer(LyXFunc * f, std::string const & pip)
                : numclients(0), func(f), pipes(pip, (this), callback) {}
        ///
        ~LyXServer();
        ///
-       void notifyClient(string const &);
+       void notifyClient(std::string const &);
 
        /// whilst crashing etc.
        void emergencyCleanup() {
@@ -130,14 +128,14 @@ public:
 
 private:
        ///
-       static void callback(LyXServer *, string const & msg);
+       static void callback(LyXServer *, std::string const & msg);
        /// Names and number of current clients
        enum {
                ///
                MAX_CLIENTS = 10
        };
        ///
-       string clients[MAX_CLIENTS];
+       std::string clients[MAX_CLIENTS];
        ///
        int numclients;
        ///
index 4561c55c6917e7e930a2a9b06b5c9a7d32bb9f13..b440188a13c1ae47510c7e2c82dc3a5585c77dd7 100644 (file)
@@ -101,9 +101,9 @@ public:
        setLayout(LyXCursor & actual_cursor,
                  LyXCursor & selection_start,
                  LyXCursor & selection_end,
-                 string const & layout);
+                 std::string const & layout);
        ///
-       void setLayout(string const & layout);
+       void setLayout(std::string const & layout);
 
        /**
         * Increase or decrease the nesting depth of the selected paragraph(s)
@@ -138,7 +138,7 @@ public:
        void toggleFree(LyXFont const &, bool toggleall = false);
 
        ///
-       string getStringToIndex();
+       std::string getStringToIndex();
 
        /** insert a character, moves all the following breaks in the
          same Paragraph one to the right and make a little rebreak
@@ -320,7 +320,7 @@ public:
                          VSpace const & space_bottom,
                          Spacing const & spacing,
                          LyXAlignment align,
-                         string const & labelwidthstring,
+                         std::string const & labelwidthstring,
                          bool noindent);
 
        /* these things are for search and replace */
@@ -334,16 +334,16 @@ public:
        /** simple replacing. The font of the first selected character
          is used
          */
-       void replaceSelectionWithString(string const & str);
+       void replaceSelectionWithString(std::string const & str);
 
        /// needed to insert the selection
-       void insertStringAsLines(string const & str);
+       void insertStringAsLines(std::string const & str);
        /// needed to insert the selection
-       void insertStringAsParagraphs(string const & str);
+       void insertStringAsParagraphs(std::string const & str);
 
        /// Find next inset of some specified type.
        bool gotoNextInset(std::vector<InsetOld::Code> const & codes,
-                          string const & contents = string());
+                          std::string const & contents = std::string());
        ///
        void gotoInset(std::vector<InsetOld::Code> const & codes,
                       bool same_content);
index fb53e5e742d4f3d6588efe4d5474aba29f466f36..e713642d50dd6e9b3d061b2b0d9fc64997930708 100644 (file)
@@ -32,7 +32,7 @@ using lyx::support::subst;
 using std::endl;
 using std::find_if;
 using std::remove_if;
-
+using std::string;
 using std::ostream;
 
 
index 56232ce0391d2527f048b1337d175bdb28a32440..2bf28f6a9e3013ec9fc19ba7390b721f00783172 100644 (file)
@@ -13,8 +13,6 @@
 #include "lyxlayout.h"
 #include "lyxlayout_ptr_fwd.h"
 
-#include "support/std_string.h"
-
 #include <boost/shared_ptr.hpp>
 
 #include <vector>
@@ -33,9 +31,9 @@ public:
        typedef LayoutList::const_iterator const_iterator;
        /// Construct a layout with default values. Actual values loaded later.
        explicit
-       LyXTextClass(string const & = string(),
-                    string const & = string(),
-                    string const & = string(),
+       LyXTextClass(std::string const & = std::string(),
+                    std::string const & = std::string(),
+                    std::string const & = std::string(),
                     bool = false);
 
        /// check whether the TeX class is available
@@ -47,7 +45,7 @@ public:
        const_iterator end() const { return layoutlist_.end(); }
 
        /// Performs the read of the layout file.
-       bool Read(string const & filename, bool merge = false);
+       bool Read(std::string const & filename, bool merge = false);
        ///
        void readOutputType(LyXLex &);
        ///
@@ -61,10 +59,10 @@ public:
        ///
        void readCounter(LyXLex &);
        ///
-       bool hasLayout(string const & name) const;
+       bool hasLayout(std::string const & name) const;
 
        ///
-       LyXLayout_ptr const & operator[](string const & vname) const;
+       LyXLayout_ptr const & operator[](std::string const & vname) const;
 
        /// Sees to that the textclass structure has been loaded
        bool load() const;
@@ -76,25 +74,25 @@ public:
        /// The Counters present in this document class.
        Counters & counters() const;
        ///
-       string const & defaultLayoutName() const;
+       std::string const & defaultLayoutName() const;
        ///
        LyXLayout_ptr const & defaultLayout() const;
        ///
-       string const & name() const;
+       std::string const & name() const;
        ///
-       string const & latexname() const;
+       std::string const & latexname() const;
        ///
-       string const & description() const;
+       std::string const & description() const;
        ///
-       string const & opt_fontsize() const;
+       std::string const & opt_fontsize() const;
        ///
-       string const & opt_pagestyle() const;
+       std::string const & opt_pagestyle() const;
        ///
-       string const & options() const;
+       std::string const & options() const;
        ///
-       string const & pagestyle() const;
+       std::string const & pagestyle() const;
        ///
-       string const & preamble() const;
+       std::string const & preamble() const;
 
        /// Packages that are already loaded by the class
        enum Provides {
@@ -135,41 +133,41 @@ public:
        LyXFont const & defaultfont() const;
 
        /// Text that dictates how wide the left margin is on the screen
-       string const & leftmargin() const;
+       std::string const & leftmargin() const;
 
        /// Text that dictates how wide the right margin is on the screen
-       string const & rightmargin() const;
+       std::string const & rightmargin() const;
 
        /// The type of command used to produce a title
        LYX_TITLE_LATEX_TYPES titletype() const;
        /// The name of the title command
-       string const & titlename() const;
+       std::string const & titlename() const;
 
        ///
        int size() const;
 private:
        ///
-       bool delete_layout(string const &);
+       bool delete_layout(std::string const &);
        ///
        bool do_readStyle(LyXLex &, LyXLayout &);
        /// Layout file name
-       string name_;
+       std::string name_;
        /// document class name
-       string latexname_;
+       std::string latexname_;
        /// document class description
-       string description_;
+       std::string description_;
        /// Specific class options
-       string opt_fontsize_;
+       std::string opt_fontsize_;
        ///
-       string opt_pagestyle_;
+       std::string opt_pagestyle_;
        ///
-       string options_;
+       std::string options_;
        ///
-       string pagestyle_;
+       std::string pagestyle_;
        ///
-       string defaultlayout_;
+       std::string defaultlayout_;
        /// preamble text to support layout styles
-       string preamble_;
+       std::string preamble_;
        /// latex packages loaded by document class.
        Provides provides_;
        ///
@@ -189,15 +187,15 @@ private:
        */
        LyXFont defaultfont_;
        /// Text that dictates how wide the left margin is on the screen
-       string leftmargin_;
+       std::string leftmargin_;
 
        /// Text that dictates how wide the right margin is on the screen
-       string rightmargin_;
+       std::string rightmargin_;
 
        /// The type of command used to produce a title
        LYX_TITLE_LATEX_TYPES titletype_;
        /// The name of the title command
-       string titlename_;
+       std::string titlename_;
 
        /// Paragraph styles used in this layout
        LayoutList layoutlist_;
index 435b8ac95c875006206f14158af051b7d8859923..98339a046a3446cb898384a69ee1de774f4981a4 100644 (file)
@@ -32,7 +32,7 @@ using std::endl;
 using std::find_if;
 using std::make_pair;
 using std::sort;
-
+using std::string;
 using std::pair;
 
 
index 8fa66f2ae11ed3dfb45691e875f76311a4b9fa83..38d336b2fc207a7cbd51694f470192bb000cc99a 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <boost/utility.hpp>
 
-#include "support/std_string.h"
-
 #include <vector>
 
 class LyXTextClass;
@@ -40,7 +38,7 @@ public:
 
        /// Gets textclass number from name, -1 if textclass name does not exist
        std::pair<bool, lyx::textclass_type> const
-       NumberOfClass(string const & textclass) const;
+       NumberOfClass(std::string const & textclass) const;
 
        ///
        LyXTextClass const & operator[](lyx::textclass_type textclass) const;
index 7244d8dccd94d55a3c5db0a90212d226df02d12d..b4dae54556863c0f6b2f3f09777dbe6c71a4855c 100644 (file)
@@ -32,7 +32,7 @@ using lyx::support::MakeDisplayPath;
 using lyx::support::tempName;
 
 using std::endl;
-
+using std::string;
 using std::pair;
 
 
index 207c529de3b812b5e8d3a376450c18bf33f29578..8c929f23fafaa0cf8aa14f68d413262b9636f684 100644 (file)
@@ -12,7 +12,8 @@
 #ifndef LYX_VC_H
 #define LYX_VC_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 class VCS;
 class Buffer;
@@ -44,7 +45,7 @@ public:
          the appropiate actions is taken. Returns true if the file is under
          control by a VCS.
          */
-       bool file_found_hook(string const & fn);
+       bool file_found_hook(std::string const & fn);
 
        /** This function should be run when a file is requested for loading,
          but it does not exist. This function will then check for a VC master
@@ -53,7 +54,7 @@ public:
          viewing/editing. Returns true if the file is under control by a VCS
          and the user wants to view/edit it.
          */
-       static bool file_not_found_hook(string const & fn);
+       static bool file_not_found_hook(std::string const & fn);
 
        ///
        void buffer(Buffer *);
@@ -78,7 +79,7 @@ public:
         * It is the caller's responsibility to unlink the
         * file after use.
         */
-       const string getLogFile() const;
+       const std::string getLogFile() const;
 
        ///
        void toggleReadOnly();
@@ -87,12 +88,12 @@ public:
        bool inUse();
 
        /// Returns the version number.
-       //string const & version() const;
+       //std::string const & version() const;
        /// Returns the version number.
-       string const versionString() const;
+       std::string const versionString() const;
 
        /// Returns the userid of the person who has locked the doc.
-       string const & locker() const;
+       std::string const & locker() const;
 
 private:
        ///
index 2dd301c9d69e049de043ccf95221dc13fc7fdb9d..e8f97a5e00165aadac95af1ab829e125bfda75fb 100644 (file)
@@ -16,6 +16,8 @@
 #include "funcrequest.h"
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostringstream;
 
index d111d58acb42b5f83120853f02667da0093cf6e9..75090caa551faa2f6ebb368f4c46406977e71aec 100644 (file)
@@ -21,7 +21,7 @@
 class CommandInset : public MathNestInset {
 public:
        ///
-       explicit CommandInset(string const & name);
+       explicit CommandInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -35,14 +35,14 @@ public:
        ///
        dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
        ///
-       virtual string const screenLabel() const;
+       virtual std::string const screenLabel() const;
        /// generate something that will be understood by the Dialogs.
-       string const createDialogStr(string const & name) const;
+       std::string const createDialogStr(std::string const & name) const;
 
-       string const & commandname() const { return name_; }
+       std::string const & commandname() const { return name_; }
 
 private:
-       string name_;
+       std::string name_;
        mutable bool set_label_;
        mutable ButtonRenderer button_;
 };
index f35d6d9187ff983c4c5e469c76f86061ac09c922..1c1331eb8992d6d17c65794cc2c1f83b9be4e751 100644 (file)
@@ -30,6 +30,7 @@
 #include "support/std_sstream.h"
 
 
+using std::string;
 using std::ostream;
 using std::ostringstream;
 using std::vector;
index ad731d12ae04a3a4be79eefc750bbd3de677db98..14c650e301d63f1d83b50c7b65a86dfa8062b3c7 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        explicit InsetFormula(BufferView *);
        ///
-       explicit InsetFormula(string const & data);
+       explicit InsetFormula(std::string const & data);
        ///
        InsetFormula(InsetFormula const &);
        ///
@@ -61,7 +61,7 @@ public:
        bool insetAllowed(InsetOld::Code code) const;
        /// Appends \c list with all labels found within this inset.
        void getLabelList(Buffer const &,
-                         std::vector<string> & list) const;
+                         std::vector<std::string> & list) const;
        ///
        MathAtom const & par() const { return par_; }
        ///
@@ -71,7 +71,7 @@ public:
        ///
        void addPreview(lyx::graphics::PreviewLoader &) const;
        ///
-       void mutate(string const & type);
+       void mutate(std::string const & type);
 
 private:
        /// available in AMS only?
index e5e452627a615b2327f8b6e85ee71c97468259f8..c03799c3a594aef4da8b1791a21ae0a7326e2ba4 100644 (file)
@@ -43,6 +43,7 @@ using lyx::support::atoi;
 using lyx::support::split;
 using lyx::support::token;
 
+using std::string;
 using std::abs;
 using std::endl;
 using std::max;
@@ -130,7 +131,7 @@ void InsetFormulaBase::handleFont2(BufferView * bv, string const & arg)
        bool b;
        bv_funcs::string2font(arg, font, b);
        if (font.color() != LColor::inherit) {
-               MathAtom at = createMathInset("color"); 
+               MathAtom at = createMathInset("color");
                asArray(lcolor.getGUIName(font.color()), at.nucleus()->cell(0));
                mathcursor->handleNest(at, 1);
        }
index cd788189ec8407f5473fdb2dce575ddad3b551c0..6c3d8dc269d3bb7bc5d2753627d2319317361fd1 100644 (file)
@@ -44,7 +44,7 @@ public:
        ///
        virtual InsetOld::Code lyxCode() const;
        /// what appears in the minibuffer when opening
-       virtual string const editMessage() const;
+       virtual std::string const editMessage() const;
        ///
        virtual void fitInsetCursor(BufferView *) const;
        /// FIXME
@@ -70,10 +70,10 @@ public:
        BufferView * view() const;
 
        ///
-       virtual bool searchForward(BufferView *, string const &,
+       virtual bool searchForward(BufferView *, std::string const &,
                                   bool = true, bool = false);
        ///
-       virtual bool searchBackward(BufferView *, string const &,
+       virtual bool searchBackward(BufferView *, std::string const &,
                                    bool = true, bool = false);
        ///
        virtual bool isTextInset() const { return true; }
@@ -85,14 +85,14 @@ public:
        virtual EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
        bool display() const;
-       // return the selection as string
-       string selectionAsString() const;
+       // return the selection as std::string
+       std::string selectionAsString() const;
 
 private:
        /// unimplemented
        void operator=(const InsetFormulaBase &);
        /// common base for handling accents
-       void handleAccent(BufferView * bv, string const & arg, string const & name);
+       void handleAccent(BufferView * bv, std::string const & arg, std::string const & name);
        /// lfun handler
        dispatch_result lfunMousePress(FuncRequest const &);
        ///
@@ -107,9 +107,9 @@ protected:
 
 protected:
        ///
-       void handleFont(BufferView * bv, string const & arg, string const & font);
+       void handleFont(BufferView * bv, std::string const & arg, std::string const & font);
        ///
-       void handleFont2(BufferView * bv, string const & arg);
+       void handleFont2(BufferView * bv, std::string const & arg);
 
        ///
        mutable int xo_;
index 9d17b67835ac36fdfeca2ae2a9d96357ce5d42b2..5babe66d4284e4a8acdcac4d158a89856a05731e 100644 (file)
@@ -30,6 +30,7 @@
 
 using lyx::support::bformat;
 
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
index 34bfc15e9d920b762c07696897add7d448ed0f45..6ca76fe5e8d12d47f68abb026729eb523064d8d8 100644 (file)
@@ -27,9 +27,9 @@ public:
        ///
        InsetFormulaMacro();
        /// construct a macro hull from its name and the number of arguments
-       explicit InsetFormulaMacro(string const & name, int nargs, string const & t);
+       explicit InsetFormulaMacro(std::string const & name, int nargs, std::string const & t);
        /// constructs a mocro from its LaTeX definition
-       explicit InsetFormulaMacro(string const & s);
+       explicit InsetFormulaMacro(std::string const & s);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -61,7 +61,7 @@ private:
        ///
        void read(std::istream & is);
        /// prefix in inset
-       string prefix() const;
+       std::string prefix() const;
 };
 
 #endif
index efd96b28239bea85c3c6a37d7f1537444c4edb9e..1287d99a3f533e42ade65a6270fea7ae9e0c3bfc 100644 (file)
@@ -16,6 +16,7 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+using std::string;
 using std::auto_ptr;
 
 
index 4792e974a3c19de41c04386696c81ceef08da4f2..87c64ee868ef346879e3a4ee29cd5314cac78b87 100644 (file)
@@ -19,9 +19,9 @@
 class MathAMSArrayInset : public MathGridInset {
 public:
        ///
-       MathAMSArrayInset(string const & name, int m, int n);
+       MathAMSArrayInset(std::string const & name, int m, int n);
        ///
-       MathAMSArrayInset(string const & name);
+       MathAMSArrayInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -45,7 +45,7 @@ private:
        char const * name_right() const;
 
        ///
-       string name_;
+       std::string name_;
 };
 
 #endif
index c153ef0869c1aacf4efa12473dc954e51426e7a7..c32473e30e49d86f617f7c1b46c99fabbfc8d750 100644 (file)
@@ -21,6 +21,7 @@
 
 using std::getline;
 
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::istream_iterator;
index 818ac49b4d57d14b2fbb97ee992d8550013301d6..6b15ed72b49be908e7fa4b5ed498f98dda945dcd 100644 (file)
 class MathArrayInset : public MathGridInset {
 public:
        ///
-       MathArrayInset(string const &, int m, int n);
+       MathArrayInset(std::string const &, int m, int n);
        ///
-       MathArrayInset(string const &, int m, int n,
-               char valign, string const & halign);
+       MathArrayInset(std::string const &, int m, int n,
+               char valign, std::string const & halign);
        ///
-       MathArrayInset(string const &, char valign, string const & halign);
+       MathArrayInset(std::string const &, char valign, std::string const & halign);
        /// convienience constructor from whitespace/newline seperated data
-       MathArrayInset(string const &, string const & str);
+       MathArrayInset(std::string const &, std::string const & str);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -49,7 +49,7 @@ public:
 
 private:
        ///
-       string name_;
+       std::string name_;
 };
 
 #endif
index feb6d7b58e22e4b1c275167c32af407062666182..7dd038b14f8ca94ba913260b319a1dc7da2b7241 100644 (file)
@@ -22,6 +22,7 @@
 
 using lyx::support::LibFileSearch;
 
+using std::string;
 using std::ifstream;
 using std::istream;
 using std::istringstream;
index 1bf4de266b40e17baf2297a613c6bb523ac86d93..c259c4cafa0550a55f5d19a7d26d94e892210083 100644 (file)
@@ -15,6 +15,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 2e605866473320eb42b866fa84950bc7888a87e2..df6899e234ff7fb78bf20c30a96b88a6055a2ab3 100644 (file)
 #define MATH_BIGINSET_H
 
 #include "math_diminset.h"
-#include "support/std_string.h"
 
+#include <string>
 
 /// Inset for \bigl & Co.
 class MathBigInset : public MathDimInset {
 public:
        ///
-       MathBigInset(string const & name, string const & delim);
+       MathBigInset(std::string const & name, std::string const & delim);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -39,9 +39,9 @@ private:
        double increase() const;
 
        /// \bigl or what?
-       string const name_;
+       std::string const name_;
        /// ( or [ or Vert...
-       string const delim_;
+       std::string const delim_;
 };
 
 #endif
index 5b48653037fc64521fa5f7432efaf3c9c1e89c59..ca053c422e4bd1f6ef404a9fac8e0142672c9034 100644 (file)
@@ -16,6 +16,7 @@
 #include "math_streamstr.h"
 #include "support/std_ostream.h"
 
+using std::string;
 using std::auto_ptr;
 
 
index 6ab4d1c7a2bdedde21b5f342940c8162fa9ac4f3..c155a76301cd3d4a0294dd8af8d69777cb133c44 100644 (file)
@@ -13,7 +13,8 @@
 #define MATH_BOXINSET_H
 
 #include "math_nestinset.h"
-#include "support/std_string.h"
+
+#include <string>
 
 
 class LyXFont;
@@ -23,7 +24,7 @@ class LyXFont;
 class MathBoxInset : public MathNestInset {
 public:
        ///
-       explicit MathBoxInset(string const & name);
+       explicit MathBoxInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -41,7 +42,7 @@ public:
 
 private:
        ///
-       string name_;
+       std::string name_;
 };
 
 
index 09fa26b6509deef4e1beca1f8ff15f87909347a3..793a806b0618ca39c905f364f0dcbe32c315569f 100644 (file)
@@ -16,6 +16,7 @@
 #include "math_support.h"
 #include "support/std_ostream.h"
 
+using std::string;
 using std::auto_ptr;
 
 
index 9776de4f75c7b5b7bf0644de4ee8db499f72e1cf..b08df8860c20c2dc47fd9fa16b248a454e106346 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        MathCommentInset();
        ///
-       explicit MathCommentInset(string const &);
+       explicit MathCommentInset(std::string const &);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
index 6ac63b7be81f079bcbf45e07f6adc607f31e0194..2194fc4e36481707d9aae6f4442a62761db7b6b1 100644 (file)
@@ -35,6 +35,7 @@
 
 //#define FILEDEBUG 1
 
+using std::string;
 using std::endl;
 #ifndef CXX_GLOBAL_CSTD
 using std::isalpha;
index 82cef1d560422bf7454e09b2105c47dbf7557194..b43e1268c605fa852131318e58b752daa6c5769d 100644 (file)
@@ -16,7 +16,9 @@
 
 #include "math_inset.h"
 #include "math_iterator.h"
-#include "support/std_string.h"
+
+#include <string>
+
 
 class InsetFormulaBase;
 class BufferView;
@@ -59,9 +61,9 @@ public:
        ///
        void insert(MathArray const &);
        ///
-       void insert2(string const &);
+       void insert2(std::string const &);
        ///
-       void paste(string const & data);
+       void paste(std::string const & data);
        /// return false for empty math insets
        bool erase();
        /// return false for empty math insets
@@ -93,7 +95,7 @@ public:
        ///
        void niceInsert(MathAtom const &);
        ///
-       void niceInsert(string const &);
+       void niceInsert(std::string const &);
 
        /// in pixels from top of screen
        void setPos(int x, int y);
@@ -159,11 +161,11 @@ public:
        void selClearOrDel();
        /// draws light-blue selection background
        void drawSelection(PainterInfo & pi) const;
-       /// replace selected stuff with at, placing the former 
+       /// replace selected stuff with at, placing the former
        // selection in given cell of atom
        void handleNest(MathAtom const & at, int cell = 0);
        /// remove this as soon as LyXFunc::getStatus is "localized"
-       string getLastCode() const { return "mathnormal"; }
+       std::string getLastCode() const { return "mathnormal"; }
        ///
        bool isInside(MathInset const *) const;
        ///
@@ -219,7 +221,7 @@ public:
        /// local dispatcher
        dispatch_result dispatch(FuncRequest const & cmd);
        /// describe the situation
-       string info() const;
+       std::string info() const;
        /// dump selection information for debugging
        void seldump(char const * str) const;
        /// dump selection information for debugging
@@ -227,13 +229,13 @@ public:
        /// moves on
        void setSelection(MathIterator const & where, size_type n);
        /// grab selection marked by anchor and current cursor
-       string grabSelection() const;
+       std::string grabSelection() const;
        /// guess what
-       string grabAndEraseSelection();
+       std::string grabAndEraseSelection();
        ///
        void insert(char c);
        ///
-       void insert(string const & str);
+       void insert(std::string const & str);
        /// lock/unlock inset
        void insetToggle();
 
@@ -243,7 +245,7 @@ public:
        /// injects content of a cell into parent
        void pullArg();
        /// split font inset etc
-       void handleFont(string const & font);
+       void handleFont(std::string const & font);
 
 private:
        /// moves cursor index one cell to the left
@@ -269,7 +271,7 @@ private:
        void eraseSelection();
 
        /// the name of the macro we are currently inputting
-       string macroName() const;
+       std::string macroName() const;
        /// where in the curent cell does the macro name start?
        difference_type macroNamePos() const;
        /// can we enter the inset?
index 3a2f7ba047b805cc8fcd4093dcc8203bf7737a69..549ea335a354ec57fb90f44b858ace755074fdd4 100644 (file)
@@ -18,6 +18,7 @@
 #include "math_support.h"
 
 
+using std::string;
 using std::max;
 using std::auto_ptr;
 
index 11182dc4314e3a04daf93422cbc5308ab27b0a75..5a59875854a53cd5af423638f6f705f8fa8415ab 100644 (file)
 #define MATH_DELIMINSET_H
 
 #include "math_nestinset.h"
-#include "support/std_string.h"
+
+#include <string>
 
 
 /// A delimiter
 class MathDelimInset : public MathNestInset {
 public:
        ///
-       MathDelimInset(string const & left, string const & right);
+       MathDelimInset(std::string const & left, std::string const & right);
        ///
-       MathDelimInset(string const & left, string const & right, MathArray const &);
+       MathDelimInset(std::string const & left, std::string const & right, MathArray const &);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -56,9 +57,9 @@ public:
        ///
        void octave(OctaveStream &) const;
        ///
-       string left_;
+       std::string left_;
        ///
-       string right_;
+       std::string right_;
 private:
        ///
        mutable int dw_;
index 10923779dc0c93e7102bd8ced841687d15dfd732..c08c31a443c2327066278b51e498d15fe2ad1934 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_support.h"
 #include "math_parser.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 48e8e7de94eb0bb226741a2e976455ff90d75989..1177507bfc3d99af57ca724d03df65ee5a273b48 100644 (file)
@@ -29,7 +29,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string name() const;
+       std::string name() const;
 protected:
        /// cache for the thing's height
        mutable int dh_;
index e92fd99e37f30348716849c7ed11fcdde2be4aa4..2f10a1c5df4abca9168758a8afe124f386b5f4cb 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index e8366b16fe780d719f4fb2b2ad76093aaf997c90..27bc2365d2906a4de59ea659f477b5d8cb670ea2 100644 (file)
 
 #include "math_nestinset.h"
 
+#include <string>
+
 
 /// Environtments á la \begin{something}...\end{something}
 class MathEnvInset : public MathNestInset {
 public:
        ///
-       MathEnvInset(string const & name_);
+       MathEnvInset(std::string const & name_);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -35,7 +37,7 @@ public:
 
 private:
        /// name of that environment
-       string name_;
+       std::string name_;
 };
 
 #endif
index 3ce1701b465dce741a3bf0a28baf78e00c55b2c7..b6e5d609218b059a64d2c0d25dfa6864ff77a73a 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index f0df9074959d263d82fcb7c47845ba61ffa1e5a8..222cb482cc8e0ca9efdf30e0f7ef8e3fb297f1f6 100644 (file)
 
 #include "math_nestinset.h"
 
+#include <string>
+
+
 // f(x) in one block (as opposed to 'f','(','x',')' or 'f','x')
 // for interfacing external programs
 
 class MathExFuncInset : public MathNestInset {
 public:
        ///
-       explicit MathExFuncInset(string const & name);
+       explicit MathExFuncInset(std::string const & name);
        ///
-       MathExFuncInset(string const & name, MathArray const & ar);
+       MathExFuncInset(std::string const & name, MathArray const & ar);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -31,7 +34,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string name() const;
+       std::string name() const;
 
        ///
        void maple(MapleStream &) const;
@@ -46,6 +49,6 @@ public:
 
 private:
        ///
-       string const name_;
+       std::string const name_;
 };
 #endif
index 31dfe1655b8b7f97ee100bf9d4548f714e3046e9..e41dad31346ccb8ff075bd239999bab548313280 100644 (file)
 #include "math_streamstr.h"
 #include "math_symbolinset.h"
 #include "debug.h"
+
 #include <boost/scoped_ptr.hpp>
 
 
+using std::string;
 using std::auto_ptr;
 using std::endl;
 
index fcb3dbf3a0b5b04d9c841e9b2cc1274c37b1f37f..b1e11d8814fd0c9fe85b5f8d2e2104f0ddc20be5 100644 (file)
 
 #include "math_nestinset.h"
 
+#include <string>
+
+
 // cell(0) is stuff before the 'd', cell(1) the stuff after
 class MathExIntInset : public MathNestInset {
 public:
        ///
-       explicit MathExIntInset(string const & name_);
+       explicit MathExIntInset(std::string const & name_);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void symbol(string const &);
+       void symbol(std::string const &);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -49,7 +52,7 @@ private:
        bool hasScripts() const;
 
        ///
-       string symbol_;
+       std::string symbol_;
 };
 
 #endif
index 8f26fd7c5e5e3d66da7cd2fe0b33cdf398dcfb9f..e0d575daf485b8997a9f6e438b65a1cabc5d1b0c 100644 (file)
@@ -44,6 +44,7 @@ using lyx::support::LibFileSearch;
 using lyx::support::RunCommand;
 using lyx::support::subst;
 
+using std::string;
 using std::endl;
 using std::find_if;
 
index 5b844a934b4dec5c2102dad1567274f53e387311..3fcf32a5b1e502e90a9ed67224d8bb8e92f8d025 100644 (file)
@@ -12,8 +12,8 @@
 #ifndef MATH_EXTERN_H
 #define MATH_EXTERN_H
 
+#include <string>
 
-#include "support/std_string.h"
 
 class NormalStream;
 class MapleStream;
@@ -35,7 +35,7 @@ void octave(MathArray const &, OctaveStream &);
 bool extractNumber(MathArray const & ar, int & i);
 bool extractNumber(MathArray const & ar, double & i);
 
-MathArray pipeThroughExtern(string const & lang, string const & extra,
+MathArray pipeThroughExtern(std::string const & lang, std::string const & extra,
        MathArray const & ar);
 
 #endif
index f92e7715e71640639501679750f7871ed447aa39..49ef14c45dd404c9d847c87c878cd54498a2c074 100644 (file)
@@ -64,6 +64,7 @@
 using lyx::support::LibFileSearch;
 using lyx::support::split;
 
+using std::string;
 using std::endl;
 using std::istringstream;
 
index e25908f75604a26e04cd612f5a40275229e92b03..6ff6af41bd69b5f7a492c560d8123d56b5f6ca20 100644 (file)
 #define MATH_FACTORY_H
 
 
-#include "support/std_string.h"
+#include <string>
+
 
 class MathAtom;
 class MathArray;
 
-MathAtom createMathInset(string const &);
+MathAtom createMathInset(std::string const &);
 
 /** Fills ar with the contents of str.
  *  str is created by the frontend dialog's and returned to the LyX core.
  *  The function returns true if successful.
  */
-bool createMathInset_fromDialogStr(string const &, MathArray &);
+bool createMathInset_fromDialogStr(std::string const &, MathArray &);
 
 #endif
index 0c74e24690d453e3190b9af4df246bfcc3672003..2ffacba941361f8ebd00e7900c528d57c9afc6aa 100644 (file)
@@ -17,6 +17,7 @@
 #include "LaTeXFeatures.h"
 #include "support/std_ostream.h"
 
+using std::string;
 using std::auto_ptr;
 
 
index 1861b03a0a2f3a8d5f516caa2f6e033c99ab4ed5..5174823b0435ab38c55385dbb159f797a1cb69bf 100644 (file)
@@ -31,7 +31,7 @@ public:
        /// are we in math mode, text mode, or unsure?
        mode_type currentMode() const;
        ///
-       string name() const;
+       std::string name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
index c08f062f5c5016e1ea0689b3d132d2848bd47b58..b592e654d26f5e11fd922f54e8169f2818a5792f 100644 (file)
@@ -19,6 +19,7 @@
 #include "frontends/Painter.h"
 
 
+using std::string;
 using std::max;
 using std::auto_ptr;
 
index b41ef948bb4f9860c319d434f469efab11a00d61..90ea9c9fd755026bb7c5d378b6861ff1e3c6353b 100644 (file)
@@ -36,7 +36,7 @@ public:
        /// identifies FracInsets
        MathFracInset const * asFracInset() const;
        ///
-       string name() const;
+       std::string name() const;
 
        ///
        void write(WriteStream & os) const;
index 8b330317a58762cf7a5d403d6a31b16e2e9a66d9..18a2a5d6cc8d1365a34f2a6810d17e3fbd85781e 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef MATH_GRIDINFO_H
 #define MATH_GRIDINFO_H
 
-#include "support/std_string.h"
 
 struct ColInfo
 {
index 04435c235acd2ed0f78b8ca08ea75353f00289a4..785995c4d33dfd35b2e3c687874e313807dda9ed 100644 (file)
@@ -27,6 +27,7 @@ using std::max;
 using std::min;
 using std::swap;
 
+using std::string;
 using std::auto_ptr;
 using std::istream;
 using std::istringstream;
index d34834f60ccc83de11f011116c6777add197ac94..45c722d5501fceaa2b8126f3e5a7e0ad8f98108a 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "math_nestinset.h"
 #include "lyxlength.h"
-#include "support/std_string.h"
 
 
 /** Gridded math inset base class.
@@ -31,7 +30,7 @@ public:
                /// a dummy cell before a multicolumn cell
                int dummy_;
                /// special multi colums alignment
-               string align_;
+               std::string align_;
                /// these should be a per-cell property, but ok to have it here
                /// for single-column grids like paragraphs
                mutable int glue_;
@@ -87,11 +86,11 @@ public:
        /// sets nrows and ncols to 1
        MathGridInset();
        /// constructor from columns description, creates one row
-       MathGridInset(char valign, string const & halign);
+       MathGridInset(char valign, std::string const & halign);
        /// Note: columns first!
        MathGridInset(col_type m, row_type n);
        ///
-       MathGridInset(col_type m, row_type n, char valign, string const & halign);
+       MathGridInset(col_type m, row_type n, char valign, std::string const & halign);
        /// Ensures that the dialog is closed.
        ~MathGridInset();
        ///
@@ -107,13 +106,13 @@ public:
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///
-       void halign(string const & align);
+       void halign(std::string const & align);
        ///
        void halign(char c, col_type col);
        ///
        char halign(col_type col) const;
        ///
-       string halign() const;
+       std::string halign() const;
        ///
        void valign(char c);
        ///
@@ -224,11 +223,11 @@ protected:
        /// returns y offset of cell compared to inset
        int cellYOffset(idx_type idx) const;
        /// returns proper 'end of line' code for LaTeX
-       virtual string eolString(row_type row, bool fragile = false) const;
+       virtual std::string eolString(row_type row, bool fragile = false) const;
        /// returns proper 'end of column' code for LaTeX
-       virtual string eocString(col_type col, col_type lastcol) const;
+       virtual std::string eocString(col_type col, col_type lastcol) const;
        /// extract number of columns from alignment string
-       col_type guessColumns(string const & halign) const;
+       col_type guessColumns(std::string const & halign) const;
        /// splits cells and shifts right part to the next cell
        void splitCell(idx_type &, pos_type & pos);
 
index 5c376e051cd86f9c1f25f75adf46bb28d2af8fe1..48f874db5fce7bace80d31ae07816979d35bc992 100644 (file)
@@ -35,6 +35,7 @@ using lyx::support::trim;
 using std::endl;
 using std::max;
 
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostringstream;
index 22b108da3380e7d7258d1e53b47c8c085c14bdcd..8e06ef542e605dd30c572017b6dad8fb8a013048 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        MathHullInset();
        ///
-       explicit MathHullInset(string const & type);
+       explicit MathHullInset(std::string const & type);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -37,9 +37,9 @@ public:
        ///
        void drawT(TextPainter &, int x, int y) const;
        ///
-       string label(row_type row) const;
+       std::string label(row_type row) const;
        ///
-       void label(row_type row, string const & label);
+       void label(row_type row, std::string const & label);
        ///
        void numbered(row_type row, bool num);
        ///
@@ -54,7 +54,7 @@ public:
        dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
        /// Appends \c list with all labels found within this inset.
        void getLabelList(Buffer const &,
-                         std::vector<string> & list) const;
+                         std::vector<std::string> & list) const;
        ///
        void validate(LaTeXFeatures & features) const;
        /// identifies MatrixInsets
@@ -74,9 +74,9 @@ public:
        void delCol(col_type col);
 
        /// get type
-       string const & getType() const;
+       std::string const & getType() const;
        /// change type
-       void mutate(string const &);
+       void mutate(std::string const &);
 
        ///
        int defaultColSpace(col_type col);
@@ -88,7 +88,7 @@ public:
        bool idxLast(idx_type &, pos_type &) const;
 
        ///
-       string fileInsetLabel() const;
+       std::string fileInsetLabel() const;
        ///
        void write(WriteStream & os) const;
        ///
@@ -100,11 +100,11 @@ public:
 
 protected:
        ///
-       string eolString(row_type row, bool fragile) const;
+       std::string eolString(row_type row, bool fragile) const;
 
 private:
        ///
-       void setType(string const & type);
+       void setType(std::string const & type);
        ///
        void validate1(LaTeXFeatures & features);
        ///
@@ -112,7 +112,7 @@ private:
        ///
        void footer_write(WriteStream &) const;
        ///
-       string nicelabel(row_type row) const;
+       std::string nicelabel(row_type row) const;
        ///
        void doExtern(FuncRequest const & func, idx_type & idx, pos_type & pos);
        ///
@@ -125,11 +125,11 @@ private:
        bool colChangeOK() const;
 
        /// "none", "simple", "display", "eqnarray",...
-       string type_;
+       std::string type_;
        ///
        std::vector<int> nonum_;
        ///
-       std::vector<string> label_;
+       std::vector<std::string> label_;
 };
 
 #endif
index 0c4fae9707078b78e3a2430222d049a1b5136efe..f52a6edd7bd00ddd0797df3e3cb8c45e478404b2 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "formulabase.h"
 
+
+using std::string;
 using std::ostream;
 using std::endl;
 
index a4c0751dfba9bccbf34688b872cea69c3538b72b..981a5e5b1afafc052c84608ac0fb440e89b90971 100644 (file)
 #ifndef MATH_INSET_H
 #define MATH_INSET_H
 
-#include "support/std_string.h"
 #include "insets/insetbase.h"
 
+#include <string>
+
 /**
 
 Abstract base class for all math objects.  A math insets is for use of the
@@ -203,7 +204,7 @@ public:
        virtual bool takesLimits() const { return false; }
 
        /// char char code if possible
-       virtual void handleFont(string const &) {}
+       virtual void handleFont(std::string const &) {}
        /// is this inset equal to a given other inset?
        virtual bool match(MathAtom const &) const { return false; }
        /// replace things by other things
@@ -248,13 +249,13 @@ public:
        /// LyXInset stuff
        virtual bool numberedType() const { return false; }
        /// hull type
-       virtual string const & getType() const;
+       virtual std::string const & getType() const;
        /// change type
-       virtual void mutate(string const &) {}
+       virtual void mutate(std::string const &) {}
        /// how is the inset called in the .lyx file?
-       virtual string fileInsetLabel() const;
+       virtual std::string fileInsetLabel() const;
        /// usually the latex name
-       virtual string name() const;
+       virtual std::string name() const;
 
 protected:
        /// a dirty hack
index 64abb5c368577e1f656518880d2d6dcb8cc5df79..8807f0ec5b52e6a8e0e947bdcc451af86eab2bbb 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_support.h"
 #include "dimension.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 7f89bd9f25ddcc920c326beddc33192a6d95aad0..aa30e03bd92639571360f9a8eaeb0d3b73423111 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "math_inset.h"
 #include "lyxlength.h"
-#include "support/std_string.h"
 
 
 /// The \kern primitive
@@ -27,7 +26,7 @@ public:
        ///
        explicit MathKernInset(LyXLength const & wid);
        ///
-       explicit MathKernInset(string const & wid);
+       explicit MathKernInset(std::string const & wid);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
index d3dc4b638f0d8decbe6431c2a34620561858cd6d..b26b700fb1b19362f9e5e0072313f1ba3f64413e 100644 (file)
@@ -14,6 +14,8 @@
 #include "math_data.h"
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 0b7cbd199a1b3c5392650211b4874c2c04a1a473..71a5ae71ec063f422640e42377e5d71960b45586 100644 (file)
@@ -24,7 +24,7 @@ public:
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       string name() const;
+       std::string name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
index 82a36f3a6a7c4f48723a7c81ba2c185b16b3df0a..aaad86b832c2c7a52db88da4fbcf44ce63b429d6 100644 (file)
@@ -21,6 +21,7 @@
 #include "LaTeXFeatures.h"
 
 
+using std::string;
 using std::max;
 using std::auto_ptr;
 using std::endl;
index 1ec617c35f2e253f665abc08796a5d7bcd1155eb..6047c3811d2b8e74d02cdda34b3fb990bb1b4dbb 100644 (file)
@@ -16,7 +16,7 @@
 #include "math_data.h"
 #include "math_nestinset.h"
 #include "metricsinfo.h"
-#include "support/std_string.h"
+
 
 class MathMacroTemplate;
 
@@ -25,7 +25,7 @@ class MathMacroTemplate;
 class MathMacro : public MathNestInset {
 public:
        /// A macro can be built from an existing template
-       explicit MathMacro(string const &);
+       explicit MathMacro(std::string const &);
        ///
        MathMacro(MathMacro const &);
        ///
@@ -66,7 +66,7 @@ private:
        ///
        void operator=(MathMacro const &);
        ///
-       string name() const;
+       std::string name() const;
        ///
        bool defining() const;
        ///
index e6475be71d65a9cba902815f29db3603a8aa3340..a0456960f9e1be832e89693adaab9a1d61aede90 100644 (file)
@@ -15,6 +15,7 @@
 #include "debug.h"
 
 
+using std::string;
 using std::endl;
 
 
index d500b74645a26e963844cc3499f98fc022f3215c..ede1928551618cd5de57ab87407d78a8dade09fb 100644 (file)
 #ifndef MATH_MACROTABLE_H
 #define MATH_MACROTABLE_H
 
-#include <map>
-#include "support/std_string.h"
 #include "math_atom.h"
 
+#include <map>
+
 
 class MathMacroTable {
 public:
        ///
        static void create(MathAtom const &);
        ///
-       static MathAtom & provide(string const & name);
+       static MathAtom & provide(std::string const & name);
        ///
-       static bool has(string const & name);
+       static bool has(std::string const & name);
        ///
        static void dump();
 private:
        ///
-       typedef std::map<string, MathAtom> table_type;
+       typedef std::map<std::string, MathAtom> table_type;
        //
        static table_type macro_table;
 };
index 52aedb0288ec466e9bef0bd89076cc2302a86fcf..7efaee6fb5267b7b914d6921c80a83a5037cb907 100644 (file)
@@ -17,6 +17,8 @@
 #include "debug.h"
 #include "LColor.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::endl;
 
index 406515756f226eb16523f180c6bc4b7c13932746..a246e904088ff60418c131938e8566ec5275828a 100644 (file)
 
 #include "math_data.h"
 #include "math_nestinset.h"
-#include "support/std_string.h"
+
+#include <string>
 
 
 class MathMacro;
 
+
 //class MathMacroTemplate : public MathInset, boost::noncopyable
 
 /// This class contains the macro definition.
@@ -28,7 +30,7 @@ public:
        ///
        MathMacroTemplate();
        ///
-       MathMacroTemplate(string const & name, int nargs, string const & type,
+       MathMacroTemplate(std::string const & name, int nargs, std::string const & type,
                MathArray const & = MathArray(), MathArray const & = MathArray());
        ///
        explicit MathMacroTemplate(std::istream & is);
@@ -41,7 +43,7 @@ public:
        ///
        void numargs(int);
        ///
-       string name() const;
+       std::string name() const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -54,9 +56,9 @@ private:
        ///
        int numargs_;
        ///
-       string name_;
+       std::string name_;
        /// newcommand or renewcommand or def
-       string type_;
+       std::string type_;
 };
 
 #endif
index 50d7baccd3e5a458138908795bc52277ca3bb5aa..027c18a2c3ca5f45065d59c67d49f9bbd4db2ffe 100644 (file)
@@ -22,7 +22,7 @@ public:
        ///
        MathMatrixInset(MathGridInset const &);
        ///
-       MathMatrixInset(string const & str);
+       MathMatrixInset(std::string const & str);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        /// identifies MatrixInsets
index d93cdbc3197afcc96366729db8a597d94eb7b049..01ffcf170f4e749e2e1473ce1aa6fcefd182fa8a 100644 (file)
@@ -15,6 +15,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index aca947bb9c02395b49e10fc521a97e6aa528bd42..fc9ed67070804c1f6a2363d3d14cee0851c16abc 100644 (file)
@@ -21,7 +21,7 @@
 class MathNumberInset : public MathInset {
 public:
        ///
-       explicit MathNumberInset(string const & s);
+       explicit MathNumberInset(std::string const & s);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -29,7 +29,7 @@ public:
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       string str() const { return str_; }
+       std::string str() const { return str_; }
        ///
        MathNumberInset * asNumberInset() { return this; }
 
@@ -46,6 +46,6 @@ public:
 
 private:
        /// the number as string
-       string str_;
+       std::string str_;
 };
 #endif
index 7a4ec536bbc6d68827d2dde027cd089d9de1b019..a2c9ccd62487b55b876ffdd49bb7bb6cdc537835 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "debug.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::endl;
 
index 6800cadf2150361013facfcfda7e5366bc68afbe..01b0af95084555ed5067cbecfcea9f50c73407ca 100644 (file)
@@ -36,14 +36,14 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
-       void setWidth(string const & width);
+       void setWidth(std::string const & width);
        ///
-       void setPosition(string const & pos);
+       void setPosition(std::string const & pos);
 private:
        /// width on screen
        int lyx_width_;
        /// width for TeX
-       string tex_width_;
+       std::string tex_width_;
        /// one of htb
        char position_;
 };
index b19c75e53a71ffe6935b563b746e7102ec642774..dee7aa44de5a7fd084bc22019120d90f9094e215 100644 (file)
@@ -71,6 +71,7 @@ using std::atoi;
 using std::endl;
 using std::fill;
 
+using std::string;
 using std::ios;
 using std::istream;
 using std::istringstream;
index 0d7e49eb1d27dc9ebd58a1cbec6efa58c34963b3..90fc7bf20e2fb5d7a918240c450dcddbf829bc0a 100644 (file)
@@ -13,8 +13,8 @@
 #ifndef MATH_PARSER_H
 #define MATH_PARSER_H
 
+#include <string>
 
-#include "support/std_string.h"
 
 class MathAtom;
 class MathArray;
@@ -25,32 +25,32 @@ class LyXLex;
 ///
 struct latexkeys {
        /// name of the macro or primitive
-       string name;
+       std::string name;
        /// name of a inset that handles that macro
-       string inset;
+       std::string inset;
        /// position of the ting in a font
-       string draw;
+       std::string draw;
        /// operator/..., fontname e
-       string extra;
+       std::string extra;
        /// how is this called as XML entity?
-       string xmlname;
+       std::string xmlname;
 };
 
 
 /// check whether this is a well-known (La)TeX macro or primitive
-latexkeys const * in_word_set(string const & str);
+latexkeys const * in_word_set(std::string const & str);
 
 /// parse formula from a string
-bool mathed_parse_normal(MathAtom &, string const &);
+bool mathed_parse_normal(MathAtom &, std::string const &);
 /// ... a stream
 bool mathed_parse_normal(MathAtom &, std::istream &);
 /// ... the LyX lexxer
 bool mathed_parse_normal(MathAtom &, LyXLex &);
 /// ... the LyX lexxer
-void mathed_parse_normal(MathGridInset &, string const &);
+void mathed_parse_normal(MathGridInset &, std::string const &);
 
 /// parse a single cell from a string
-void mathed_parse_cell(MathArray & ar, string const &);
+void mathed_parse_cell(MathArray & ar, std::string const &);
 /// ... a stream
 void mathed_parse_cell(MathArray & ar, std::istream &);
 
index 40a4b79ce0f39e85855d2cd6bdebf4151f95d92c..89529c9cadf1f9003a411641f36420e84dda5bfb 100644 (file)
 #include "math_symbolinset.h"
 #include "debug.h"
 #include "funcrequest.h"
+
 #include <boost/assert.hpp>
 
+
+using std::string;
 using std::max;
 using std::auto_ptr;
 using std::endl;
index c54ecc0ffb44bf9f6acf23c12cc3fd86943ddda2..c7bf710fd7dc4569b18dffcc96d81f44721ba6d2 100644 (file)
@@ -17,6 +17,8 @@
 #include "LaTeXFeatures.h"
 #include "LColor.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index da61168c005147f5ae2bfc4470b25cb335a74069..00dd1a80186af52b02f221ea0eec99eb67fa65d9 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        explicit MathSpaceInset(int sp);
        ///
-       explicit MathSpaceInset(string const & name);
+       explicit MathSpaceInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
index 9d4e0058aaa2a03b0272f394db06f6a720200351..83a9caf3b38e7aa6cc6ff56506c8e55fe3b83779 100644 (file)
@@ -15,6 +15,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 94ab3287c8c41db2a1b0006e42d5c07fe01379a2..98ac168c2383c17979cd9ed0153104459bbc5f04 100644 (file)
 #define MATH_SPLITINSET_H
 
 #include "math_gridinset.h"
-#include "support/std_string.h"
 
 
 class MathSplitInset : public MathGridInset {
 public:
        ///
-       explicit MathSplitInset(string const & name);
+       explicit MathSplitInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -30,7 +29,7 @@ public:
        char defaultColAlign(col_type);
 private:
        ///
-       string name_;
+       std::string name_;
 };
 
 #endif
index eabcaf5665438b990029cbb46d40d44ba79e7f4f..5208ba7592b5e2440b46267f14a76806c3790ff2 100644 (file)
@@ -14,6 +14,9 @@
 #include "math_mathmlstream.h"
 #include "support/std_ostream.h"
 
+using std::string;
+
+
 WriteStream & operator<<(WriteStream & ws, string const & s)
 {
        ws << s.c_str();
index d76b1cb66e20548a6ef8f988dfc0ebd6b3f09923..32c6cf7a0ad04ae89bf590a6cd67cb19a923c314 100644 (file)
@@ -12,8 +12,7 @@
 #ifndef MATH_STREAMSTR_H
 #define MATH_STREAMSTR_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 class WriteStream;
 class NormalStream;
@@ -27,11 +26,11 @@ class OctaveStream;
 // writing strings directly
 //
 
-WriteStream & operator<<(WriteStream & ws, string const & s);
-NormalStream & operator<<(NormalStream & ns, string const & s);
-MapleStream & operator<<(MapleStream & ms, string const & s);
-MaximaStream & operator<<(MaximaStream & ms, string const & s);
-MathematicaStream & operator<<(MathematicaStream & ms, string const & s);
-MathMLStream & operator<<(MathMLStream & ms, string const & s);
-OctaveStream & operator<<(OctaveStream & os, string const & s);
+WriteStream & operator<<(WriteStream & ws, std::string const & s);
+NormalStream & operator<<(NormalStream & ns, std::string const & s);
+MapleStream & operator<<(MapleStream & ms, std::string const & s);
+MaximaStream & operator<<(MaximaStream & ms, std::string const & s);
+MathematicaStream & operator<<(MathematicaStream & ms, std::string const & s);
+MathMLStream & operator<<(MathMLStream & ms, std::string const & s);
+OctaveStream & operator<<(OctaveStream & os, std::string const & s);
 #endif
index 1df9f46d1f4ef007dc415d035eb557ff6a4c5b17..dfb664c26c68b5f6a588d14c438fb730969c8996 100644 (file)
@@ -15,6 +15,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 5f38f66a9fc64889ca15b1a27d0ade9a776337f6..bbbd670348893bdab95da87e4e4d0b26c0f48ac5 100644 (file)
@@ -22,7 +22,7 @@
 class MathStringInset : public MathInset {
 public:
        ///
-       explicit MathStringInset(string const & s);
+       explicit MathStringInset(std::string const & s);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -30,7 +30,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string str() const { return str_; }
+       std::string str() const { return str_; }
        ///
        MathStringInset * asStringInset() { return this; }
 
@@ -49,6 +49,6 @@ public:
 
 private:
        /// the string
-       string str_;
+       std::string str_;
 };
 #endif
index e8291db742112efb3c1f425f947ff5994650df24..050d5401cfcdb33481830180496c2e58de51fcac 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <map>
 
+
+using std::string;
 using std::max;
 using std::endl;
 
index af36ac0241ce770a7453c63a8d41bb3de6e8d5d9..2788a7e46b611259c697cc7035542ceb23fe5be4 100644 (file)
@@ -13,7 +13,8 @@
 #ifndef MATH_SUPPORT_H
 #define MATH_SUPPORT_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 class PainterInfo;
 class LyXFont;
@@ -26,26 +27,26 @@ int mathed_char_ascent(LyXFont const &, unsigned char c);
 int mathed_char_descent(LyXFont const &, unsigned char c);
 
 void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
-       string const & name);
+       std::string const & name);
 
-void mathed_string_dim(LyXFont const & font, string const & s, Dimension & dim);
-int mathed_string_width(LyXFont const &, string const & s);
+void mathed_string_dim(LyXFont const & font, std::string const & s, Dimension & dim);
+int mathed_string_width(LyXFont const &, std::string const & s);
 
 void drawStr(PainterInfo & pi,
-       LyXFont const &, int x, int y, string const & s);
-void drawStrRed(PainterInfo & pi, int x, int y, string const & s);
-void drawStrBlack(PainterInfo & pi, int x, int y, string const & s);
+       LyXFont const &, int x, int y, std::string const & s);
+void drawStrRed(PainterInfo & pi, int x, int y, std::string const & s);
+void drawStrBlack(PainterInfo & pi, int x, int y, std::string const & s);
 void drawChar(PainterInfo & pi, LyXFont const & font, int x, int y, char c);
 
 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
 
-void augmentFont(LyXFont & f, string const & cmd);
+void augmentFont(LyXFont & f, std::string const & cmd);
 
-bool isFontName(string const & name);
+bool isFontName(std::string const & name);
 
 // converts single cell to string
-string asString(MathArray const & ar);
+std::string asString(MathArray const & ar);
 // converts string to single cell
-void asArray(string const & str, MathArray & ar);
+void asArray(std::string const & str, MathArray & ar);
 
 #endif
index 2bed3ca1da0c1e68842e196379ab87cba78deda5..b7cb9d8c40c81b470c582e1eabbc7170e0de1cf7 100644 (file)
@@ -21,6 +21,7 @@
 #include "debug.h"
 
 
+using std::string;
 using std::auto_ptr;
 
 
index 42a4bc1c93ef7a1f44d8eadb0332c859520ff2a0..174e59cc686ea88ab1899fe7f0c295341ce2741c 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        explicit MathSymbolInset(char const * name);
        ///
-       explicit MathSymbolInset(string const & name);
+       explicit MathSymbolInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -43,7 +43,7 @@ public:
        /// identifies SymbolInset as such
        MathSymbolInset const * asSymbolInset() const { return this; }
        /// the LaTeX name of the symbol (without the backslash)
-       string name() const;
+       std::string name() const;
        ///
        bool match(MathAtom const &) const;
        /// request "external features"
index 7d297507e567baa4b7ea99800561eceb080a76dc..571b1bc30b6dfc2141b0f455672f8717325fccd5 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <iterator>
 
+
+using std::string;
 using std::auto_ptr;
 
 
index 741aa4a2b8d63ef8a9ccb4cd8f7f4c7c6810a650..88224601b2efb5a67e9513c8200e2f86deabe97b 100644 (file)
 class MathTabularInset : public MathGridInset {
 public:
        ///
-       MathTabularInset(string const &, int m, int n);
+       MathTabularInset(std::string const &, int m, int n);
        ///
-       MathTabularInset(string const &, int m, int n,
-               char valign, string const & halign);
+       MathTabularInset(std::string const &, int m, int n,
+               char valign, std::string const & halign);
        ///
-       MathTabularInset(string const &, char valign, string const & halign);
+       MathTabularInset(std::string const &, char valign, std::string const & halign);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -45,7 +45,7 @@ public:
 
 private:
        ///
-       string name_;
+       std::string name_;
 };
 
 #endif
index 2e9f6bde2e0fbe57d28935938f6de9aaf783f411..a8a0be9aa15546e65ac09b7bd4ebf3b43c5d351a 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index c6f66248b0f550dcba3b3918e318885ceb3f2bcd..f7178a2c39a5865590a18beda55b1c90c576e2f4 100644 (file)
@@ -18,7 +18,7 @@
 class MathUnknownInset : public MathDimInset {
 public:
        ///
-       explicit MathUnknownInset(string const & name,
+       explicit MathUnknownInset(std::string const & name,
                bool final = true, bool black = false);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
@@ -27,9 +27,9 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void setName(string const & name);
+       void setName(std::string const & name);
        ///
-       string name() const;
+       std::string name() const;
        /// identifies UnknownInsets
        MathUnknownInset const * asUnknownInset() const { return this; }
        /// identifies UnknownInsets
@@ -53,7 +53,7 @@ public:
        bool final() const;
 private:
        ///
-       string name_;
+       std::string name_;
        /// are we finished creating the name?
        bool final_;
        ///
index c798a5316d181c387a94b800d879db139f0ae6c8..75a16330ecd0e90d4d4b030d9261ae9800b3c17a 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
index e4f636f79686d1b7afbd1f9ce470014a4cbe7f47..a828e3f5f6c79c90324982b3572e34f6a837c053 100644 (file)
 #define MATH_XARROWINSET_H
 
 #include "math_fracbase.h"
-#include "support/std_string.h"
 
 
 /// Wide arrows like \xrightarrow
 class MathXArrowInset : public MathFracbaseInset {
 public:
        ///
-       explicit MathXArrowInset(string const & name);
+       explicit MathXArrowInset(std::string const & name);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -36,6 +35,6 @@ private:
        ///
        bool upper() const;
        ///
-       string const name_;
+       std::string const name_;
 };
 #endif
index 5a89bbd48863115d6b108c34f3eb5eb1860be569..b502fedc67c0582d58ae0dd925df5dd3422f1b01 100644 (file)
@@ -25,6 +25,7 @@
 #include "frontends/Dialogs.h"
 
 
+using std::string;
 using std::auto_ptr;
 using std::endl;
 
index 796b83023d4344ec6d35e69f466e4543d47dfec2..a70f3f3c4230779f157777e034f56317efe99bdc 100644 (file)
@@ -21,7 +21,7 @@ public:
        ///
        RefInset();
        ///
-       explicit RefInset(string const & data);
+       explicit RefInset(std::string const & data);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
        ///
@@ -31,7 +31,7 @@ public:
        ///
        dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
        ///
-       string const screenLabel() const;
+       std::string const screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
@@ -49,17 +49,17 @@ public:
 
        struct ref_type_info {
                ///
-               string latex_name;
+               std::string latex_name;
                ///
-               string gui_name;
+               std::string gui_name;
                ///
-               string short_gui_name;
+               std::string short_gui_name;
        };
        static ref_type_info types[];
        ///
-       static int getType(string const & name);
+       static int getType(std::string const & name);
        ///
-       static string const & getName(int type);
+       static std::string const & getName(int type);
 };
 
 #endif
index e437ffced867f78ee013c8009370e0b6b15e28e9..0fcf097708f33bccf4eca75225e2270050aa5e56 100644 (file)
@@ -16,6 +16,8 @@
 using lyx::support::GetEnvPath;
 using lyx::support::lyx_localedir;
 
+using std::string;
+
 
 #ifdef ENABLE_NLS
 
index 1c04d9c73588d05c221eb8c82c7214730013a41f..50bc36ca119c14bed7c56979e4c52c58f5e5ab3e 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef MESSAGES_H
 #define MESSAGES_H
 
-#include "support/std_string.h"
-
 #include <boost/scoped_ptr.hpp>
 
 ///
@@ -21,11 +19,11 @@ public:
        ///
        Messages();
        ///
-       Messages(string const & l);
+       Messages(std::string const & l);
        ///
        ~Messages();
        ///
-       string const get(string const & msg) const;
+       std::string const get(std::string const & msg) const;
 private:
        class Pimpl;
        boost::scoped_ptr<Pimpl> pimpl_;
index e00e59f853aeb442cd845904aef2eb66971e4f2e..7307defd4f5575ce7c001634a7404249c05cedb5 100644 (file)
@@ -16,6 +16,7 @@
 #include "BufferView.h"
 #include "LColor.h"
 
+using std::string;
 
 
 MetricsBase::MetricsBase()
@@ -184,5 +185,3 @@ ColorChanger::~ColorChanger()
 {
        orig_.setColor(lcolor.getFromGUIName(save_));
 }
-
-
index b647dc458e7417a9b25d3ef36ea7225a799bbfea..4b16ac312002bcc8a294336208398950ee28b4a3 100644 (file)
@@ -13,7 +13,8 @@
 #define METRICSINFO_H
 
 #include "lyxfont.h"
-#include "support/std_string.h"
+
+#include <string>
 
 class Painter;
 class BufferView;
@@ -48,7 +49,7 @@ struct MetricsBase {
        /// current math style (display/text/script/..)
        Styles style;
        /// name of current font - mathed specific
-       string fontname;
+       std::string fontname;
        /// This is the width available in pixels
        int textwidth;
 };
@@ -176,9 +177,9 @@ struct WidthChanger : public Changer<MetricsBase>
 
 
 // temporarily change the used color
-struct ColorChanger : public Changer<LyXFont, string> {
+struct ColorChanger : public Changer<LyXFont, std::string> {
        ///
-       ColorChanger(LyXFont & font, string const & color);
+       ColorChanger(LyXFont & font, std::string const & color);
        ///
        ~ColorChanger();
 };
index 071f5049bb8f2d763d8cb7dfbcb389b3e1b9d9ae..a2435a17b9a7d5f7efba7cc5c34d1c4fc48c615e 100644 (file)
@@ -46,7 +46,7 @@ using lyx::support::contains;
 using lyx::support::subst;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 using std::ostringstream;
 
index 62b1b4048fcc4d3bf87aa13379b54620fee7cb3d..fd03c1c62010f8538cda6fe075d4c4268e8df0d8 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "support/types.h"
 
-#include "support/std_string.h"
 
 class Buffer;
 class BufferParams;
@@ -80,9 +79,9 @@ public:
        bool isMultiLingual(BufferParams const &);
 
        ///
-       string const asString(Buffer const &, bool label) const;
+       std::string const asString(Buffer const &, bool label) const;
        ///
-       string const asString(Buffer const &, lyx::pos_type beg, lyx::pos_type end,
+       std::string const asString(Buffer const &, lyx::pos_type beg, lyx::pos_type end,
                              bool label) const;
 
        ///
@@ -185,12 +184,12 @@ public:
        int beginningOfBody() const;
 
        ///
-       string const & getLabelstring() const;
+       std::string const & getLabelstring() const;
 
        /// the next two functions are for the manual labels
-       string const getLabelWidthString() const;
+       std::string const getLabelWidthString() const;
        ///
-       void setLabelWidthString(string const & s);
+       void setLabelWidthString(std::string const & s);
        ///
        char getAlign() const;
        /// The nesting depth of a paragraph
index d045a69223e1d71f93bef2767888c2a4f6c63165..91bca9935817ba83568024db2d3051a5a562e956 100644 (file)
@@ -46,7 +46,7 @@ using lyx::support::bformat;
 using lyx::support::subst;
 
 using std::endl;
-
+using std::string;
 using std::istringstream;
 using std::ostream;
 
index f28ce2a1d2157229de25e4da0e35c2d7b66423f6..a67354d5a95ed68cb1c3c7ea6fb809c109456067 100644 (file)
@@ -15,7 +15,8 @@
 #include "ParagraphList_fwd.h"
 #include "support/types.h"
 
-#include "support/std_string.h"
+#include <string>
+
 
 class Buffer;
 class BufferParams;
@@ -70,7 +71,7 @@ void latexParagraphs(Buffer const & buf,
                     std::ostream & ofs,
                     TexRow & texrow,
                     LatexRunParams const &,
-                    string const & everypar = string());
+                    std::string const & everypar = std::string());
 
 /// read a paragraph from a .lyx file. Returns number of unrecognised tokens
 int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
index 30abc6913f626cd51e38efe2f40a12c4b5dca35f..8cec598fd3e144875658b910d7cd13ef6a88f8eb 100644 (file)
@@ -31,8 +31,7 @@ using lyx::pos_type;
 
 using std::endl;
 using std::upper_bound;
-using std::lower_bound;
-
+using std::string;
 using std::ostream;
 
 
index 941ef605fc49853ce865850eac87fe8bed289eae..1ed47c4f7b9884b74e5063dc2d1c43726b0633b1 100644 (file)
@@ -173,7 +173,7 @@ private:
        ///
        lyx::pos_type size() const { return owner_->size(); }
        /// match a string against a particular point in the paragraph
-       bool isTextAt(string const & str, lyx::pos_type pos) const;
+       bool isTextAt(std::string const & str, lyx::pos_type pos) const;
 
        /// for recording and looking up changes in revision tracking mode
        boost::scoped_ptr<Changes> changes_;
index 8f0c93b5dde79449f4b79a31f9cc43d37c18a1fe..a3b050afca072d18af74477a795ecc347d028510 100644 (file)
@@ -27,6 +27,7 @@ extern "C" {
 #include <boost/assert.hpp>
 
 using std::endl;
+using std::string;
 
 
 PSpell::PSpell(BufferParams const &, string const & lang)
index 4de75c2320f470b5f7e1d015795a36a2905a3d00..2b676d8d438e1a0a983a2eafebfa131235a3c3b0 100644 (file)
@@ -30,7 +30,7 @@ public:
        /**
         * Initialise the spellchecker with the given buffer params and language.
         */
-       PSpell(BufferParams const & params, string const & lang);
+       PSpell(BufferParams const & params, std::string const & lang);
 
        virtual ~PSpell();
 
@@ -50,21 +50,21 @@ public:
        virtual void accept(WordLangTuple const &);
 
        /// return the next near miss after a MISSED result
-       virtual string const nextMiss();
+       virtual std::string const nextMiss();
 
        /// give an error message on messy exit
-       virtual string const error();
+       virtual std::string const error();
 
 private:
        /// add a manager of the given language
-       void addManager(string const & lang);
+       void addManager(std::string const & lang);
 
        struct Manager {
                PspellManager * manager;
                PspellConfig * config;
        };
 
-       typedef std::map<string, struct Manager> Managers;
+       typedef std::map<std::string, struct Manager> Managers;
 
        /// the managers
        Managers managers_;
index 7acb3393b407438188080347d4d42b5b1ea38dfc..ac1fadd6a0416ad30f1689104b6f3b6c391d9151 100644 (file)
@@ -37,8 +37,9 @@
 #include "support/textutils.h"
 
 
-using std::max;
 using lyx::pos_type;
+using std::max;
+using std::string;
 
 extern int PAPER_MARGIN;
 extern int CHANGEBAR_MARGIN;
index db91894847e2a061ccf60edacadefff47811cd64..6309fa0b2e19a9b038e08f55f650ba279c462269 100644 (file)
@@ -21,6 +21,7 @@ using std::make_pair;
 
 using std::ostream;
 using std::pair;
+using std::string;
 
 
 namespace sgml {
index a598a712c6cb7ce12f4cfb81ffcbf8dcfe684601..73b23346c1b74b70b9d8807f794947e4ba320c49 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "support/types.h"
 
-#include "support/std_string.h"
 #include <iosfwd>
 #include <utility>
 
@@ -26,15 +25,15 @@ namespace sgml {
  * to an SGML entity. Returns true
  * if it was a whitespace character.
  */
-std::pair<bool, string> escapeChar(char c);
+std::pair<bool, std::string> escapeChar(char c);
 
 /// FIXME
 int openTag(std::ostream & os, lyx::depth_type depth,
-           bool mixcont, string const & latexname);
+           bool mixcont, std::string const & latexname);
 
 /// FIXME
 int closeTag(std::ostream & os, lyx::depth_type depth,
-           bool mixcont, string const & latexname);
+           bool mixcont, std::string const & latexname);
 }
 
 #endif // SGML_H
index 0fb7e5b0b410d536d9d458cf50b6b5e1d0d3692d..bb838f85d54a1056ee54fbd609b397027abc825b 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-06  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * std_string.h: delete file
+
 2003-10-06  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * lstrings.C: Small fixes to build using STLport
index a118056160b3cd5131c8fbd04493556cd70418b4..204e85541efa5d3c6ea510acd9f139c60e67b2db 100644 (file)
 
 #include <cerrno>
 
+
+using std::string;
+
+
 #if !S_IRUSR
 # if S_IREAD
 #  define S_IRUSR S_IREAD
index f1ca4618c66541497100c1e921210c1ceeb28203..2bf5eaae778cbd2e28b86dd5381420de4eb352d4 100644 (file)
 #ifndef FILE_INFO_H
 #define FILE_INFO_H
 
-#include <ctime>
+#include <boost/utility.hpp>
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include <boost/utility.hpp>
-#include "support/std_string.h"
+
+#include <ctime>
+#include <string>
+
 
 namespace lyx {
 namespace support {
@@ -36,13 +38,13 @@ public:
        /** Get information about file.
            If link is true, the information is about the link itself, not
            the file that is obtained by tracing the links. */
-       explicit FileInfo(string const & path, bool link = false);
+       explicit FileInfo(std::string const & path, bool link = false);
 
        /// File descriptor
        explicit FileInfo(int fildes);
 
        /// Query a new file
-       FileInfo & newFile(string const & path, bool link = false);
+       FileInfo & newFile(std::string const & path, bool link = false);
 
        /// Query a new file descriptor
        FileInfo & newFile(int fildes);
@@ -54,7 +56,7 @@ public:
        mode_t getMode() const;
 
        /// Constructs standard mode string (ls style)
-       string modeString() const;
+       std::string modeString() const;
 
        ///
        time_t getModificationTime() const;
@@ -135,7 +137,7 @@ private:
        ///
        int err_;
        ///
-       string fname_;
+       std::string fname_;
 };
 
 } // namespace support
index 322da96665d234a3ae88994d45cb7dd0be00b2e5..3d5e84326a65272178ea2cf0d3e1c3f400b201d7 100644 (file)
 #include <boost/bind.hpp>
 #include <boost/signals/trackable.hpp>
 
+
+using std::string;
+
+
 namespace lyx {
 namespace support {
 
index 25c2f22400df8b5ea1bdfd9b59617ffe66e06525..251c7dbdb0cb5a3d6b002e52b6014f74b7fe759d 100644 (file)
@@ -15,8 +15,6 @@
 #ifndef FILEMONITOR_H
 #define FILEMONITOR_H
 
-#include "support/std_string.h"
-
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/signal0.hpp>
@@ -29,16 +27,16 @@ public:
        /** Once monitoring begins, the file will be monitored every
         *  interval ms.
         */
-       FileMonitor(string const & file_with_path, int interval);
+       FileMonitor(std::string const & file_with_path, int interval);
 
        /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
        ~FileMonitor();
 
        ///
-       void reset(string const & file_with_path) const;
+       void reset(std::string const & file_with_path) const;
 
        ///
-       string const & filename() const;
+       std::string const & filename() const;
 
        /// Begin monitoring the file
        void start() const;
index 259d360ff515380e74e273bbadb75f38cf0edbd0..4c20426ca5503153a49ab269ca750077d7c63185 100644 (file)
@@ -69,7 +69,6 @@ libsupport_la_SOURCES = \
        std_istream.h \
        std_ostream.h \
        std_sstream.h \
-       std_string.h \
        systemcall.C \
        systemcall.h \
        tempname.C \
index 0b091fa2ab21c01d90fab99b467676e57aa17e6f..db6f2c041099de8922472baea84d122a4585b42b 100644 (file)
@@ -19,7 +19,7 @@
 using std::atoi;
 #endif
 
-int lyx::support::atoi(string const & nstr)
+int lyx::support::atoi(std::string const & nstr)
 {
        return ::atoi(nstr.c_str());
 }
index 9d9be72ddc595ffe1372d5a713369585d560c6aa..abc79d1605559d4227f7009c4a9a4062194a266a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "support/lyxlib.h"
 
-int lyx::support::chdir(string const & name)
+int lyx::support::chdir(std::string const & name)
 {
 #ifndef __EMX__
        return ::chdir(name.c_str());
index 306d788cc7ba3750335ded6e89ecd92b3d2aa1d5..6ad896f1566d8e53a978155d6ba3124ad91091f8 100644 (file)
 #include <fstream>
 
 #include "support/lyxlib.h"
-#include "support/std_string.h"
+
 
 using std::ifstream;
 using std::ofstream;
 using std::ios;
+using std::string;
+
 
 bool lyx::support::copy(string const & from, string const & to)
 {
index 4c4095855519efedf2ed097cc933a335b29ea83e..337f9cbdb29d2cfeff03dbfc1bc22c7b5ceefee9 100644 (file)
@@ -19,6 +19,9 @@
 #include <boost/assert.hpp>
 
 
+using std::string;
+
+
 namespace lyx {
 namespace support {
 
index 8e6585761dbece51348377b9de2d8d88fb7ad1c4..4085c51fef0341705a1dbf82ba407a15ab136799 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef FILENAME_H
 #define FILENAME_H
 
-#include "support/std_string.h"
+#include <string>
 
 
 namespace lyx {
@@ -25,37 +25,37 @@ public:
        /** \param filename the file in question. Must have an absolute path.
         *  \param save_abs_path how is the file to be output to file?
         */
-       FileName(string const & abs_filename, bool save_abs_path = true);
+       FileName(std::string const & abs_filename, bool save_abs_path = true);
 
        /** \param filename the file in question. May have either a relative
         *  or an absolute path.
         *  \param buffer_path if \c filename has a relative path, generate
         *  the absolute path using this.
         */
-       void set(string const & filename, string const & buffer_path);
+       void set(std::string const & filename, std::string const & buffer_path);
 
        void erase();
        bool empty() const { return name_.empty(); }
 
        bool saveAbsPath() const { return save_abs_path_; }
-       string const absFilename() const { return name_; }
+       std::string const absFilename() const { return name_; }
        /// \param buffer_path if empty, uses `pwd`
-       string const relFilename(string const & buffer_path = string()) const;
+       std::string const relFilename(std::string const & buffer_path = std::string()) const;
        /// \param buf_path if empty, uses `pwd`
-       string const outputFilename(string const & buf_path = string()) const;
+       std::string const outputFilename(std::string const & buf_path = std::string()) const;
        /** \return a mangled version of the absolute file name,
         *  suitable for use in the temp dir when, for example, converting
         *  an image file to another format.
         */
-       string const mangledFilename() const;
+       std::string const mangledFilename() const;
 
        /// \return true if the file is compressed.
        bool isZipped() const;
        /// \return the absolute file name without its .gz, .z, .Z extension
-       string const unzippedFilename() const;
+       std::string const unzippedFilename() const;
 
 private:
-       string name_;
+       std::string name_;
        bool save_abs_path_;
 };
 
index 9956bea164061b0af8cd1edf38d3b4c217d0593c..65751377aa58a370a1f410ba6b820bb83831eb5b 100644 (file)
@@ -76,7 +76,7 @@ using std::isalpha;
 using std::endl;
 using std::getline;
 using std::make_pair;
-
+using std::string;
 using std::ifstream;
 using std::ostringstream;
 using std::vector;
index 0a857962e04d311380fcbf7f48ae5fa1c251c159..1a9e5217b78e3b16fa1a3140291b1c49245394c6 100644 (file)
 
 #include <vector>
 #include <utility>
-#include "support/std_string.h"
-
+#include <string>
 
 namespace lyx {
 namespace support {
 
 /// remove directory and all contents, returns 0 on success
-int destroyDir(string const & tmpdir);
+int destroyDir(std::string const & tmpdir);
 
 ///
-string const CreateBufferTmpDir(string const & pathfor = string());
+std::string const CreateBufferTmpDir(std::string const & pathfor = std::string());
 
 /// Creates directory. Returns true on success
-bool createDirectory(string const & name, int permissions);
+bool createDirectory(std::string const & name, int permissions);
 
 ///
-string const CreateLyXTmpDir(string const & deflt);
+std::string const CreateLyXTmpDir(std::string const & deflt);
 
 /** Find file by searching several directories.
   Uses a string of paths separated by ";"s to find a file to open.
@@ -39,32 +38,32 @@ string const CreateLyXTmpDir(string const & deflt);
     If path entry begins with $$User/, use user_lyxdir.
     Example: "$$User/doc;$$LyX/doc".
 */
-string const FileOpenSearch(string const & path, string const & name,
-                      string const & ext = string());
+std::string const FileOpenSearch(std::string const & path, std::string const & name,
+                      std::string const & ext = std::string());
 
 /** Returns the real name of file name in directory path, with optional
   extension ext.
   The file is searched in the given path (unless it is an absolute
   file name), first directly, and then with extension .ext (if given).
   */
-string const FileSearch(string const & path, string const & name,
-                 string const & ext = string());
+std::string const FileSearch(std::string const & path, std::string const & name,
+                 std::string const & ext = std::string());
 
 /// Returns a vector of all files in directory dir having extension ext.
-std::vector<string> const DirList(string const & dir,
-                                 string const & ext = string());
+std::vector<std::string> const DirList(std::string const & dir,
+                                 std::string const & ext = std::string());
 
 /** Is directory read only?
   returns
     true: dir writeable
     false: not writeable
 */
-bool IsDirWriteable (string const & path);
+bool IsDirWriteable (std::string const & path);
 
 /** Is a file readable ?
   Returns true if the file `path' is readable.
  */
-bool IsFileReadable (string const & path);
+bool IsFileReadable (std::string const & path);
 
 /** Is file read only?
   returns
@@ -72,13 +71,13 @@ bool IsFileReadable (string const & path);
     0: read_only
    -1: error (doesn't exist, no access, anything else)
   */
-int IsFileWriteable (string const & path);
+int IsFileWriteable (std::string const & path);
 
 ///
-bool IsLyXFilename(string const & filename);
+bool IsLyXFilename(std::string const & filename);
 
 ///
-bool IsSGMLFilename(string const & filename);
+bool IsSGMLFilename(std::string const & filename);
 
 /** Returns the path of a library data file.
   Search the file name.ext in the subdirectory dir of
@@ -89,16 +88,16 @@ bool IsSGMLFilename(string const & filename);
   \end{enumerate}
     The third parameter `ext' is optional.
 */
-string const LibFileSearch(string const & dir, string const & name,
-                    string const & ext = string());
+std::string const LibFileSearch(std::string const & dir, std::string const & name,
+                    std::string const & ext = std::string());
 
 /** Same as LibFileSearch(), but tries first to find an
   internationalized version of the file by prepending $LANG_ to the
   name
   */
-string const
-i18nLibFileSearch(string const & dir, string const & name,
-                 string const & ext = string());
+std::string const
+i18nLibFileSearch(std::string const & dir, std::string const & name,
+                 std::string const & ext = std::string());
 
 /** Takes a command such as "sh $$s/convertDefault.sh file.in file.out"
  *  and replaces "$$s/" with the path to the "most important" of LyX's
@@ -106,66 +105,66 @@ i18nLibFileSearch(string const & dir, string const & name,
  *  "$$s/" is removed. Executing the command will still fail, but the
  *  error message will make some sort of sense ;-)
  */
-string const LibScriptSearch(string const & command);
+std::string const LibScriptSearch(std::string const & command);
 
 ///
-string const GetEnv(string const & envname);
+std::string const GetEnv(std::string const & envname);
 
 /// A helper function.
-string const GetEnvPath(string const & name);
+std::string const GetEnvPath(std::string const & name);
 
 /// Substitutes active latex characters with underscores in filename
-string const MakeLatexName(string const & file);
+std::string const MakeLatexName(std::string const & file);
 
 /// Put the name in quotes suitable for the current shell
-string const QuoteName(string const & file);
+std::string const QuoteName(std::string const & file);
 
 /// Add a filename to a path. Any path from filename is stripped first.
-string const AddName(string const & path, string const & fname);
+std::string const AddName(std::string const & path, std::string const & fname);
 
 /// Append sub-directory(ies) to path in an intelligent way
-string const AddPath(string const & path, string const & path2);
+std::string const AddPath(std::string const & path, std::string const & path2);
 
 /** Change extension of oldname to extension.
  If oldname does not have an extension, it is appended.
  If the extension is empty, any extension is removed from the name.
  */
-string const
-ChangeExtension(string const & oldname, string const & extension);
+std::string const
+ChangeExtension(std::string const & oldname, std::string const & extension);
 
 /// Return the extension of the file (not including the .)
-string const GetExtension(string const & name);
+std::string const GetExtension(std::string const & name);
 
 /// Return the type of the file as an extension from contents
-string const getExtFromContents(string const & name);
+std::string const getExtFromContents(std::string const & name);
 
 /// check for zipped file
-bool zippedFile(string const & name);
+bool zippedFile(std::string const & name);
 
 /// \return the name that LyX will give to the unzipped file.
-string const unzippedFileName(string const & zipped_file);
+std::string const unzippedFileName(std::string const & zipped_file);
 
 /// unzip a file
-string const unzipFile(string const & zipped_file);
+std::string const unzipFile(std::string const & zipped_file);
 
 /// Returns true is path is absolute
-bool AbsolutePath(string const & path);
+bool AbsolutePath(std::string const & path);
 
 /// Create absolute path. If impossible, don't do anything
-string const ExpandPath(string const & path);
+std::string const ExpandPath(std::string const & path);
 
 /** Convert relative path into absolute path based on a basepath.
   If relpath is absolute, just use that.
   If basepath doesn't exist use CWD.
   */
-string const MakeAbsPath(string const & RelPath = string(),
-                        string const & BasePath = string());
+std::string const MakeAbsPath(std::string const & RelPath = std::string(),
+                        std::string const & BasePath = std::string());
 
 /** Creates a nice compact path for displaying. The parameter
   threshold, if given, specifies the maximal length of the path.
   */
-string const
-MakeDisplayPath(string const & path, unsigned int threshold = 1000);
+std::string const
+MakeDisplayPath(std::string const & path, unsigned int threshold = 1000);
 
 /** Makes relative path out of absolute path.
   If it is deeper than basepath,
@@ -174,43 +173,43 @@ MakeDisplayPath(string const & path, unsigned int threshold = 1000);
   different, then the absolute path will be used as relative path
   WARNING: the absolute path and base path must really be absolute paths!!!
   */
-string const
-MakeRelPath(string const & abspath, string const & basepath);
+std::string const
+MakeRelPath(std::string const & abspath, std::string const & basepath);
 
 /// Strip filename from path name
-string const OnlyPath(string const & fname);
+std::string const OnlyPath(std::string const & fname);
 
 /** Normalize a path. Constracts path/../path
  *  Also converts paths like /foo//bar ==> /foo/bar
  */
-string const NormalizePath(string const & path);
+std::string const NormalizePath(std::string const & path);
 
 /// Strips path from filename
-string const OnlyFilename(string const & fname);
+std::string const OnlyFilename(std::string const & fname);
 
-/// Get the contents of a file as a huge string
-string const GetFileContents(string const & fname);
+/// Get the contents of a file as a huge std::string
+std::string const GetFileContents(std::string const & fname);
 
 /** Check and Replace Environmentvariables ${NAME} in Path.
     Replaces all occurences of these, if they are found in the
     environment.
     Variables are defined by Var := '${' [a-zA-Z_][a-zA-Z_0-9]* '}'
 */
-string const ReplaceEnvironmentPath(string const & path);
+std::string const ReplaceEnvironmentPath(std::string const & path);
 
 /* Set \c link to the path \c file points to as a symbolic link.
    If \c resolve is true, then \c link is an absolute path
    Returns true if successful */
-bool LyXReadLink(string const & file, string & link, bool resolve = false);
+bool LyXReadLink(std::string const & file, std::string & link, bool resolve = false);
 
 /// Uses kpsewhich to find tex files
-string const findtexfile(string const & fil, string const & format);
+std::string const findtexfile(std::string const & fil, std::string const & format);
 
 /// remove the autosave-file and give a Message if it can't be done
-void removeAutosaveFile(string const & filename);
+void removeAutosaveFile(std::string const & filename);
 
 /// read the BoundingBox entry from a ps/eps/pdf-file
-string const readBB_from_PSFile(string const & file);
+std::string const readBB_from_PSFile(std::string const & file);
 
 /** \param file1, file2 the two files to be compared. Must have absolute paths.
  *  \returns 1 if \c file1 has a more recent timestamp than \c file2,
@@ -219,11 +218,11 @@ string const readBB_from_PSFile(string const & file);
  *  If one of the files does not exist, the return value indicates the file
  *  which does exist. Eg, if \c file1 exists but \c file2 does not, return 1.
  */
-int compare_timestamps(string const & file1, string const & file2);
+int compare_timestamps(std::string const & file1, std::string const & file2);
 
-typedef std::pair<int, string> cmd_ret;
+typedef std::pair<int, std::string> cmd_ret;
 
-cmd_ret const RunCommand(string const & cmd);
+cmd_ret const RunCommand(std::string const & cmd);
 
 } // namespace support
 } // namespace lyx
index 1e680e4ee2f5101a0b3f776d819c05872c89833c..e768d81f8a5baca65ff276707432ec1d2f0a2dfa 100644 (file)
@@ -42,6 +42,8 @@
 #include <cstdlib>
 #include <unistd.h>
 
+
+using std::string;
 using std::endl;
 
 #ifndef CXX_GLOBAL_CSTD
index 8e58485d18e4c8f66c0aed5af98aaee31cce7e52..20ca2da76670cd3479a3e198535b3a4a8488846e 100644 (file)
@@ -26,8 +26,6 @@
 #ifndef FORKEDCALL_H
 #define FORKEDCALL_H
 
-#include "support/std_string.h"
-
 #include <boost/shared_ptr.hpp>
 #include <boost/signals/signal2.hpp>
 #include <boost/function/function0.hpp>
@@ -95,7 +93,7 @@ public:
        void setRetValue(int r) { retval_ = r; }
 
        /// Returns the identifying command (for display in the GUI perhaps).
-       string const & command() const { return command_; }
+       std::string const & command() const { return command_; }
 
        /// is the process running ?
        bool running() const;
@@ -122,7 +120,7 @@ protected:
        SignalTypePtr signal_;
 
        /// identifying command (for display in the GUI perhaps).
-       string command_;
+       std::string command_;
 
        /// Process ID of child
        pid_t pid_;
@@ -157,10 +155,10 @@ public:
         *  The other startscript command can be executed either blocking
         *  or non-blocking, but no signal will be emitted on finishing.
         */
-       int startscript(Starttype, string const & what);
+       int startscript(Starttype, std::string const & what);
 
        ///
-       int startscript(string const & what, SignalTypePtr);
+       int startscript(std::string const & what, SignalTypePtr);
 
 private:
        ///
index 8ef76ecb4ab1b20a86cbf590cad07ce8af951ef2..03748296228fa0591ad0b94336c91c5d46947a5d 100644 (file)
@@ -17,6 +17,8 @@
 #include <boost/bind.hpp>
 #include <boost/signals/signal2.hpp>
 
+
+using std::string;
 using std::endl;
 
 
index 77cea21c55394ac23602318581dd053359670632..5d33034dc63b26e78bb54fd0aea38bfcaa5e1503 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <queue>
 #include <utility>
-#include "support/std_string.h"
+
 
 namespace lyx {
 namespace support {
@@ -30,13 +30,13 @@ namespace support {
 class ForkedCallQueue {
 public:
        /// A process in the queue
-       typedef std::pair<string, Forkedcall::SignalTypePtr> Process;
+       typedef std::pair<std::string, Forkedcall::SignalTypePtr> Process;
         /** Add a process to the queue. Processes are forked sequentially
         *  only one is running at a time.
          *  Connect to the returned signal and you'll be informed when
          *  the process has ended.
          */
-       Forkedcall::SignalTypePtr add(string const & process);
+       Forkedcall::SignalTypePtr add(std::string const & process);
        /// Query whether the queue is running a forked process now.
        bool running() const;
        /// Get the and only instance of the class
index 741d0ed52df2d0ae64be30f9e81fc320582865f8..7c9edc0393893b21afaae118748a880f475ec211 100644 (file)
 #include <unistd.h>
 #include <sys/wait.h>
 
+
 using std::endl;
 using std::find_if;
-
+using std::string;
 using std::vector;
 
 #ifndef CXX_GLOBAL_CSTD
index f08db8c67519be7eb54cd754a25512210ad6b75d..58b7e33e164bcf80b643faa010ca4570783294a8 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef FORKEDCONTR_H
 #define FORKEDCONTR_H
 
-#include "support/std_string.h"
-
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/trackable.hpp>
 
@@ -59,7 +57,7 @@ public:
        std::vector<pid_t> const getPIDs() const;
 
        /// Get the command string of the process.
-       string const getCommand(pid_t) const;
+       std::string const getCommand(pid_t) const;
 
        /** Kill this process prematurely and remove it from the list.
         *  The process is killed within tolerance secs.
index ec6121cdf8a6db0ce422d6bdfa5ae9a057a34fab..fb9d531715853a4b145852813bfc326be32ffd7e 100644 (file)
 
 #include "support/lyxlib.h"
 
+
+using std::string;
+
+
 namespace {
 
 inline
index 4ebae6facc26d2b08d3a46fa0265ec25dd1e84e3..ad3532426bfa3b57ecf4f2e2422db7dc694b5c74 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <config.h>
 
-#include "support/std_string.h"
 #include "lstrings.h"
 #include "support/std_sstream.h"
 #include "debug.h"
@@ -28,7 +27,7 @@
 #include <cstdlib>
 
 using std::transform;
-
+using std::string;
 using std::vector;
 
 #ifndef CXX_GLOBAL_CSTD
index d85dca7a4e716d3afdea584ecc036d4d0d7c744e..f70d140b5a8f6336d17a83dcd046072820167de4 100644 (file)
 #define LSTRINGS_H
 
 #include <vector>
+#include <string>
 
-#include "support/std_string.h"
 
 namespace lyx {
 namespace support {
 
 ///
-int compare_no_case(string const & s, string const & s2);
+int compare_no_case(std::string const & s, std::string const & s2);
 
 ///
-int compare_ascii_no_case(string const & s, string const & s2);
+int compare_ascii_no_case(std::string const & s, std::string const & s2);
 
 ///
-int compare_no_case(string const & s, string const & s2, unsigned int len);
+int compare_no_case(std::string const & s, std::string const & s2, unsigned int len);
 
 ///
 inline
@@ -55,22 +55,22 @@ int compare(char const * a, char const * b, unsigned int len)
 }
 
 ///
-bool isStrInt(string const & str);
+bool isStrInt(std::string const & str);
 
-/// does the string represent an unsigned integer value ?
-bool isStrUnsignedInt(string const & str);
+/// does the std::string represent an unsigned integer value ?
+bool isStrUnsignedInt(std::string const & str);
 
 ///
-int strToInt(string const & str);
+int strToInt(std::string const & str);
 
 /// convert string to an unsigned integer
-unsigned int strToUnsignedInt(string const & str);
+unsigned int strToUnsignedInt(std::string const & str);
 
 ///
-bool isStrDbl(string const & str);
+bool isStrDbl(std::string const & str);
 
 ///
-double strToDbl(string const & str);
+double strToDbl(std::string const & str);
 
 ///
 char lowercase(char c);
@@ -79,44 +79,44 @@ char lowercase(char c);
 char uppercase(char c);
 
 /// same as lowercase(), but ignores locale
-string const ascii_lowercase(string const &);
+std::string const ascii_lowercase(std::string const &);
 
 ///
-string const lowercase(string const &);
+std::string const lowercase(std::string const &);
 
 ///
-string const uppercase(string const &);
+std::string const uppercase(std::string const &);
 
-/// Does the string start with this prefix?
-bool prefixIs(string const &, string const &);
+/// Does the std::string start with this prefix?
+bool prefixIs(std::string const &, std::string const &);
 
 /// Does the string end with this char?
-bool suffixIs(string const &, char);
+bool suffixIs(std::string const &, char);
 
-/// Does the string end with this suffix?
-bool suffixIs(string const &, string const &);
+/// Does the std::string end with this suffix?
+bool suffixIs(std::string const &, std::string const &);
 
 ///
-bool contains(string const & a, string const & b);
+bool contains(std::string const & a, std::string const & b);
 
 ///
-bool contains(string const & a, char b);
+bool contains(std::string const & a, char b);
 
 /// This should probably we rewritten to be more general.
 class contains_functor {
 public:
-       typedef string first_argument_type;
-       typedef string second_argument_type;
+       typedef std::string first_argument_type;
+       typedef std::string second_argument_type;
        typedef bool result_type;
 
-       bool operator()(string const & haystack, string const & needle) const {
+       bool operator()(std::string const & haystack, std::string const & needle) const {
                return contains(haystack, needle);
        }
 };
 
 
 ///
-bool containsOnly(string const &, string const &);
+bool containsOnly(std::string const &, std::string const &);
 
 /** Extracts a token from this string at the nth delim.
     Doesn't modify the original string. Similar to strtok.
@@ -126,7 +126,7 @@ bool containsOnly(string const &, string const &);
     token("a;bc;d", ';', 2) == "d";
     \endcode
 */
-string const token(string const & a, char delim, int n);
+std::string const token(std::string const & a, char delim, int n);
 
 
 /** Search a token in this string using the delim.
@@ -138,36 +138,36 @@ string const token(string const & a, char delim, int n);
     tokenPos("a;bc;d", ';', "d") == 2;
     \endcode
 */
-int tokenPos(string const & a, char delim, string const & tok);
+int tokenPos(std::string const & a, char delim, std::string const & tok);
 
 
 /// Substitute all \a oldchar with \a newchar
-string const subst(string const & a, char oldchar, char newchar);
+std::string const subst(std::string const & a, char oldchar, char newchar);
 
 /// substitutes all instances of \a oldstr with \a newstr
-string const subst(string const & a,
-                  string const & oldstr, string const & newstr);
+std::string const subst(std::string const & a,
+                  std::string const & oldstr, std::string const & newstr);
 
 /** Trims characters off the end and beginning of a string.
     \code
     trim("ccabccc", "c") == "ab".
     \endcode
 */
-string const trim(string const & a, char const * p = " ");
+std::string const trim(std::string const & a, char const * p = " ");
 
 /** Trims characters off the end of a string.
     \code
     rtrim("abccc", "c") == "ab".
     \endcode
 */
-string const rtrim(string const & a, char const * p = " ");
+std::string const rtrim(std::string const & a, char const * p = " ");
 
 /** Trims characters off the beginning of a string.
     \code
    ltrim("ababcdef", "ab") = "cdef"
     \endcode
 */
-string const ltrim(string const & a, char const * p = " ");
+std::string const ltrim(std::string const & a, char const * p = " ");
 
 /** Splits the string by the first delim.
     Splits the string by the first appearance of delim.
@@ -178,37 +178,37 @@ string const ltrim(string const & a, char const * p = " ");
     s1= ""; s2= "a;bc".split(s1, ';') -> s1 == "a"; s2 == "bc";
     \endcode
 */
-string const split(string const & a, string & piece, char delim);
+std::string const split(std::string const & a, std::string & piece, char delim);
 
 /// Same as split but does not return a piece
-string const split(string const & a, char delim);
+std::string const split(std::string const & a, char delim);
 
 /// Same as split but uses the last delim.
-string const rsplit(string const & a, string & piece, char delim);
+std::string const rsplit(std::string const & a, std::string & piece, char delim);
 
 /// Escapes non ASCII chars
-string const escape(string const & lab);
+std::string const escape(std::string const & lab);
 
 /// gives a vector of stringparts which have the delimiter delim
-std::vector<string> const getVectorFromString(string const & str,
-                                             string const & delim = ",");
+std::vector<std::string> const getVectorFromString(std::string const & str,
+                                             std::string const & delim = std::string(","));
 
 // the same vice versa
-string const getStringFromVector(std::vector<string> const & vec,
-                                string const & delim = ",");
+std::string const getStringFromVector(std::vector<std::string> const & vec,
+                                std::string const & delim = std::string(","));
 
 // wrapper around boost::format using one argument %1$s
-string bformat(string const & fmt, string const & arg1);
+std::string bformat(std::string const & fmt, std::string const & arg1);
 // arguments %1$s and %2$s
-string bformat(string const & fmt, string const & arg1, string const & arg2);
+std::string bformat(std::string const & fmt, std::string const & arg1, std::string const & arg2);
 // arguments %1$d and %2$d
-string bformat(string const & fmt, int arg1, int arg2);
+std::string bformat(std::string const & fmt, int arg1, int arg2);
 // arguments %1$s and %2$s and %3$s
-string bformat(string const & fmt, string const & arg1, string const & arg2,
-               string const & arg3);
+std::string bformat(std::string const & fmt, std::string const & arg1, std::string const & arg2,
+               std::string const & arg3);
 // arguments %1$s and %2$s and %3$s and %4$s
-string bformat(string const & fmt, string const & arg1, string const & arg2,
-               string const & arg3, string const & arg4);
+std::string bformat(std::string const & fmt, std::string const & arg1, std::string const & arg2,
+               std::string const & arg3, std::string const & arg4);
 
 } // namespace support
 } // namespace lyx
index 0eb2bc031f851dbb46a1d7189444aed25c03abce..e76e14c956ed8fe4ab62b671194ebfa181c8aeba 100644 (file)
 #ifndef LYX_LIB_H
 #define LYX_LIB_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 namespace lyx {
 namespace support {
 
 /// get the current working directory
-string const getcwd();
+std::string const getcwd();
 /// change to a directory, 0 is returned on success.
-int chdir(string const & name);
+int chdir(std::string const & name);
 /**
  * rename a file, returns false if it fails.
  * It can handle renames across partitions.
  */
-bool rename(string const & from, string const & to);
+bool rename(std::string const & from, std::string const & to);
 /// copy a file, returns false it it fails
-bool copy(string const & from, string const & to);
+bool copy(std::string const & from, std::string const & to);
 /// generates a checksum of a file
-unsigned long sum(string const & file);
+unsigned long sum(std::string const & file);
 /// FIXME: some point to this hmm ?
 int kill(int pid, int sig);
 /// FIXME: same here
 void abort();
 /// create the given directory with the given mode
-int mkdir(string const & pathname, unsigned long int mode);
-/// put a C string into the environment
+int mkdir(std::string const & pathname, unsigned long int mode);
+/// put a C std::string into the environment
 int putenv(char const * str);
 /// unlink the given file
-int unlink(string const & file);
+int unlink(std::string const & file);
 /// remove the given directory
-int rmdir(string const & file);
+int rmdir(std::string const & file);
 /// convert the given string to an integer
-int atoi(string const & nstr);
+int atoi(std::string const & nstr);
 /// (securely) create a temporary file in the given dir with the given prefix
-string const tempName(string const & dir = string(),
-                     string const & mask = string());
+std::string const tempName(std::string const & dir = std::string(),
+                     std::string const & mask = std::string());
 
 
 /**
index 44426fea8c6080f9945d007c0b06c2b0177a79cc..21db95248edd3e04922c4d3368c1996edbae4067 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef LYX_MANIP_H
 #define LYX_MANIP_H
 
-#include "support/std_string.h"
 #include "support/std_ostream.h"
 
 ///
@@ -33,7 +32,7 @@ NewLineAndDepth_ newlineAndDepth(int n)
 inline
 std::ostream & operator<<(std::ostream & os, NewLineAndDepth_ const & nlad_)
 {
-       os << string(nlad_.depth_, ' ');
+       os << std::string(nlad_.depth_, ' ');
        return os;
 }
 
index 2c1f0e218ebe8949002928f6ceb2e77339bac496..22ddf19d51fc0988adb430cbe6d8380b7e84b36d 100644 (file)
@@ -42,6 +42,9 @@ template class boost::detail::crc_table_t<32, 0x04C11DB7, true>;
 #include <sys/mman.h>
 
 
+using std::string;
+
+
 unsigned long lyx::support::sum(string const & file)
 {
        lyxerr[Debug::FILES] << "lyx::sum() using mmap (lightning fast)"
index 8119d3db1d6f146bf7fcc485da91935333994393..546bbf8e654f6a3338affdba977dbb8af5ccb2e3 100644 (file)
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "support/std_string.h"
-
 #include "lyxlib.h"
 
-int lyx::support::mkdir(string const & pathname, unsigned long int mode)
+int lyx::support::mkdir(std::string const & pathname, unsigned long int mode)
 {
        // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
        return ::mkdir(pathname.c_str(), mode_t(mode));
index b1bf8799c053b75b1a76dd88fe0a880b37eaac3f..92623a7ac647f9a08ab85ffc8d10a71b5bf825ac 100644 (file)
@@ -12,7 +12,8 @@
 #ifndef OS_H
 #define OS_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 /// wrap OS specific stuff
 namespace lyx {
@@ -28,32 +29,32 @@ enum shell_type {
 // do some work just once
 void init(int * argc, char ** argv[]);
 // returns path of LyX binary
-string binpath();
+std::string binpath();
 // returns name of LyX binary
-string binname();
+std::string binname();
 //
-void setTmpDir(string const & p);
+void setTmpDir(std::string const & p);
 //
-string getTmpDir();
+std::string getTmpDir();
 //
-string current_root();
+std::string current_root();
 //
 shell_type shell();
 // DBCS aware!
-string::size_type common_path(string const & p1, string const & p2);
+std::string::size_type common_path(std::string const & p1, std::string const & p2);
 // no-op on UNIX, '\\'->'/' on OS/2 and Win32, ':'->'/' on MacOS, etc.
-string slashify_path(string const & p);
+std::string slashify_path(std::string const & p);
 // converts a host OS path to unix style
-string external_path(string const & p);
+std::string external_path(std::string const & p);
 // converts a unix path to host OS style
-string internal_path(string const & p);
+std::string internal_path(std::string const & p);
 // is path absolute?
-bool is_absolute_path(string const & p);
+bool is_absolute_path(std::string const & p);
 // returns a string suitable to be passed to popen when
 // same for popen().
        char const * popen_read_mode();
 //
-void warn(string const & mesg);
+void warn(std::string const & mesg);
 
 } // namespace os
 } // namespace support
index 72d07beb88247366a82e007e8399863f307e87bd..a408622f3934fa15aab6c2385a077c50b7526ccb 100644 (file)
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
+
+using std::string;
+
+
 namespace {
 
 string binpath_;
index 2d347118839be3863e573c4b484789a3cd8b4ff4..b3e46221d6d1682b7f59dc90ae5b2330833053b1 100644 (file)
 #include "path.h"
 #include "lyxlib.h"
 
+
+using std::string;
+
+
 namespace lyx {
 namespace support {
 
index e043e11035356702dcd656d7ad506657557e2635..2d1c43875b681edf814258c0283dec5752e08f56 100644 (file)
 #ifndef PATH_H
 #define PATH_H
 
-#include "support/std_string.h"
 #include <boost/utility.hpp>
 
+#include <string>
+
 namespace lyx {
 namespace support {
 
@@ -34,7 +35,7 @@ namespace support {
 class Path : boost::noncopyable {
 public:
        /// change to the given directory
-       explicit Path(string const & path);
+       explicit Path(std::string const & path);
 
        /// set cwd to the previous value if needed
        ~Path();
@@ -45,7 +46,7 @@ private:
        /// whether we are in the new cwd or not
        bool popped_;
        /// the previous cwd
-       string pushedDir_;
+       std::string pushedDir_;
 };
 
 // To avoid the wrong usage:
index f1ccab2bbd8f9083620acec5824a352db8947655..7d46a8576d0b18a56f85c88246c6a789ee8c666d 100644 (file)
@@ -24,6 +24,7 @@
 #include "lstrings.h"
 #include "os.h"
 
+using std::string;
 using std::endl;
 
 
index db97e81e70610069114eee56adead8277f550e5f..9c7a3f0942e8706f3045403f32ae0f5c7db8be52 100644 (file)
 #ifndef PATH_DEFINES_H
 #define PATH_DEFINES_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 namespace lyx {
 namespace support {
 
-string const & lyx_localedir();
+std::string const & lyx_localedir();
 
 /// The absolute path to the lyx support files we're actually going to use.
-string const & system_lyxdir();
+std::string const & system_lyxdir();
 
 /// Set the absolute path to the lyx support files (from the command line).
-void system_lyxdir(string const &);
+void system_lyxdir(std::string const &);
 
 /// The absolute path to the lyx support files in the build directory
-string const & build_lyxdir();
+std::string const & build_lyxdir();
 
 /// The absolute path to the user-level lyx support files.
-string const & user_lyxdir();
+std::string const & user_lyxdir();
 
 /// Set the absolute path to the user-level lyx support files.
-void user_lyxdir(string const &);
+void user_lyxdir(std::string const &);
 
 /** \returns true if the user lyx dir existed already and did not need
  *  to be created afresh.
index b92b7a9cfaf8794e39fba49e6132bcf5fc959a6a..bfa0a82bff3137a194f0fc8abcd0a0bbb6d44252 100644 (file)
 
 #include "support/lyxlib.h"
 
+
+using std::string;
+
+
 bool lyx::support::rename(string const & from, string const & to)
 {
 #ifdef __EMX__
index b11dfe8ccf9ba75dcab014fd8c7425c851d84b02..fa9ce896f158018598cf8071cc9ecce510ad120d 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "lyxlib.h"
 
-int lyx::support::rmdir(string const & dir)
+int lyx::support::rmdir(std::string const & dir)
 {
        return ::rmdir(dir.c_str());
 }
index 16c1662643e135cd69feec76fb0885700c62cf7a..ecc91bf712ab589175fdb20d6d3e646344744463 100644 (file)
@@ -35,7 +35,7 @@ the executable file might be covered by the GNU General Public License. */
 #ifndef SSTREAM_H
 #define SSTREAM_H
 
-#include "support/std_string.h"
+#include <string>
 #include <iostream>
 #include <streambuf.h>
 
@@ -54,7 +54,7 @@ namespace std
       rpos(0), bufsize(1)
     { }
 
-    explicit stringbuf(const string &s, int which=ios::in|ios::out) :
+    explicit stringbuf(const std::string &s, int which=ios::in|ios::out) :
       streambuf(which), buf(s), mode(static_cast<ios::open_mode>(which)),
       bufsize(1)
     {
@@ -69,13 +69,13 @@ namespace std
       rpos = (mode & ios::ate ? s.size() : 0);
     }
 
-    string str() const
+    std::string str() const
     {
       const_cast<stringbuf*>(this)->sync();  // Sigh, really ugly hack
       return buf;
     };
 
-    void str(const string& s)
+    void str(const std::string& s)
     {
       buf = s;
       if(mode & ios::in)
@@ -94,9 +94,9 @@ namespace std
     inline virtual int overflow(int = EOF);
     inline virtual int underflow();
   private:
-    string                     buf;
+    std::string                        buf;
     ios::open_mode             mode;
-    string::size_type  rpos;
+    std::string::size_type     rpos;
     streamsize                 bufsize;
     char                       defbuf;
   };
@@ -105,11 +105,11 @@ namespace std
   protected:
     stringbuf __my_sb;
   public:
-    string str() const
+    std::string str() const
     {
       return static_cast<stringbuf*>(_strbuf)->str();
     }
-    void str(const string& s)
+    void str(const std::string& s)
     {
       clear();
       static_cast<stringbuf*>(_strbuf)->str(s);
@@ -126,7 +126,7 @@ namespace std
       init (&__my_sb);
     }
 
-    stringstreambase(const string& s, int which) :
+    stringstreambase(const std::string& s, int which) :
       __my_sb(s, which)
     {
       init (&__my_sb);
@@ -139,7 +139,7 @@ namespace std
       stringstreambase(which)
     { }
 
-    istringstream(const string& s, int which=ios::in) :
+    istringstream(const std::string& s, int which=ios::in) :
       stringstreambase(s, which)
     { }
   };
@@ -150,7 +150,7 @@ namespace std
       stringstreambase(which)
     { }
 
-    ostringstream(const string& s, int which=ios::out) :
+    ostringstream(const std::string& s, int which=ios::out) :
       stringstreambase(s, which)
     { }
   };
@@ -161,7 +161,7 @@ namespace std
       stringstreambase(which)
     { }
 
-    stringstream(const string &s, int which=ios::in|ios::out) :
+    stringstream(const std::string &s, int which=ios::in|ios::out) :
       stringstreambase(s, which)
     { }
   };
@@ -176,7 +176,7 @@ inline int stringbuf::sync()
   streamsize n = pptr() - pbase();
   if(n)
     {
-      buf.replace(rpos, string::npos, pbase(), n);
+      buf.replace(rpos, std::string::npos, pbase(), n);
       //if(buf.size() - rpos != n)
       if (buf.size() != n + rpos)
        return EOF;
@@ -199,9 +199,9 @@ inline int stringbuf::overflow(int ch)
 
   if(ch != EOF)
     {
-      string::size_type oldSize = buf.size();
+      std::string::size_type oldSize = buf.size();
 
-      buf.replace(rpos, string::npos, 1, ch);
+      buf.replace(rpos, std::string::npos, 1, ch);
       if(buf.size() - oldSize != 1)
        return EOF;
       ++rpos;
@@ -221,8 +221,8 @@ inline int stringbuf::underflow()
       return EOF;
     }
 
-  string::size_type n = egptr() - eback();
-  string::size_type s;
+  std::string::size_type n = egptr() - eback();
+  std::string::size_type s;
 
   s = buf.copy(eback(), n, rpos);
   pbump(pbase() - pptr());
index 088c95bc8195037c13ec283a3950c7d52effdefe..782cdf0cbd2193c26eb9cccd20d0375c552ddb8b 100644 (file)
 #ifndef STD_SSTREAM_H
 #define STD_SSTREAM_H
 
-// Since we will include a string header anyway, we'd better do it
-// right now so that <string> is not loaded before lyxstring.h. (JMarc)
-#include "support/std_string.h"
-
 #ifdef HAVE_SSTREAM
 #include <sstream>
 #else
diff --git a/src/support/std_string.h b/src/support/std_string.h
deleted file mode 100644 (file)
index 1f1b7e3..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// -*- C++ -*-
-/**
- * \file std_string.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Lars Gullik Bjønnes
- * \author Jean-Marc Lasgouttes
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef STD_STRING_H
-#define STD_STRING_H
-
-
-#include <string>
-
-#ifdef USE_INCLUDED_STRING
-
-using std::string;
-
-#else
-
-namespace lyx {
-
-using std::string;
-
-}
-
-using lyx::string;
-
-#endif
-
-#endif // NOT STD_STRING_H
index b5688913f9b6cd0063f990e837d9418919a114af..ac4baaf44c42ff74dfd460db46bf52ace41e169d 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <cstdlib>
 
+using std::string;
+
 #ifndef CXX_GLOBAL_CSTD
 using std::system;
 #endif
index cd22bdd8a3502ffcd8766e2d219a9f8e5ae3e9d5..8702283f1a3b3101bdc3ca702d5d0500cc17a3af 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef SYSTEMCALL_H
 #define SYSTEMCALL_H
 
-#include "support/std_string.h"
+#include <string>
 
 namespace lyx {
 namespace support {
@@ -42,7 +42,7 @@ public:
         *  The string "what" contains a commandline with arguments separated
         *  by spaces.
         */
-       int startscript(Starttype how, string const & what);
+       int startscript(Starttype how, std::string const & what);
 };
 
 } // namespace support
index cffa90f9e37c6b098789e84b0740a8279749074e..ee4101172165a8c2a2daee5e8e8ee38c7f3f5610 100644 (file)
 #include <cstdlib>
 #include <unistd.h>
 
-#include "support/std_string.h"
 #include "support/lyxlib.h"
 #include "support/filetools.h"
 #include "support/tostr.h"
 #include "debug.h"
 #include "os.h"
 
+using std::string;
 using std::endl;
 
 namespace {
index 765ff434c1fed2e33ba67f201630f34fc76e6a9a..6803d94b9e50c54168827d22762e11517b2e016b 100644 (file)
@@ -11,8 +11,8 @@
 #include <config.h>
 
 #include "support/std_sstream.h"
-#include "support/std_string.h"
 
+using std::string;
 using std::ostringstream;
 
 
index 34625c07248dd9f2e7235e24d6007b04cf586882..a6a9543fb1f2b8adf1d6ff72e77a722b3c3757dd 100644 (file)
 #ifndef TOSTR_H
 #define TOSTR_H
 
-#include "support/std_string.h"
-
-// When trying to convert this to a template using std::stringstream,
-// note that this will pull in the whole of <string> in more than 150
-// files, even when configuring --with-included-strings !
+#include <string>
 
 /// convert things to strings
-string const tostr(bool b);
+std::string const tostr(bool b);
 ///
-string const tostr(int);
+std::string const tostr(int);
 ///
-string const tostr(unsigned int);
+std::string const tostr(unsigned int);
 ///
-string const tostr(long int);
+std::string const tostr(long int);
 ///
-string const tostr(double);
+std::string const tostr(double);
 ///
-string const tostr(string const & s);
+std::string const tostr(std::string const & s);
 
 #endif
index a814f9282363dc0093c367bc162ed52b7a8059c4..e3ca60afe100f903f5c3561378b10d6e9ee9f430 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "lyxlib.h"
 
-int lyx::support::unlink(string const & pathname)
+int lyx::support::unlink(std::string const & pathname)
 {
        return ::unlink(pathname.c_str());
 }
index 7ecbc16b6bfe613c7b959cd4d2e01edf186a4934..6624b5cbcdeb7dc06ec87b06d2146b279f0e7134 100644 (file)
@@ -19,6 +19,8 @@
 #include <unistd.h>
 #include <sys/types.h>
 
+using std::string;
+
 namespace lyx {
 namespace support {
 
index 5812440d9c0bc7b8583f146f2ebc8ed9796d47f9..6c103cd722d85f4732f7d17dfa98ab610b7af821 100644 (file)
 #ifndef USERINFO_H
 #define USERINFO_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 namespace lyx {
 namespace support {
 
 /// return the current user's real name
-string const user_name();
+std::string const user_name();
 
 /// return the current user's e-mail address
-string const user_email();
+std::string const user_email();
 
 } // namespace support
 } // namespace lyx
index 4888d9c4f13cb7cbf9e6fd5c37145e4c36532a5d..f86490eb90b8511f872e4ddff07a86675277cba7 100644 (file)
@@ -48,6 +48,7 @@ using std::istream;
 using std::ostream;
 using std::ostringstream;
 using std::vector;
+using std::string;
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strlen;
index 7e873ae75a2ace290ac8faf5b62d4cdf23e88e13..dec907d30ad891ee9cb356134acfbc410793caf4 100644 (file)
@@ -234,7 +234,7 @@ public:
        ///
        bool setMColumnPWidth(int cell, LyXLength const & width);
        ///
-       void setAlignSpecial(int cell, string const & special, Feature what);
+       void setAlignSpecial(int cell, std::string const & special, Feature what);
        ///
        LyXAlignment getAlignment(int cell, bool onlycolumn = false) const;
        ///
@@ -246,7 +246,7 @@ public:
        ///
        LyXLength const getMColumnPWidth(int cell) const;
        ///
-       string const getAlignSpecial(int cell, int what) const;
+       std::string const getAlignSpecial(int cell, int what) const;
        ///
        int getWidthOfCell(int cell) const;
        ///
@@ -375,7 +375,7 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        /// Appends \c list with all labels found within this inset.
-       void getLabelList(Buffer const &, std::vector<string> & list) const;
+       void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
 //private:
        ///
@@ -405,7 +405,7 @@ public:
                ///
                bool rotate;
                ///
-               string align_special;
+               std::string align_special;
                ///
                LyXLength p_width; // this is only set for multicolumn!!!
                ///
@@ -461,7 +461,7 @@ public:
                ///
                LyXLength p_width;
                ///
-               string align_special;
+               std::string align_special;
        };
        ///
        typedef std::vector<columnstruct> column_vector;
index 7ff220d6f2f2f5db6400a41840cec9473bb5621b..59b0d1778ccef3af5c95ce05e76ec44438764bf7 100644 (file)
@@ -14,6 +14,8 @@
 #include "tex-accent.h"
 #include "support/tostr.h"
 
+using std::string;
+
 /* the names used by TeX and XWindows for deadkeys/accents are not the same
    so here follows a table to clearify the differences. Please correct this
    if I got it wrong
index 5bc89cae13dbd45b2cb45a40d1f5ffe28f18a0f0..3318058f3b5f2829c40f9401077e4d1f526f6490 100644 (file)
@@ -16,6 +16,8 @@
 
 using std::ostream;
 using std::endl;
+using std::string;
+
 
 namespace {
 
index cbba84298e6e26452ca9b75a27a8e75c15efb9c6..4003355c0193882ae5dfe181a270f601e759fb11 100644 (file)
@@ -13,6 +13,9 @@
 
 #include "gettext.h"
 
+using std::string;
+
+
 string const _(string const & str)
 {
        return str;
index 29e75b039c40c4fdba9f081d7c27e72b2567b11b..f27f9fdc14f6f0bdb44c05f483144b54803889f0 100644 (file)
 #ifndef GETTEXT_H
 #define GETTEXT_H
 
-#include "support/std_string.h"
+#include <string>
+
 
 ///
-string const _(string const &);
+std::string const _(std::string const &);
 
 /// for detecting static strings
 #define N_(str) (str)
index 11fc7078ec4d688f17dd4a8a2d800f33554490da..713d9170b56baa402f220c3408564e786d99fc9b 100644 (file)
@@ -16,6 +16,8 @@
 
 using lyx::support::ascii_lowercase;
 
+using std::string;
+
 
 LyXFont & LyXFont::lyxRead(LyXLex & lex)
 {
index 8069b925bc623d4aa253291a76e8a4cb89422b48..3139a74aab3648d4904a86997c088a59aba00613 100644 (file)
@@ -59,6 +59,7 @@ using lyx::support::uppercase;
 
 using std::max;
 using std::endl;
+using std::string;
 
 
 /// top, right, bottom pixel margin
index 579367e73572ab73ee1597514e19ef8af5c85768..e6e5a65ada8249ad3d9d6de1b5c19be93f22c6d4 100644 (file)
@@ -65,6 +65,7 @@ using lyx::support::bformat;
 
 using std::endl;
 using std::ostringstream;
+using std::string;
 
 
 LyXText::LyXText(BufferView * bv, InsetText * inset, bool ininset,
index 85528c0a824ebd071e39896ea53f679200b438a3..b31f5cde5c24efb721f44bdc01a2b669b8e8c980 100644 (file)
@@ -57,7 +57,7 @@ using lyx::support::strToUnsignedInt;
 
 using std::endl;
 using std::find;
-
+using std::string;
 using std::istringstream;
 using std::vector;
 
index c448aa39c0729f317bf0d71ba3ce4a63750f8164..5e62e88468551da0ea72ce96d6111d86e0496bb8 100644 (file)
 #include "textcursor.h"
 #include "paragraph.h"
 
+#include <string>
+
+using std::string;
+
 
 void TextCursor::setSelection()
 {
index d8a4b5469f9953fe3d15f5b95c89775ee7b513b2..1f0dadbaf1ed606cf244ddbb505065a15631be19 100644 (file)
@@ -16,7 +16,6 @@
 #define TEXTCURSOR_H
 
 #include "lyxcursor.h"
-#include "support/std_string.h"
 
 class Buffer;
 
@@ -69,7 +68,7 @@ struct TextCursor {
        ///
        void clearSelection();
        ///
-       string const selectionAsString(Buffer const & buffer, bool label) const;
+       std::string const selectionAsString(Buffer const & buffer, bool label) const;
 
        // actual cursor position
        LyXCursor cursor;
index 8861cc4c083863b1b2e25ee73d9ff872867dd00d..e01daf85f7867446844e4b6bf8b3c3e322e4457d 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -30,6 +30,7 @@
 using std::vector;
 using std::max;
 using std::ostream;
+using std::string;
 
 namespace lyx {
 namespace toc {
index 5ca643da7201304cec6a407f2f3f4eb8b45b5d06..bb3e8692856368c9d1c473a8918d7dd10dd549ca 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
 #ifndef TOC_H
 #define TOC_H
 
-#include "support/std_string.h"
-
 #include <map>
 #include <iosfwd>
 #include <vector>
+#include <string>
 
 class Buffer;
 class LyXView;
@@ -31,10 +30,10 @@ namespace toc {
 
 ///
 struct TocItem {
-       TocItem(int par_id, int d, string const & s)
+       TocItem(int par_id, int d, std::string const & s)
                : id_(par_id), depth(d), str(s) {}
        ///
-       string const asString() const;
+       std::string const asString() const;
        /// set cursor in LyXView to this TocItem
        void goTo(LyXView & lv_) const;
        /// the action corresponding to the goTo above
@@ -44,26 +43,26 @@ struct TocItem {
        /// nesting depth
        int depth;
        ///
-       string str;
+       std::string str;
 };
 
 ///
 typedef std::vector<TocItem> Toc;
 ///
-typedef std::map<string, Toc> TocList;
+typedef std::map<std::string, Toc> TocList;
 
 ///
 TocList const getTocList(Buffer const &);
 
 ///
-std::vector<string> const getTypes(Buffer const &);
+std::vector<std::string> const getTypes(Buffer const &);
 
 ///
-void asciiTocList(string const &, Buffer const &, std::ostream &);
+void asciiTocList(std::string const &, Buffer const &, std::ostream &);
 
 /** Given the cmdName of the TOC param, returns the type used
     by ControlToc::getContents() */
-string const getType(string const & cmdName);
+std::string const getType(std::string const & cmdName);
 
 inline
 bool operator==(TocItem const & a, TocItem const & b)
index 32d487a0dcad95bc17f330546952e864ecec3142..3230fabf1874e2be0f8cf9103d3e9efcbd39360c 100644 (file)
@@ -22,7 +22,7 @@ using lyx::support::contains;
 using lyx::support::LibFileSearch;
 
 using std::endl;
-
+using std::string;
 using std::map;
 
 
index 593835476868ca008e4133cb76c42d6918cffbc9..6311e74def6b01cb20f86b934ca9bc9c4fe6900c 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "trans_decl.h"
 
-#include "support/std_string.h"
 #include <map>
 
 
@@ -35,36 +34,36 @@ public:
        ~Trans();
 
        ///
-       int Load(string const & language);
+       int Load(std::string const & language);
        ///
        bool IsDefined() const;
        ///
-       string const & GetName() const;
+       std::string const & GetName() const;
        ///
-       string const process(char, TransManager &);
+       std::string const process(char, TransManager &);
        ///
        bool isAccentDefined(tex_accent, KmodInfo &) const;
 
 private:
        ///
-       void AddDeadkey(tex_accent, string const &);
+       void AddDeadkey(tex_accent, std::string const &);
        ///
        void FreeKeymap();
        ///
        int Load(LyXLex &);
        ///
-       string const & Match(unsigned char c);
+       std::string const & Match(unsigned char c);
        ///
        void InsertException(KmodException & exclist, char c,
-                            string const & data, bool = false,
+                            std::string const & data, bool = false,
                             tex_accent = TEX_NOACCENT);
        ///
        void FreeException(KmodException & exclist);
 
        ///
-       string name_;
+       std::string name_;
        ///
-       std::map<int, string> keymap_;
+       std::map<int, std::string> keymap_;
        ///
        std::map<int, KmodInfo> kmod_list_;
 };
@@ -72,13 +71,13 @@ private:
 
 ///
 inline
-string const & Trans::Match(unsigned char c)
+std::string const & Trans::Match(unsigned char c)
 {
-       std::map<int, string>::iterator it = keymap_.find(c);
+       std::map<int, std::string>::iterator it = keymap_.find(c);
        if (it != keymap_.end()) {
                return it->second;
        }
-       static string dummy;
+       static std::string dummy;
        return dummy;
 }
 
index a916fb92d5fd3490c8308920a6851dee15a9148f..3eae0166695ec70a3332c7f1621c4b94c1291b68 100644 (file)
@@ -15,8 +15,8 @@
 
 #include "tex-accent.h"
 
-#include "support/std_string.h"
 #include <list>
+#include <string>
 
 
 ///
@@ -24,7 +24,7 @@ struct Keyexc {
        /// character to make exception
        char c;
        /// exception data
-       string data;
+       std::string data;
        /// Combination with another deadkey
        bool combined;
        /// The accent comined with
@@ -37,7 +37,7 @@ typedef std::list<Keyexc> KmodException;
 ///
 struct KmodInfo {
        ///
-       string data;
+       std::string data;
        ///
        tex_accent accent;
        ///
index 407507cd7e3cc51755a3454917e47b490c5f18b0..6fa53197099e6e97e1595eadf917aac04cd5c374 100644 (file)
@@ -22,7 +22,7 @@
 using lyx::support::split;
 
 using std::endl;
-
+using std::string;
 using std::pair;
 
 
index 0ef601f29bc560a1f5561a5c9a26b20947ad6b9d..083ef249142b21b4dff78379122003cbd4a67b49 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "chset.h"
 #include "trans_decl.h"
-#include "support/std_string.h"
 
 class LyXText;
 class Trans;
@@ -27,11 +26,11 @@ public:
        ///
        virtual ~TransState() {}
        ///
-       virtual string const normalkey(char) = 0;
+       virtual std::string const normalkey(char) = 0;
        ///
        virtual bool backspace() = 0;
        ///
-       virtual string const deadkey(char, KmodInfo) = 0;
+       virtual std::string const deadkey(char, KmodInfo) = 0;
        ///
        static char const TOKEN_SEP;
 };
@@ -73,11 +72,11 @@ public:
        ///
        TransInitState();
        ///
-       virtual string const normalkey(char);
+       virtual std::string const normalkey(char);
        ///
        virtual bool backspace() { return true; }
        ///
-       virtual string const deadkey(char, KmodInfo);
+       virtual std::string const deadkey(char, KmodInfo);
 };
 
 
@@ -87,14 +86,14 @@ public:
        ///
        TransDeadkeyState();
        ///
-       virtual string const normalkey(char);
+       virtual std::string const normalkey(char);
        ///
        virtual bool backspace() {
                currentState = init_state_;
                return false;
        }
        ///
-       virtual string const deadkey(char, KmodInfo);
+       virtual std::string const deadkey(char, KmodInfo);
 };
 
 
@@ -104,7 +103,7 @@ public:
        ///
        TransCombinedState();
        ///
-       virtual string const normalkey(char);
+       virtual std::string const normalkey(char);
        ///
        virtual bool backspace() {
                // cancel the second deadkey
@@ -115,7 +114,7 @@ public:
                return false;
        }
        ///
-       virtual string const deadkey(char, KmodInfo);
+       virtual std::string const deadkey(char, KmodInfo);
 };
 
 
@@ -146,18 +145,18 @@ private:
        ///
        CharacterSet chset_;
        ///
-       void insert(string const &, LyXText *);
+       void insert(std::string const &, LyXText *);
        ///
-       void insertVerbatim(string const &, LyXText *);
+       void insertVerbatim(std::string const &, LyXText *);
 public:
        ///
        TransManager();
        ///
        virtual ~TransManager();
        ///
-       int SetPrimary(string const &);
+       int SetPrimary(std::string const &);
        ///
-       int SetSecondary(string const &);
+       int SetSecondary(std::string const &);
        ///
        void EnablePrimary();
        ///
@@ -165,7 +164,7 @@ public:
        ///
        void DisableKeymap();
        ///
-       bool setCharset(string const &);
+       bool setCharset(std::string const &);
        ///
        bool backspace() {
                return trans_fsm_.currentState->backspace();
@@ -173,23 +172,23 @@ public:
        ///
        void TranslateAndInsert(char, LyXText *);
        ///
-       string const deadkey(char, KmodInfo);
+       std::string const deadkey(char, KmodInfo);
        ///
-       string const normalkey(char);
+       std::string const normalkey(char);
        ///
        void deadkey(char, tex_accent, LyXText *);
 };
 
 
 inline
-string const TransManager::normalkey(char c)
+std::string const TransManager::normalkey(char c)
 {
        return trans_fsm_.currentState->normalkey(c);
 }
 
 
 inline
-string const TransManager::deadkey(char c, KmodInfo t)
+std::string const TransManager::deadkey(char c, KmodInfo t)
 {
        return trans_fsm_.currentState->deadkey(c, t);
 }
index 46b8b6d55764461cce54c02d31e7c70948e1408e..4d7222152662a3e8152a9c9fd3d9bca911421bed 100644 (file)
@@ -46,7 +46,7 @@ using std::gmtime;
 
 using std::endl;
 using std::getline;
-
+using std::string;
 using std::ifstream;
 
 
index 74bd9dfe229006177bb731fce76add687d8a0ec1..d5e90303f3d1c50109a8e214722058c5aa7fad86 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef VC_BACKEND_H
 #define VC_BACKEND_H
 
-#include "support/std_string.h"
+#include <string>
 
 class Buffer;
 
@@ -28,9 +28,9 @@ public:
        virtual ~VCS() {}
 
        /// register a file for version control
-       virtual void registrer(string const & msg) = 0;
+       virtual void registrer(std::string const & msg) = 0;
        /// check in the current revision
-       virtual void checkIn(string const & msg) = 0;
+       virtual void checkIn(std::string const & msg) = 0;
        /// check out for editing
        virtual void checkOut() = 0;
        /// revert current edits
@@ -41,15 +41,15 @@ public:
         * getLog - read the revision log into the given file
         * @param fname file name to read into
         */
-       virtual void getLog(string const &) = 0;
+       virtual void getLog(std::string const &) = 0;
        /// return the current version description
-       virtual string const versionString() const = 0;
+       virtual std::string const versionString() const = 0;
        /// return the current version
-       string const & version() const {
+       std::string const & version() const {
                return version_;
        }
        /// return the user who has locked the file
-       string const & locker() const { return locker_; }
+       std::string const & locker() const { return locker_; }
        /// set the owning buffer
        void owner(Buffer * b) { owner_ = b; }
        /// return the owning buffer
@@ -66,13 +66,13 @@ protected:
         * @param path the path from which to execute
         * @return exit status
         */
-       static int doVCCommand(string const & cmd, string const & path);
+       static int doVCCommand(std::string const & cmd, std::string const & path);
 
        /**
         * The master VC file. For RCS this is *,v or RCS/ *,v. master should
         * have full path.
         */
-       string master_;
+       std::string master_;
 
        /// The status of the VC controlled file.
        VCStatus vcstatus;
@@ -81,10 +81,10 @@ protected:
         * The version of the VC file. I am not sure if this can be a
         * string or if it must be a float/int.
         */
-       string version_;
+       std::string version_;
 
        /// The user currently keeping the lock on the VC file.
-       string locker_;
+       std::string locker_;
        /// The buffer using this VC
        Buffer * owner_;
 };
@@ -95,16 +95,16 @@ class RCS : public VCS {
 public:
 
        explicit
-       RCS(string const & m);
+       RCS(std::string const & m);
 
        /// return the revision file for the given file, if found
-       static string const find_file(string const & file);
+       static std::string const find_file(std::string const & file);
 
-       static void retrieve(string const & file);
+       static void retrieve(std::string const & file);
 
-       virtual void registrer(string const & msg);
+       virtual void registrer(std::string const & msg);
 
-       virtual void checkIn(string const & msg);
+       virtual void checkIn(std::string const & msg);
 
        virtual void checkOut();
 
@@ -112,9 +112,9 @@ public:
 
        virtual void undoLast();
 
-       virtual void getLog(string const &);
+       virtual void getLog(std::string const &);
 
-       virtual string const versionString() const {
+       virtual std::string const versionString() const {
                return "RCS: " + version_;
        }
 
@@ -128,14 +128,14 @@ class CVS : public VCS {
 public:
        ///
        explicit
-       CVS(string const & m, string const & f);
+       CVS(std::string const & m, std::string const & f);
 
        /// return the revision file for the given file, if found
-       static string const find_file(string const & file);
+       static std::string const find_file(std::string const & file);
 
-       virtual void registrer(string const & msg);
+       virtual void registrer(std::string const & msg);
 
-       virtual void checkIn(string const & msg);
+       virtual void checkIn(std::string const & msg);
 
        virtual void checkOut();
 
@@ -143,9 +143,9 @@ public:
 
        virtual void undoLast();
 
-       virtual void getLog(string const &);
+       virtual void getLog(std::string const &);
 
-       virtual string const versionString() const {
+       virtual std::string const versionString() const {
                return "CVS: " + version_;
        }
 
@@ -153,6 +153,6 @@ protected:
        virtual void scanMaster();
 
 private:
-       string file_;
+       std::string file_;
 };
 #endif // VCBACKEND_H
index bd4c534d1f6dd301aba01a9f79c7178843933f17..a3b8c5a41a3d314b0c3fb77513252642f2483bf1 100644 (file)
@@ -26,6 +26,8 @@ using lyx::support::prefixIs;
 using lyx::support::rtrim;
 using lyx::support::strToDbl;
 
+using std::string;
+
 
 namespace {
 
index 16a27e3e042e1b5d6598ad3f019967c578a27767..6e0bf5ff8dbf675ceb26baf1996c4cfbf4e2195f 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "lyxgluelength.h"
 
-#include "support/std_string.h"
 
 class BufferParams;
 class BufferView;
@@ -43,7 +42,7 @@ public:
        explicit VSpace(LyXGlueLength const & l);
 
        /// Constructor for reading from a .lyx file
-       explicit VSpace(string const & data);
+       explicit VSpace(std::string const & data);
 
        /// return the type of vertical space
        vspace_kind kind() const;
@@ -60,9 +59,9 @@ public:
        // conversion
 
        /// how it goes into the LyX file
-       string const asLyXCommand() const;
+       std::string const asLyXCommand() const;
        /// the latex representation
-       string const asLatexCommand(BufferParams const & params) const;
+       std::string const asLatexCommand(BufferParams const & params) const;
        /// the size of the space on-screen
        int inPixels(BufferView const & bv) const;