]> git.lyx.org Git - features.git/commitdiff
change a lot of methods to begin with small char
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 28 Jun 2001 10:25:20 +0000 (10:25 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 28 Jun 2001 10:25:20 +0000 (10:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2150 a592a061-630c-0410-9148-cb99ea01b6c8

136 files changed:
src/BufferView2.C
src/BufferView_pimpl.C
src/buffer.C
src/buffer.h
src/bufferlist.C
src/bufferlist.h
src/bufferview_funcs.C
src/figureForm.C
src/frontends/controllers/ControlExternal.C
src/frontends/xforms/FormDocument.C
src/frontends/xforms/FormTabular.C
src/insets/ChangeLog
src/insets/figinset.C
src/insets/figinset.h
src/insets/inset.C
src/insets/inset.h
src/insets/insetbib.C
src/insets/insetbib.h
src/insets/insetbutton.C
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/inseterror.C
src/insets/inseterror.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/insetfootlike.C
src/insets/insetfootlike.h
src/insets/insetgraphics.C
src/insets/insetgraphics.h
src/insets/insetinclude.C
src/insets/insetinclude.h
src/insets/insetindex.C
src/insets/insetindex.h
src/insets/insetinfo.C
src/insets/insetinfo.h
src/insets/insetlabel.C
src/insets/insetlabel.h
src/insets/insetlatexaccent.C
src/insets/insetlatexaccent.h
src/insets/insetlist.C
src/insets/insetlist.h
src/insets/insetmarginal.C
src/insets/insetmarginal.h
src/insets/insetminipage.C
src/insets/insetminipage.h
src/insets/insetparent.C
src/insets/insetparent.h
src/insets/insetquotes.C
src/insets/insetquotes.h
src/insets/insetref.C
src/insets/insetref.h
src/insets/insetspecialchar.C
src/insets/insetspecialchar.h
src/insets/insettabular.C
src/insets/insettabular.h
src/insets/insettext.C
src/insets/insettext.h
src/insets/insettheorem.C
src/insets/insettheorem.h
src/insets/insettoc.h
src/insets/inseturl.h
src/lyx_cb.C
src/lyx_main.C
src/lyx_main.h
src/lyxfunc.C
src/mathed/array.C
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_accentinset.C
src/mathed/math_accentinset.h
src/mathed/math_arrayinset.C
src/mathed/math_arrayinset.h
src/mathed/math_bigopinset.C
src/mathed/math_bigopinset.h
src/mathed/math_decorationinset.C
src/mathed/math_decorationinset.h
src/mathed/math_deliminset.C
src/mathed/math_deliminset.h
src/mathed/math_dotsinset.C
src/mathed/math_dotsinset.h
src/mathed/math_fracinset.C
src/mathed/math_fracinset.h
src/mathed/math_funcinset.C
src/mathed/math_funcinset.h
src/mathed/math_grid.h
src/mathed/math_inset.C
src/mathed/math_inset.h
src/mathed/math_macro.C
src/mathed/math_macro.h
src/mathed/math_macroarg.C
src/mathed/math_macroarg.h
src/mathed/math_macrotemplate.C
src/mathed/math_macrotemplate.h
src/mathed/math_matrixinset.C
src/mathed/math_matrixinset.h
src/mathed/math_parinset.h
src/mathed/math_root.C
src/mathed/math_root.h
src/mathed/math_scriptinset.C
src/mathed/math_scriptinset.h
src/mathed/math_sizeinset.C
src/mathed/math_sizeinset.h
src/mathed/math_spaceinset.C
src/mathed/math_spaceinset.h
src/mathed/math_sqrtinset.C
src/mathed/math_sqrtinset.h
src/paragraph.C
src/paragraph.h
src/paragraph_pimpl.C
src/tabular-old.C
src/tabular.C
src/tabular.h
src/tex-accent.C
src/tex-accent.h
src/text.C
src/text2.C
src/trans.C
src/trans_mgr.C

index 0269bf9c36f18e556be6db216cd10ada24c4dfef..3db22eb0f524c8d7bc984ed954397645559a187d 100644 (file)
@@ -411,7 +411,7 @@ bool BufferView::lockInset(UpdatableInset * inset)
                theLockingInset(inset);
                return true;
        } else if (inset) {
-           return theLockingInset()->LockInsetInInset(this, inset);
+           return theLockingInset()->lockInsetInInset(this, inset);
        }
        return false;
 }
@@ -425,12 +425,12 @@ void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
                    (cursor.par()->getChar(cursor.pos() - 1) ==
                     Paragraph::META_INSET) &&
                    (cursor.par()->getInset(cursor.pos() - 1) ==
-                    theLockingInset()->GetLockingInset()))
+                    theLockingInset()->getLockingInset()))
                        text->setCursor(this, cursor,
                                        cursor.par(), cursor.pos() - 1);
                LyXScreen::Cursor_Shape shape = LyXScreen::BAR_SHAPE;
                LyXText * txt = getLyXText();
-               if (theLockingInset()->GetLockingInset()->LyxCode() ==
+               if (theLockingInset()->getLockingInset()->lyxCode() ==
                    Inset::TEXT_CODE &&
                    (txt->real_current_font.language() !=
                     buffer()->params.language
@@ -439,7 +439,7 @@ void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
                        shape = (txt->real_current_font.isVisibleRightToLeft())
                                ? LyXScreen::REVERSED_L_SHAPE
                                : LyXScreen::L_SHAPE;
-               y += cursor.y() + theLockingInset()->InsetInInsetY();
+               y += cursor.y() + theLockingInset()->insetInInsetY();
                pimpl_->screen_->ShowManualCursor(text, x, y, asc, desc,
                                                  shape);
        }
@@ -457,7 +457,7 @@ void BufferView::hideLockedInsetCursor()
 void BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
 {
        if (theLockingInset() && available()) {
-               y += text->cursor.y() + theLockingInset()->InsetInInsetY();
+               y += text->cursor.y() + theLockingInset()->insetInInsetY();
                if (pimpl_->screen_->FitManualCursor(text, this, x, y, asc, desc))
                        updateScrollbar();
        }
@@ -467,12 +467,12 @@ void BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
 int BufferView::unlockInset(UpdatableInset * inset)
 {
        if (inset && theLockingInset() == inset) {
-               inset->InsetUnlock(this);
+               inset->insetUnlock(this);
                theLockingInset(0);
                text->finishUndo();
                return 0;
        } else if (inset && theLockingInset() &&
-                  theLockingInset()->UnlockInsetInInset(this, inset)) {
+                  theLockingInset()->unlockInsetInInset(this, inset)) {
                text->finishUndo();
                return 0;
        }
@@ -512,7 +512,7 @@ bool BufferView::ChangeInsets(Inset::Code code,
                bool flag2 = false;
                for (Paragraph::inset_iterator it = par->inset_iterator_begin();
                     it != par->inset_iterator_end(); ++it) {
-                       if ((*it)->LyxCode() == code) {
+                       if ((*it)->lyxCode() == code) {
                                InsetCommand * inset = static_cast<InsetCommand *>(*it);
                                if (inset->getContents() == from) {
                                        inset->setContents(to);
index 600eef68c3df157132243da0fdc4c03f49a4180d..6e58bf1141b223db6520a8df8f94e269ffdaa33f 100644 (file)
@@ -529,7 +529,7 @@ void BufferView::Pimpl::workAreaMotionNotify(int x, int y, unsigned int state)
                        ? cursor.x() - width : cursor.x();
                int start_x = inset_x + bv_->theLockingInset()->scroll();
                bv_->theLockingInset()->
-                       InsetMotionNotify(bv_,
+                       insetMotionNotify(bv_,
                                          x - start_x,
                                          y - cursor.y() + bv_->text->first,
                                          state);
@@ -583,7 +583,7 @@ void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos,
                   otherwise give the event to the inset */
                if (inset_hit == bv_->theLockingInset()) {
                        bv_->theLockingInset()->
-                               InsetButtonPress(bv_,
+                               insetButtonPress(bv_,
                                                 xpos, ypos,
                                                 button);
                        return;
@@ -615,14 +615,14 @@ void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos,
        
        // Single left click in math inset?
        if ((inset_hit != 0) &&
-           (inset_hit->Editable()==Inset::HIGHLY_EDITABLE)) {
+           (inset_hit->editable()==Inset::HIGHLY_EDITABLE)) {
                // Highly editable inset, like math
                UpdatableInset * inset = static_cast<UpdatableInset *>(inset_hit);
                selection_possible = false;
                owner_->updateLayoutChoice();
-               owner_->message(inset->EditMessage());
-               inset->InsetButtonPress(bv_, xpos, ypos, button);
-               inset->Edit(bv_, xpos, ypos, button);
+               owner_->message(inset->editMessage());
+               inset->insetButtonPress(bv_, xpos, ypos, button);
+               inset->edit(bv_, xpos, ypos, button);
                return;
        } 
        
@@ -744,9 +744,9 @@ void BufferView::Pimpl::workAreaButtonRelease(int x, int y,
 
                /* LyX does a kind of work-area grabbing for insets.
                   Only a ButtonPress Event outside the inset will 
-                  force a InsetUnlock. */
+                  force a insetUnlock. */
                bv_->theLockingInset()->
-                       InsetButtonRelease(bv_, x, y, button);
+                       insetButtonRelease(bv_, x, y, button);
                return;
        }
        
@@ -778,19 +778,19 @@ void BufferView::Pimpl::workAreaButtonRelease(int x, int y,
                // (Joacim)
                // ...or maybe the SetCursorParUndo()
                // below isn't necessary at all anylonger?
-               if (inset_hit->LyxCode() == Inset::REF_CODE) {
+               if (inset_hit->lyxCode() == Inset::REF_CODE) {
                        bv_->text->setCursorParUndo(buffer_);
                }
 
-               owner_->message(inset_hit->EditMessage());
+               owner_->message(inset_hit->editMessage());
 
-               if (inset_hit->Editable()==Inset::HIGHLY_EDITABLE) {
+               if (inset_hit->editable()==Inset::HIGHLY_EDITABLE) {
                        // Highly editable inset, like math
                        UpdatableInset *inset = (UpdatableInset *)inset_hit;
-                       inset->InsetButtonRelease(bv_, x, y, button);
+                       inset->insetButtonRelease(bv_, x, y, button);
                } else {
-                       inset_hit->InsetButtonRelease(bv_, x, y, button);
-                       inset_hit->Edit(bv_, x, y, button);
+                       inset_hit->insetButtonRelease(bv_, x, y, button);
+                       inset_hit->edit(bv_, x, y, button);
                }
                return;
        }
@@ -819,7 +819,7 @@ void BufferView::Pimpl::workAreaButtonRelease(int x, int y,
            bibitemMaxWidth(bv_, textclasslist.
                            TextClass(buffer_->
                                      params.textclass).defaultfont())) {
-               bv_->text->cursor.par()->bibkey->Edit(bv_, 0, 0, 0);
+               bv_->text->cursor.par()->bibkey->edit(bv_, 0, 0, 0);
        }
 
        return;
@@ -847,7 +847,7 @@ Inset * BufferView::Pimpl::checkInsetHit(LyXText * text, int & x, int & y,
        if (cursor.pos() < cursor.par()->size()
            && cursor.par()->getChar(cursor.pos()) == Paragraph::META_INSET
            && cursor.par()->getInset(cursor.pos())
-           && cursor.par()->getInset(cursor.pos())->Editable()) {
+           && cursor.par()->getInset(cursor.pos())->editable()) {
 
                // Check whether the inset really was hit
                Inset * tmpinset = cursor.par()->getInset(cursor.pos());
@@ -873,7 +873,7 @@ Inset * BufferView::Pimpl::checkInsetHit(LyXText * text, int & x, int & y,
        if ((cursor.pos() - 1 >= 0) &&
            (cursor.par()->getChar(cursor.pos()-1) == Paragraph::META_INSET) &&
            (cursor.par()->getInset(cursor.pos() - 1)) &&
-           (cursor.par()->getInset(cursor.pos() - 1)->Editable())) {
+           (cursor.par()->getInset(cursor.pos() - 1)->editable())) {
                Inset * tmpinset = cursor.par()->getInset(cursor.pos()-1);
                LyXFont font = text->getFont(buffer_, cursor.par(),
                                                  cursor.pos()-1);
@@ -1008,7 +1008,7 @@ void BufferView::Pimpl::update(LyXText * text, BufferView::UpdateCodes f)
        text->fullRebreak(bv_);
 
        if (text->inset_owner) {
-           text->inset_owner->SetUpdateStatus(bv_, InsetText::NONE);
+           text->inset_owner->setUpdateStatus(bv_, InsetText::NONE);
            updateInset(text->inset_owner, true);
        } else
            update();
@@ -1050,7 +1050,7 @@ void BufferView::Pimpl::cursorToggle()
        if (!bv_->theLockingInset()) {
                screen_->CursorToggle(bv_->text, bv_);
        } else {
-               bv_->theLockingInset()->ToggleInsetCursor(bv_);
+               bv_->theLockingInset()->toggleInsetCursor(bv_);
        }
        
        cursor_timeout.restart();
@@ -1202,8 +1202,8 @@ void BufferView::Pimpl::setState()
 void BufferView::Pimpl::insetSleep()
 {
        if (bv_->theLockingInset() && !inset_slept) {
-               bv_->theLockingInset()->GetCursorPos(bv_, bv_->slx, bv_->sly);
-               bv_->theLockingInset()->InsetUnlock(bv_);
+               bv_->theLockingInset()->getCursorPos(bv_, bv_->slx, bv_->sly);
+               bv_->theLockingInset()->insetUnlock(bv_);
                inset_slept = true;
        }
 }
@@ -1212,7 +1212,7 @@ void BufferView::Pimpl::insetSleep()
 void BufferView::Pimpl::insetWakeup()
 {
        if (bv_->theLockingInset() && inset_slept) {
-               bv_->theLockingInset()->Edit(bv_, bv_->slx, bv_->sly, 0);
+               bv_->theLockingInset()->edit(bv_, bv_->slx, bv_->sly, 0);
                inset_slept = false;
        }
 }
@@ -1222,7 +1222,7 @@ void BufferView::Pimpl::insetUnlock()
 {
        if (bv_->theLockingInset()) {
                if (!inset_slept)
-                       bv_->theLockingInset()->InsetUnlock(bv_);
+                       bv_->theLockingInset()->insetUnlock(bv_);
                bv_->theLockingInset(0);
                bv_->text->finishUndo();
                inset_slept = false;
@@ -1354,7 +1354,7 @@ Inset * BufferView::Pimpl::getInsetByCode(Inset::Code code)
                find_if(Buffer::inset_iterator(
                        cursor.par(), cursor.pos()),
                        buffer_->inset_iterator_end(),
-                       lyx::compare_memfun(&Inset::LyxCode, code));
+                       lyx::compare_memfun(&Inset::lyxCode, code));
        return it != buffer_->inset_iterator_end() ? (*it) : 0;
 }
 
@@ -1425,6 +1425,9 @@ void BufferView::Pimpl::MenuInsertLyXFile(string const & filen)
 
 bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
 {
+       lyxerr[Debug::ACTION] << "BufferView::Pimpl::Dispatch: action["
+                             << action <<"] arg[" << argument << "]" << endl;
+       
        switch (action) {
                // --- Misc -------------------------------------------
        case LFUN_APPENDIX:
@@ -1465,7 +1468,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                } else {
                        // this is need because you don't use a inset->Edit()
                        updateInset(new_inset, true);
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                }
                break;
        }
@@ -1805,9 +1808,9 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                    && lt->cursor.par()->getChar(lt->cursor.pos())
                    == Paragraph::META_INSET
                    && lt->cursor.par()->getInset(lt->cursor.pos())
-                   && lt->cursor.par()->getInset(lt->cursor.pos())->Editable() == Inset::HIGHLY_EDITABLE){
+                   && lt->cursor.par()->getInset(lt->cursor.pos())->editable() == Inset::HIGHLY_EDITABLE){
                        Inset * tmpinset = lt->cursor.par()->getInset(lt->cursor.pos());
-                       owner_->getLyXFunc()->setMessage(tmpinset->EditMessage());
+                       owner_->getLyXFunc()->setMessage(tmpinset->editMessage());
                        int y = 0;
                        if (is_rtl) {
                                LyXFont const font = 
@@ -1816,7 +1819,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                                                    lt->cursor.pos());  
                                y = tmpinset->descent(bv_,font);
                        }
-                       tmpinset->Edit(bv_, 0, y, 0);
+                       tmpinset->edit(bv_, 0, y, 0);
                        break;
                }
                if (!is_rtl)
@@ -1844,17 +1847,17 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                    (lt->cursor.par()->getChar(lt->cursor.pos()) ==
                     Paragraph::META_INSET) &&
                    lt->cursor.par()->getInset(lt->cursor.pos()) &&
-                   (lt->cursor.par()->getInset(lt->cursor.pos())->Editable()
+                   (lt->cursor.par()->getInset(lt->cursor.pos())->editable()
                     == Inset::HIGHLY_EDITABLE))
                {
                        Inset * tmpinset = lt->cursor.par()->getInset(lt->cursor.pos());
-                       owner_->getLyXFunc()->setMessage(tmpinset->EditMessage());
+                       owner_->getLyXFunc()->setMessage(tmpinset->editMessage());
                        LyXFont const font = lt->getFont(buffer_,
                                                         lt->cursor.par(),
                                                         lt->cursor.pos());
                        int y = is_rtl ? 0 
                                : tmpinset->descent(bv_,font);
-                       tmpinset->Edit(bv_,
+                       tmpinset->edit(bv_,
                                       tmpinset->x() +
                                       tmpinset->width(bv_,font),
                                       y, 0);
@@ -2668,7 +2671,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetText * new_inset = new InsetText;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2678,7 +2681,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetERT * new_inset = new InsetERT;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2688,7 +2691,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetExternal * new_inset = new InsetExternal;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2698,7 +2701,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetFoot * new_inset = new InsetFoot;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2708,7 +2711,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetMarginal * new_inset = new InsetMarginal;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2718,7 +2721,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetMinipage * new_inset = new InsetMinipage;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2730,7 +2733,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                if (floatList.typeExist(argument)) {
                        InsetFloat * new_inset = new InsetFloat(argument);
                        if (insertInset(new_inset))
-                               new_inset->Edit(bv_, 0, 0, 0);
+                               new_inset->edit(bv_, 0, 0, 0);
                        else
                                delete new_inset;
                } else {
@@ -2748,7 +2751,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                        InsetFloat * new_inset = new InsetFloat(argument);
                        new_inset->wide(true);
                        if (insertInset(new_inset))
-                               new_inset->Edit(bv_, 0, 0, 0);
+                               new_inset->edit(bv_, 0, 0, 0);
                        else
                                delete new_inset;
                } else {
@@ -2763,7 +2766,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetList * new_inset = new InsetList;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2773,7 +2776,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
        {
                InsetTheorem * new_inset = new InsetTheorem;
                if (insertInset(new_inset))
-                       new_inset->Edit(bv_, 0, 0, 0);
+                       new_inset->edit(bv_, 0, 0, 0);
                else
                        delete new_inset;
        }
@@ -2784,14 +2787,14 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                // Do we have a locking inset...
                if (bv_->theLockingInset()) {
                        lyxerr << "Locking inset code: "
-                              << static_cast<int>(bv_->theLockingInset()->LyxCode());
+                              << static_cast<int>(bv_->theLockingInset()->lyxCode());
                        InsetCaption * new_inset = new InsetCaption;
                        new_inset->setOwner(bv_->theLockingInset());
-                       new_inset->SetAutoBreakRows(true);
-                       new_inset->SetDrawFrame(0, InsetText::LOCKED);
-                       new_inset->SetFrameColor(0, LColor::captionframe);
+                       new_inset->setAutoBreakRows(true);
+                       new_inset->setDrawFrame(0, InsetText::LOCKED);
+                       new_inset->setFrameColor(0, LColor::captionframe);
                        if (insertInset(new_inset))
-                               new_inset->Edit(bv_, 0, 0, 0);
+                               new_inset->edit(bv_, 0, 0, 0);
                        else
                                delete new_inset;
                }
@@ -2914,7 +2917,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                if (available()) { 
                        if (open_new_inset(new InsetFormula, false)) {
                                bv_->theLockingInset()
-                                       ->LocalDispatch(bv_, action, argument);
+                                       ->localDispatch(bv_, action, argument);
                        }
                }
        }          
@@ -2927,7 +2930,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
  
                InsetFormula * f = new InsetFormula(LM_OT_EQUATION);
                open_new_inset(f);
-               f->LocalDispatch(bv_, LFUN_INSERT_MATH, argument);
+               f->localDispatch(bv_, LFUN_INSERT_MATH, argument);
        }
        break;
        
@@ -2989,7 +2992,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
                
                if (insertInset(inset)) {
                        if (argument.empty())
-                               inset->Edit(bv_, 0, 0, 0);
+                               inset->edit(bv_, 0, 0, 0);
                } else
                        delete inset;
        }
@@ -3327,7 +3330,7 @@ void BufferView::Pimpl::insertNote()
 {
        InsetInfo * new_inset = new InsetInfo();
        insertInset(new_inset);
-       new_inset->Edit(bv_, 0, 0, 0);
+       new_inset->edit(bv_, 0, 0, 0);
 }
 
 
@@ -3344,9 +3347,9 @@ bool BufferView::Pimpl::open_new_inset(UpdatableInset * new_inset, bool behind)
        }
        if (behind) {
                LyXFont & font = lt->real_current_font;
-               new_inset->Edit(bv_, new_inset->width(bv_, font), 0, 0);
+               new_inset->edit(bv_, new_inset->width(bv_, font), 0, 0);
        } else
-               new_inset->Edit(bv_, 0, 0, 0);
+               new_inset->edit(bv_, 0, 0, 0);
        return true;
 }
 
@@ -3356,8 +3359,8 @@ bool BufferView::Pimpl::insertInset(Inset * inset, string const & lout)
        // if we are in a locking inset we should try to insert the
        // inset there otherwise this is a illegal function now
        if (bv_->theLockingInset()) {
-               if (bv_->theLockingInset()->InsertInsetAllowed(inset))
-                   return bv_->theLockingInset()->InsertInset(bv_, inset);
+               if (bv_->theLockingInset()->insertInsetAllowed(inset))
+                   return bv_->theLockingInset()->insertInset(bv_, inset);
                return false;
        }
 
@@ -3428,7 +3431,7 @@ void BufferView::Pimpl::updateInset(Inset * inset, bool mark_dirty)
                                updateScrollbar();
                                return;
                        }
-               } else if (bv_->theLockingInset()->UpdateInsetInInset(bv_, inset)) {
+               } else if (bv_->theLockingInset()->updateInsetInInset(bv_, inset)) {
                        if (bv_->text->updateInset(bv_,
                                                   bv_->theLockingInset())) {
                                update();
@@ -3473,7 +3476,7 @@ void BufferView::Pimpl::gotoInset(vector<Inset::Code> const & codes,
        if (same_content &&
            bv_->text->cursor.par()->getChar(bv_->text->cursor.pos()) == Paragraph::META_INSET) {
                Inset const * inset = bv_->text->cursor.par()->getInset(bv_->text->cursor.pos());
-               if (find(codes.begin(), codes.end(), inset->LyxCode())
+               if (find(codes.begin(), codes.end(), inset->lyxCode())
                    != codes.end())
                        contents =
                                static_cast<InsetCommand const *>(inset)->getContents();
index 5cb9a3ca8837ac22cbef37fa0845f0bf1482da72..8f09fd92b215c60b9a526256c98e6ebbdedecc49 100644 (file)
@@ -385,7 +385,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
                checkminipage = true;
        } else if (token == "\\i") {
                Inset * inset = new InsetLatexAccent;
-               inset->Read(this, lex);
+               inset->read(this, lex);
                par->insertInset(pos, inset, font);
                ++pos;
        } else if (token == "\\layout") {
@@ -565,7 +565,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
                istringstream istr(old_float.str());
                LyXLex nylex(0, 0);
                nylex.setStream(istr);
-               inset->Read(this, nylex);
+               inset->read(this, nylex);
                par->insertInset(pos, inset, font);
                ++pos;
        } else if (token == "\\begin_deeper") {
@@ -999,7 +999,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
                        }
                } else {
                        Inset * inset = new InsetSpecialChar;
-                       inset->Read(this, lex);
+                       inset->read(this, lex);
                        par->insertInset(pos, inset, font);
                }
                ++pos;
@@ -1008,7 +1008,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
                ++pos;
        } else if (token == "\\LyXTable") {
                Inset * inset = new InsetTabular(*this);
-               inset->Read(this, lex);
+               inset->read(this, lex);
                par->insertInset(pos, inset, font);
                ++pos;
                // because of OLD_TABULAR_READ where tabulars have been
@@ -1037,7 +1037,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
                        InsetCommandParams p("bibitem", "dummy");
                        par->bibkey = new InsetBibKey(p);
                }
-               par->bibkey->Read(this, lex);                   
+               par->bibkey->read(this, lex);                   
        } else if (token == "\\backslash") {
                par->insertChar(pos, '\\', font);
                ++pos;
@@ -1221,7 +1221,7 @@ void Buffer::readInset(LyXLex & lex, Paragraph *& par,
        // test the different insets
        if (tmptok == "LatexCommand") {
                InsetCommandParams inscmd;
-               inscmd.Read(lex);
+               inscmd.read(lex);
 
                string const cmdName = inscmd.getCmdName();
                
@@ -1307,7 +1307,7 @@ void Buffer::readInset(LyXLex & lex, Paragraph *& par,
                        inset = new InsetFloatList;
                }
                
-               if (inset) inset->Read(this, lex);
+               if (inset) inset->read(this, lex);
        }
        
        if (inset) {
@@ -1670,7 +1670,7 @@ string const Buffer::asciiParagraph(Paragraph const * par,
                {
                        Inset const * inset = par->getInset(i);
                        if (inset) {
-                               if (!inset->Ascii(this, buffer)) {
+                               if (!inset->ascii(this, buffer)) {
                                        string dummy;
                                        string const s =
                                                rsplit(buffer.str().c_str(),
@@ -2412,7 +2412,7 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
                // treat <toc> as a special case for compatibility with old code
                if (par->getChar(0) == Paragraph::META_INSET) {
                        Inset * inset = par->getInset(0);
-                       Inset::Code lyx_code = inset->LyxCode();
+                       Inset::Code lyx_code = inset->lyxCode();
                        if (lyx_code == Inset::TOC_CODE){
                                string const temp = "toc";
                                sgmlOpenTag(ofs, depth, temp);
@@ -2445,7 +2445,7 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
 
                case LATEX_COMMAND:
                        if (depth!= 0)
-                               LinuxDocError(par, 0,
+                               linuxDocError(par, 0,
                                              _("Error : Wrong depth for"
                                                " LatexType Command.\n"));
 
@@ -2499,7 +2499,7 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
                        break;
                }
 
-               SimpleLinuxDocOnePar(ofs, par, depth);
+               simpleLinuxDocOnePar(ofs, par, depth);
 
                par = par->next();
 
@@ -2533,7 +2533,7 @@ void Buffer::makeLinuxDocFile(string const & fname, bool nice, bool body_only)
 }
 
 
-void Buffer::DocBookHandleCaption(ostream & os, string & inner_tag,
+void Buffer::docBookHandleCaption(ostream & os, string & inner_tag,
                                  Paragraph::depth_type depth, int desc_on,
                                  Paragraph * & par)
 {
@@ -2548,7 +2548,7 @@ void Buffer::DocBookHandleCaption(ostream & os, string & inner_tag,
                                                         "Caption").second) {
                sgmlOpenTag(os, depth + 1, inner_tag);
                string extra_par;
-               SimpleDocBookOnePar(os, extra_par, tpar,
+               simpleDocBookOnePar(os, extra_par, tpar,
                                    desc_on, depth + 2);
                sgmlCloseTag(os, depth+1, inner_tag);
                if (!extra_par.empty())
@@ -2615,7 +2615,7 @@ void reset(PAR_TAG & p1, PAR_TAG const & p2)
 
 
 // Handle internal paragraph parsing -- layout already processed.
-void Buffer::SimpleLinuxDocOnePar(ostream & os,
+void Buffer::simpleLinuxDocOnePar(ostream & os,
                                  Paragraph * par, 
                                  Paragraph::depth_type /*depth*/)
 {
@@ -2759,7 +2759,7 @@ void Buffer::SimpleLinuxDocOnePar(ostream & os,
 
                if (c == Paragraph::META_INSET) {
                        Inset * inset = par->getInset(i);
-                       inset->Linuxdoc(this, os);
+                       inset->linuxdoc(this, os);
                        font_old = font;
                        continue;
                }
@@ -2812,7 +2812,7 @@ void Buffer::SimpleLinuxDocOnePar(ostream & os,
 
 
 // Print an error message.
-void Buffer::LinuxDocError(Paragraph * par, int pos,
+void Buffer::linuxDocError(Paragraph * par, int pos,
                           string const & message) 
 {
        // insert an error marker in text
@@ -2938,7 +2938,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
 
                case LATEX_COMMAND:
                        if (depth != 0)
-                               LinuxDocError(par, 0,
+                               linuxDocError(par, 0,
                                              _("Error : Wrong depth for "
                                                "LatexType Command.\n"));
                        
@@ -2972,7 +2972,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
                        // more WYSIWYM handling.
                        if (par->getChar(0) == Paragraph::META_INSET) {
                                Inset * inset = par->getInset(0);
-                               Inset::Code lyx_code = inset->LyxCode();
+                               Inset::Code lyx_code = inset->lyxCode();
                                if (lyx_code == Inset::LABEL_CODE){
                                        command_name += " id=\"";
                                        command_name += (static_cast<InsetCommand *>(inset))->getContents();
@@ -3056,7 +3056,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
                }
 
                string extra_par;
-               SimpleDocBookOnePar(ofs, extra_par, par, desc_on,
+               simpleDocBookOnePar(ofs, extra_par, par, desc_on,
                                    depth + 1 + command_depth);
                par = par->next();
 
@@ -3122,7 +3122,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
 }
 
 
-void Buffer::SimpleDocBookOnePar(ostream & os, string & extra,
+void Buffer::simpleDocBookOnePar(ostream & os, string & extra,
                                 Paragraph * par, int & desc_on,
                                 Paragraph::depth_type depth) const
 {
@@ -3158,7 +3158,7 @@ void Buffer::SimpleDocBookOnePar(ostream & os, string & extra,
                if (c == Paragraph::META_INSET) {
                        Inset * inset = par->getInset(i);
                        std::ostringstream ost;
-                       inset->DocBook(this, ost);
+                       inset->docBook(this, ost);
                        string tmp_out = ost.str().c_str();
 
                        //
@@ -3360,7 +3360,7 @@ string const Buffer::getIncludeonlyList(char delim)
        string lst;
        for (inset_iterator it = inset_iterator_begin();
            it != inset_iterator_end(); ++it) {
-               if ((*it)->LyxCode() == Inset::INCLUDE_CODE) {
+               if ((*it)->lyxCode() == Inset::INCLUDE_CODE) {
                        InsetInclude * insetinc = 
                                static_cast<InsetInclude *>(*it);
                        if (insetinc->isIncludeOnly()) {
@@ -3429,7 +3429,7 @@ Buffer::Lists const Buffer::getLists() const
                                par->inset_iterator_end();
                        
                        for (; it != end; ++it) {
-                               if ((*it)->LyxCode() == Inset::FLOAT_CODE) {
+                               if ((*it)->lyxCode() == Inset::FLOAT_CODE) {
                                        InsetFloat * il =
                                                static_cast<InsetFloat*>(*it);
                                        
@@ -3485,11 +3485,11 @@ vector<pair<string, string> > const Buffer::getBibkeyList()
                for (inset_iterator it = inset_iterator_begin();
                        it != inset_iterator_end(); ++it) {
                        // Search for Bibtex or Include inset
-                       if ((*it)->LyxCode() == Inset::BIBTEX_CODE) {
+                       if ((*it)->lyxCode() == Inset::BIBTEX_CODE) {
                                vector<pair<string,string> > tmp =
                                        static_cast<InsetBibtex*>(*it)->getKeys(this);
                                keys.insert(keys.end(), tmp.begin(), tmp.end());
-                       } else if ((*it)->LyxCode() == Inset::INCLUDE_CODE) {
+                       } else if ((*it)->lyxCode() == Inset::INCLUDE_CODE) {
                                vector<pair<string,string> > const tmp =
                                        static_cast<InsetInclude*>(*it)->getKeys();
                                keys.insert(keys.end(), tmp.begin(), tmp.end());
@@ -3534,18 +3534,18 @@ void Buffer::markDepClean(string const & name)
 }
 
 
-bool Buffer::Dispatch(string const & command)
+bool Buffer::dispatch(string const & command)
 {
        // Split command string into command and argument
        string cmd;
        string line = frontStrip(command);
        string const arg = strip(frontStrip(split(line, cmd, ' ')));
 
-       return Dispatch(lyxaction.LookupFunc(cmd), arg);
+       return dispatch(lyxaction.LookupFunc(cmd), arg);
 }
 
 
-bool Buffer::Dispatch(int action, string const & argument)
+bool Buffer::dispatch(int action, string const & argument)
 {
        bool dispatched = true;
        switch (action) {
@@ -3577,7 +3577,7 @@ void Buffer::redraw()
 }
 
 
-void Buffer::ChangeLanguage(Language const * from, Language const * to)
+void Buffer::changeLanguage(Language const * from, Language const * to)
 {
 
        Paragraph * par = paragraph;
@@ -3607,12 +3607,12 @@ Buffer::inset_iterator::inset_iterator(Paragraph * paragraph,
        it = par->InsetIterator(pos);
        if (it == par->inset_iterator_end()) {
                par = par->next();
-               SetParagraph();
+               setParagraph();
        }
 }
 
 
-void Buffer::inset_iterator::SetParagraph()
+void Buffer::inset_iterator::setParagraph()
 {
        while (par) {
                it = par->inset_iterator_begin();
index ddc23bea7a3e0f07b9d8a28bd7297faf8c276b2f..ae9cbb0ce2d0092e723ca8ba9169401cf0be3408 100644 (file)
@@ -75,10 +75,10 @@ public:
        /** High-level interface to buffer functionality.
            This function parses a command string and executes it
        */
-       bool Dispatch(string const & command);
+       bool dispatch(string const & command);
 
        /// Maybe we know the function already by number...
-       bool Dispatch(int ac, string const & argument);
+       bool dispatch(int ac, string const & argument);
 
        /// 
        void resizeInsets(BufferView *);
@@ -155,7 +155,7 @@ public:
                             Paragraph * endpar, TexRow & texrow) const;
 
         ///
-       void SimpleDocBookOnePar(std::ostream &, string & extra,
+       void simpleDocBookOnePar(std::ostream &, string & extra,
                                 Paragraph * par, int & desc_on,
                                 Paragraph::depth_type depth) const ;
 
@@ -170,7 +170,7 @@ public:
                             bool nice, bool only_body = false);
 
        /// returns the main language for the buffer (document)
-       Language const * GetLanguage() const;
+       Language const * getLanguage() const;
        ///
        bool isLyxClean() const;
        ///
@@ -274,7 +274,7 @@ public:
        BufferView * getUser() const;
 
        ///
-       void ChangeLanguage(Language const * from, Language const * to);
+       void changeLanguage(Language const * from, Language const * to);
        ///
        bool isMultiLingual();
 
@@ -311,7 +311,7 @@ public:
        TexRow texrow;
 private:
         ///
-       void DocBookHandleCaption(std::ostream & os, string & inner_tag,
+       void docBookHandleCaption(std::ostream & os, string & inner_tag,
                                  Paragraph::depth_type depth, int desc_on,
                                  Paragraph * & par);
        /// Open SGML/XML tag.
@@ -321,10 +321,10 @@ private:
         void sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth,
                          string const & latexname) const;
        ///
-       void LinuxDocError(Paragraph * par, int pos,
+       void linuxDocError(Paragraph * par, int pos,
                           string const & message);
         ///
-       void SimpleLinuxDocOnePar(std::ostream & os, Paragraph * par, 
+       void simpleLinuxDocOnePar(std::ostream & os, Paragraph * par, 
                                  Paragraph::depth_type depth);
 
        /// is save needed
@@ -371,7 +371,7 @@ public:
                inset_iterator() : par(0) /*, it(0)*/ {}
                //
                inset_iterator(Paragraph * paragraph) : par(paragraph) {
-                       SetParagraph();
+                       setParagraph();
                }
                ///
                inset_iterator(Paragraph * paragraph,
@@ -382,7 +382,7 @@ public:
                                ++it;
                                if (it == par->inset_iterator_end()) {
                                        par = par->next();
-                                       SetParagraph();
+                                       setParagraph();
                                }
                        }
                        return *this;
@@ -394,7 +394,7 @@ public:
                                ++it;
                                if (it == par->inset_iterator_end()) {
                                        par = par->next();
-                                       SetParagraph();
+                                       setParagraph();
                                }
                        }
                        return tmp;
@@ -412,7 +412,7 @@ public:
                                inset_iterator const & iter2);
        private:
                ///
-               void SetParagraph();
+               void setParagraph();
                ///
                Paragraph * par;
                ///
@@ -445,7 +445,7 @@ void Buffer::delUser(BufferView *)
        
 
 inline
-Language const * Buffer::GetLanguage() const
+Language const * Buffer::getLanguage() const
 {
        return params.language;
 }
index a7ce2a92704ba6afda4051f3d6b9bc0fca1bd75b..83a5ad89770c4cdf18a139b60d68862f886ecf6b 100644 (file)
@@ -95,7 +95,7 @@ bool BufferList::empty() const
 }
 
 
-bool BufferList::QwriteAll()
+bool BufferList::qwriteAll()
 {
         bool askMoreConfirmation = false;
         string unsaved;
index 84522215886fc992cb88b1c183cb7f4b4c9f244b..198f46e552d4d15eb1be1a3131e5ab1d5ae61c68 100644 (file)
@@ -96,7 +96,7 @@ public:
        bool empty() const;
 
        ///
-        bool QwriteAll();
+        bool qwriteAll();
 
        /// Close all open buffers.
        void closeAll();
index f9b9689a5db903930064aa78de3d2b52a8653e8a..fde594460bbbdefbdbe62057716c95b34b8fca54 100644 (file)
@@ -255,7 +255,7 @@ void ToggleAndShow(BufferView * bv, LyXFont const & font, bool toggleall)
 {
        if (bv->available()) { 
                if (bv->theLockingInset()) {
-                       bv->theLockingInset()->SetFont(bv, font, toggleall);
+                       bv->theLockingInset()->setFont(bv, font, toggleall);
                        return;
                }
                LyXText * text = bv->getLyXText();
index 670786685127628988b2a859eba300c341149e67..3721def9bfee89db924b49cb80715ab3f83d3a3a 100644 (file)
@@ -55,7 +55,7 @@ void FigureApplyCB(FL_OBJECT *, long)
                InsetFig * new_inset = new InsetFig(100, 20, *buffer);
                current_view->insertInset(new_inset);
                current_view->owner()->message(_("Figure inserted"));
-               new_inset->Edit(current_view, 0, 0, 0);
+               new_inset->edit(current_view, 0, 0, 0);
                return;
        }
        
@@ -93,7 +93,7 @@ void FigureApplyCB(FL_OBJECT *, long)
       
        Inset * new_inset = new InsetFig(100, 100, *buffer);
        current_view->insertInset(new_inset);
-       new_inset->Edit(current_view, 0, 0, 0);
+       new_inset->edit(current_view, 0, 0, 0);
        current_view->update(current_view->text, BufferView::SELECT|BufferView::FITCUR);
        current_view->owner()->message(_("Figure inserted"));
        current_view->text->unFreezeUndo();
index d5df5b718692d9e3c9abed2154097203a5bffb48..3207a2869a3d055453818853d7dfed73cbe742f8 100644 (file)
@@ -72,7 +72,7 @@ void ControlExternal::editExternal()
        // Create a local copy of the inset and initialise it with this
        // params struct.
        boost::scoped_ptr<InsetExternal> ie;
-       ie.reset(static_cast<InsetExternal *>(inset()->Clone(*lv_.buffer())));
+       ie.reset(static_cast<InsetExternal *>(inset()->clone(*lv_.buffer())));
        ie->setFromParams(params());
 
        ie->editExternal();
@@ -83,7 +83,7 @@ void ControlExternal::viewExternal()
        view().apply();
 
        boost::scoped_ptr<InsetExternal> ie;
-       ie.reset(static_cast<InsetExternal *>(inset()->Clone(*lv_.buffer())));
+       ie.reset(static_cast<InsetExternal *>(inset()->clone(*lv_.buffer())));
        ie->setFromParams(params());
 
        ie->viewExternal();
@@ -94,7 +94,7 @@ void ControlExternal::updateExternal()
        view().apply();
 
        boost::scoped_ptr<InsetExternal> ie;
-       ie.reset(static_cast<InsetExternal *>(inset()->Clone(*lv_.buffer())));
+       ie.reset(static_cast<InsetExternal *>(inset()->clone(*lv_.buffer())));
        ie->setFromParams(params());
 
        ie->updateExternal();
index 9242973071c9691a72bd5fe35eb9c5ef982be22b..05d96eefaffc6ef0d512888f84312ffe5c4adfde 100644 (file)
@@ -543,7 +543,7 @@ bool FormDocument::language_apply()
     if (old_language != new_language
        && old_language->RightToLeft() == new_language->RightToLeft()
        && !lv_->buffer()->isMultiLingual())
-       lv_->buffer()->ChangeLanguage(old_language, new_language);
+       lv_->buffer()->changeLanguage(old_language, new_language);
     if (old_language != new_language) {
        redo = true;
     }
index 0657681b41e860079379746061a3bf6e3d5e18bb..fc124e9524c7dafedd29ad9daa7f713a4680ce3f 100644 (file)
@@ -136,7 +136,7 @@ void FormTabular::update()
        string pwidth;
        string special;
 
-       int cell = inset_->GetActCell();
+       int cell = inset_->getActCell();
        actCell_ = cell;
        int column = tabular->column_of_cell(cell)+1;
        fl_set_object_label(dialog_->text_warning,"");
@@ -354,7 +354,7 @@ bool FormTabular::input(FL_OBJECT * ob, long)
     LyXTabular::Feature num = LyXTabular::LAST_ACTION;
     string special;;
 
-    int cell = inset_->GetActCell();
+    int cell = inset_->getActCell();
     if (actCell_ != cell) {
         update();
         fl_set_object_label(dialog_->text_warning,
@@ -376,7 +376,7 @@ bool FormTabular::input(FL_OBJECT * ob, long)
             fl_show_object(dialog_->text_warning);
             return false;
         }
-        inset_->TabularFeatures(lv_->view(), LyXTabular::SET_PWIDTH,str);
+        inset_->tabularFeatures(lv_->view(), LyXTabular::SET_PWIDTH,str);
         update(); // update for alignment
         return true;
     }
@@ -388,7 +388,7 @@ bool FormTabular::input(FL_OBJECT * ob, long)
             fl_show_object(dialog_->text_warning);
             return false;
         }
-        inset_->TabularFeatures(lv_->view(), LyXTabular::SET_MPWIDTH,str);
+        inset_->tabularFeatures(lv_->view(), LyXTabular::SET_MPWIDTH,str);
         update(); // update for alignment
         return true;
     }
@@ -519,7 +519,7 @@ bool FormTabular::input(FL_OBJECT * ob, long)
     else
         return false;
     
-    inset_->TabularFeatures(lv_->view(), num, special);
+    inset_->tabularFeatures(lv_->view(), num, special);
     update();
 
     return true;
index 89c71ae0038918d3183eb8b8cb39f685ac058b5d..34fef6c4cacd3b7933cec68578b20335f4259b5c 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-28  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * Change a lot of method names to begin with a small char.
+       Changes to a lot of files because of this.
+
 2001-06-27  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * insetfloatlist.C (Write): std:: qualify ostream
index fa11c2a78dbe4e039ec13adeb7692c3cd72e6ef4..f2d17b3b85857a7a8b46a61d83a50314cb7aa088 100644 (file)
@@ -1050,9 +1050,9 @@ void InsetFig::draw(BufferView * bv, LyXFont const & f,
 }
 
 
-void InsetFig::Write(Buffer const *, ostream & os) const
+void InsetFig::write(Buffer const *, ostream & os) const
 {
-       Regenerate();
+       regenerate();
        os << "Figure size " << wid << " " << hgh << "\n";
        if (!fname.empty()) {
                string buf1 = OnlyPath(owner->fileName());
@@ -1069,7 +1069,7 @@ void InsetFig::Write(Buffer const *, ostream & os) const
 }
 
 
-void InsetFig::Read(Buffer const *, LyXLex & lex)
+void InsetFig::read(Buffer const *, LyXLex & lex)
 {
        string buf;
        bool finished = false;
@@ -1148,35 +1148,35 @@ void InsetFig::Read(Buffer const *, LyXLex & lex)
                        thtype = htype;
                }
        }
-       Regenerate();
-       Recompute();
+       regenerate();
+       recompute();
 }
 
 
-int InsetFig::Latex(Buffer const *, ostream & os,
+int InsetFig::latex(Buffer const *, ostream & os,
                    bool /* fragile*/, bool /* fs*/) const
 {
-       Regenerate();
+       regenerate();
        if (!cmd.empty()) os << cmd << " ";
        return 0;
 }
 
 
-int InsetFig::Ascii(Buffer const *, ostream &, int) const
+int InsetFig::ascii(Buffer const *, ostream &, int) const
 {
        return 0;
 }
 
 
-int InsetFig::Linuxdoc(Buffer const *, ostream &) const
+int InsetFig::linuxdoc(Buffer const *, ostream &) const
 {
        return 0;
 }
 
 
-int InsetFig::DocBook(Buffer const *, ostream & os) const
+int InsetFig::docBook(Buffer const *, ostream & os) const
 {
-       string buf1 = OnlyPath(owner->fileName());
+       string const buf1 = OnlyPath(owner->fileName());
        string figurename = MakeRelPath(fname, buf1);
 
        if (suffixIs(figurename, ".eps"))
@@ -1187,35 +1187,35 @@ int InsetFig::DocBook(Buffer const *, ostream & os) const
 } 
 
 
-void InsetFig::Validate(LaTeXFeatures & features) const
+void InsetFig::validate(LaTeXFeatures & features) const
 {
        features.graphics = true;
        if (subfigure) features.subfigure = true;
 }
 
 
-Inset::EDITABLE InsetFig::Editable() const
+Inset::EDITABLE InsetFig::editable() const
 {
        return IS_EDITABLE;
 }
 
 
-bool InsetFig::Deletable() const
+bool InsetFig::deletable() const
 {
        return false;
 }
 
 
-string const InsetFig::EditMessage() const 
+string const InsetFig::editMessage() const 
 {
        return _("Opened figure");
 }
 
 
-void InsetFig::Edit(BufferView * bv, int, int, unsigned int)
+void InsetFig::edit(BufferView * bv, int, int, unsigned int)
 {
        lyxerr[Debug::INFO] << "Editing InsetFig." << endl;
-       Regenerate();
+       regenerate();
 
        // We should have RO-versions of the form instead.
        // The actual prevention of altering a readonly doc
@@ -1230,7 +1230,7 @@ void InsetFig::Edit(BufferView * bv, int, int, unsigned int)
                fl_set_object_return(form->Width, FL_RETURN_ALWAYS);
                fl_set_object_return(form->Height, FL_RETURN_ALWAYS);
        }
-       RestoreForm();
+       restoreForm();
        if (form->Figure->visible) {
                fl_raise_form(form->Figure);
        } else {
@@ -1241,7 +1241,7 @@ void InsetFig::Edit(BufferView * bv, int, int, unsigned int)
 }
 
 
-Inset * InsetFig::Clone(Buffer const & buffer) const
+Inset * InsetFig::clone(Buffer const & buffer) const
 {
        InsetFig * tmp = new InsetFig(100, 100, buffer);
 
@@ -1284,12 +1284,12 @@ Inset * InsetFig::Clone(Buffer const & buffer) const
        tmp->subcaption = subcaption;
        tmp->changedfname = false;
        tmp->owner = owner;
-       tmp->Regenerate();
+       tmp->regenerate();
        return tmp;
 }
 
 
-Inset::Code InsetFig::LyxCode() const
+Inset::Code InsetFig::lyxCode() const
 {
        return Inset::GRAPHICS_CODE;
 }
@@ -1323,11 +1323,13 @@ string const stringify(InsetFig::HWTYPE hw, float f, string suffix)
 } // namespace anon
 
 
-void InsetFig::Regenerate() const
+void InsetFig::regenerate() const
 {
        string cmdbuf;
-       string resizeW, resizeH;
-       string rotate, recmd;
+       string resizeW;
+       string resizeH;
+       string rotate;
+       string recmd;
 
        if (fname.empty()) {
                cmd = "\\fbox{\\rule[-0.5in]{0pt}{1in}";
@@ -1380,11 +1382,13 @@ void InsetFig::Regenerate() const
 }
 
 
-void InsetFig::TempRegenerate()
+void InsetFig::tempRegenerate()
 {
        string cmdbuf;
-       string resizeW, resizeH;
-       string rotate, recmd;
+       string resizeW;
+       string resizeH;
+       string rotate;
+       string recmd;
        
        char const * tfname = fl_get_input(form->EpsFile);
        string tsubcap = fl_get_input(form->Subcaption);
@@ -1437,7 +1441,7 @@ void InsetFig::TempRegenerate()
 }
 
 
-void InsetFig::Recompute()
+void InsetFig::recompute()
 {
        if (!lyxrc.use_gui)
                return;
@@ -1445,7 +1449,7 @@ void InsetFig::Recompute()
        bool changed = changedfname;
        int newx, newy, nraw_x, nraw_y;
 
-       if (changed) GetPSSizes();
+       if (changed) getPSSizes();
 
        float sin_a = sin(angle / DEG2PI);  /* rotation; H. Zeller 021296 */
        float cos_a = cos(angle / DEG2PI);
@@ -1556,7 +1560,7 @@ void InsetFig::Recompute()
 }
 
 
-void InsetFig::GetPSSizes()
+void InsetFig::getPSSizes()
 {
        /* get %%BoundingBox: from postscript file */
        
@@ -1622,7 +1626,7 @@ void InsetFig::GetPSSizes()
 }
 
 
-void InsetFig::CallbackFig(long arg)
+void InsetFig::callbackFig(long arg)
 {
        bool regen = false;
        char const * p;
@@ -1725,12 +1729,12 @@ void InsetFig::CallbackFig(long arg)
                regen = true;           /* regenerate command */
                break;
        case 0:                         /* browse file */
-               BrowseFile();
+               browseFile();
                regen = true;
                break;
        case 1:                         /* preview */
                p = fl_get_input(form->EpsFile);
-               Preview(p);
+               preview(p);
                break;
        case 7:                         /* apply */
        case 8:                         /* ok (apply and close) */
@@ -1753,8 +1757,8 @@ void InsetFig::CallbackFig(long arg)
                        }
                        subcaption = fl_get_input(form->Subcaption);
        
-                       Regenerate();
-                       Recompute();
+                       regenerate();
+                       recompute();
                        /* now update inset */
                        if (lyxerr.debugging()) {
                                lyxerr << "Update: ["
@@ -1792,7 +1796,7 @@ void InsetFig::CallbackFig(long arg)
                break;
        }
 
-       if (regen) TempRegenerate();
+       if (regen) tempRegenerate();
 }
 
 
@@ -1870,7 +1874,7 @@ void EnableFigurePanel(FD_Figure * const form)
 }
 
 
-void InsetFig::RestoreForm()
+void InsetFig::restoreForm()
 {
        EnableFigurePanel(form);
 
@@ -1922,11 +1926,11 @@ void InsetFig::RestoreForm()
        if (current_view->buffer()->isReadonly()) 
                DisableFigurePanel(form);
 
-       TempRegenerate();
+       tempRegenerate();
 }
 
 
-void InsetFig::Preview(string const & p)
+void InsetFig::preview(string const & p)
 {
        string tfname = p;
        if (GetExtension(tfname).empty())
@@ -1938,7 +1942,7 @@ void InsetFig::Preview(string const & p)
 }
 
 
-void InsetFig::BrowseFile()
+void InsetFig::browseFile()
 {
        static string current_figure_path;
        static int once;
@@ -2017,7 +2021,7 @@ void GraphicsCB(FL_OBJECT * obj, long arg)
                                lyxerr << "Calling back figure "
                                       << (*it) << endl;
                        }
-                       (*it)->inset->CallbackFig(arg);
+                       (*it)->inset->callbackFig(arg);
                        return;
                }
 }
@@ -2033,6 +2037,6 @@ void HideFiguresPopups()
                                lyxerr << "Hiding figure " << (*it) << endl;
                        }
                        // hide and free the form
-                       (*it)->inset->CallbackFig(9);
+                       (*it)->inset->callbackFig(9);
                }
 }
index cd1c005264760146800e4c4bfc86ca5a4160c868..3deaf532dc9936de971de1d17b0748602bf68b49 100644 (file)
@@ -33,52 +33,55 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool free_space) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool free_space) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        /// Updates needed features for this inset.
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
 
        /// what appears in the minibuffer when opening
-       string const EditMessage() const;
+       string const editMessage() const;
        
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const;
+       EDITABLE editable() const;
        ///
-       bool Deletable() const;
+       bool deletable() const;
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       void CallbackFig(long arg);
+       void callbackFig(long arg);
        ///
-       void Preview(string const & p);
+       void preview(string const & p);
        /// browse for file
-       void BrowseFile();
+       void browseFile();
 
        /// form for user input
        FD_Figure * form;
        /// width and height in pixels on screen
-       int wid, hgh;
+       int wid;
+       int hgh;
        /// width and height in postscript units (1/72 inch)
-       int pswid, pshgh;
+       int pswid;
+       int pshgh;
        /// width of raw figure w/o rotation
        int raw_wid;
        /// heigt of raw figure w/o rotation
        int raw_hgh;
        /// x and y coordinate in ps units
-       int psx, psy;
+       int psx;
+       int psy;
 
        /// .eps file name
        string fname;
@@ -111,7 +114,8 @@ public:
        HWTYPE thtype;
 
        /// width and height
-       float xwid, xhgh;
+       float xwid;
+       float xhgh;
 
        /// rotation angle
        float angle;
@@ -141,15 +145,15 @@ private:
        ///
        Buffer const * owner;
        /// restore values on the form
-       void RestoreForm();
+       void restoreForm();
        /// recompute screen params
-       void Recompute();
+       void recompute();
        /// regenerate \includegraphics{} command
-       void Regenerate() const;
+       void regenerate() const;
        /// regenerate \inlcudegraphics{} command in temporary buffer
-       void TempRegenerate();
+       void tempRegenerate();
        /// get sizes from .eps file
-       void GetPSSizes();
+       void getPSSizes();
        /// Redraw connection.
        SigC::Connection r_;
 };
index 5fe964448777f7add2b73930487595da7c934f5b..23bdff53547bc688764c2de0e40ccf7024c08ca6 100644 (file)
@@ -28,45 +28,45 @@ using std::endl;
 
 // Insets default methods
 
-bool Inset::Deletable() const
+bool Inset::deletable() const
 {
        return true;
 }
 
 
-bool Inset::DirectWrite() const
+bool Inset::directWrite() const
 {
        return false;
 }
 
 
-Inset::EDITABLE Inset::Editable() const
+Inset::EDITABLE Inset::editable() const
 {
        return NOT_EDITABLE;
 }
 
 
-void Inset::Validate(LaTeXFeatures &) const
+void Inset::validate(LaTeXFeatures &) const
 {}
 
 
-bool Inset::AutoDelete() const
+bool Inset::autoDelete() const
 {
        return false;
 }
 
 
-void Inset::Edit(BufferView *, int, int, unsigned int)
+void Inset::edit(BufferView *, int, int, unsigned int)
 {}
 
 
-LyXFont const Inset::ConvertFont(LyXFont const & font) const
+LyXFont const Inset::convertFont(LyXFont const & font) const
 {
        return LyXFont(font);
 }
 
 
-string const Inset::EditMessage() const 
+string const Inset::editMessage() const 
 {
        return _("Opened inset");
 }
@@ -83,59 +83,59 @@ LyXText * Inset::getLyXText(BufferView const * bv, bool const) const
 
 // some stuff for inset locking
 
-void UpdatableInset::InsetButtonPress(BufferView *, int x, int y, int button)
+void UpdatableInset::insetButtonPress(BufferView *, int x, int y, int button)
 {
        lyxerr[Debug::INFO] << "Inset Button Press x=" << x
                       << ", y=" << y << ", button=" << button << endl;
 }
 
 
-void UpdatableInset::InsetButtonRelease(BufferView *, int x, int y, int button)
+void UpdatableInset::insetButtonRelease(BufferView *, int x, int y, int button)
 {
        lyxerr[Debug::INFO] << "Inset Button Release x=" << x
                       << ", y=" << y << ", button=" << button << endl;
 }
 
 
-void UpdatableInset::InsetKeyPress(XKeyEvent *)
+void UpdatableInset::insetKeyPress(XKeyEvent *)
 {
        lyxerr[Debug::INFO] << "Inset Keypress" << endl;
 }
 
 
-void UpdatableInset::InsetMotionNotify(BufferView *, int x, int y, int state)
+void UpdatableInset::insetMotionNotify(BufferView *, int x, int y, int state)
 {
        lyxerr[Debug::INFO] << "Inset Motion Notify x=" << x
                       << ", y=" << y << ", state=" << state << endl;
 }
 
 
-void UpdatableInset::InsetUnlock(BufferView *)
+void UpdatableInset::insetUnlock(BufferView *)
 {
        lyxerr[Debug::INFO] << "Inset Unlock" << endl;
 }
 
 
 // An updatable inset is highly editable by definition
-Inset::EDITABLE UpdatableInset::Editable() const
+Inset::EDITABLE UpdatableInset::editable() const
 {
        return HIGHLY_EDITABLE;
 }
 
 
-void UpdatableInset::ToggleInsetCursor(BufferView *)
+void UpdatableInset::toggleInsetCursor(BufferView *)
 {}
 
 
-void UpdatableInset::ShowInsetCursor(BufferView *, bool)
+void UpdatableInset::showInsetCursor(BufferView *, bool)
 {}
 
 
-void UpdatableInset::HideInsetCursor(BufferView *)
+void UpdatableInset::hideInsetCursor(BufferView *)
 {}
 
 
-void UpdatableInset::Edit(BufferView *, int, int, unsigned int)
+void UpdatableInset::edit(BufferView *, int, int, unsigned int)
 {}
 
 
@@ -150,7 +150,7 @@ void UpdatableInset::draw(BufferView *, LyXFont const &,
 }
 
 
-void UpdatableInset::SetFont(BufferView *, LyXFont const &, bool, bool )
+void UpdatableInset::setFont(BufferView *, LyXFont const &, bool, bool )
 {}
 
 
@@ -212,7 +212,7 @@ void UpdatableInset::scroll(BufferView * bv, int offset) const
 
 ///  An updatable inset could handle lyx editing commands
 UpdatableInset::RESULT
-UpdatableInset::LocalDispatch(BufferView * bv, 
+UpdatableInset::localDispatch(BufferView * bv, 
                              kb_action action, string const & arg) 
 {
        if (!arg.empty() && (action==LFUN_SCROLL_INSET)) {
index a332baecf7087166c22644b81e59959721b5ad95..9bc531b8c75fa7cabc166c6db3a723682251fdd2 100644 (file)
@@ -140,61 +140,61 @@ public:
        virtual void update(BufferView *, LyXFont const &, bool = false)
                {}
        ///
-       virtual LyXFont const ConvertFont(LyXFont const & font) const;
+       virtual LyXFont const convertFont(LyXFont const & font) const;
        /// what appears in the minibuffer when opening
-       virtual string const EditMessage() const;
+       virtual string const editMessage() const;
        ///
-       virtual void Edit(BufferView *, int x, int y, unsigned int button);
+       virtual void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       virtual EDITABLE Editable() const;
+       virtual EDITABLE editable() const;
        /// This is called when the user clicks inside an inset
-       virtual void InsetButtonPress(BufferView *, int, int, int) {}
+       virtual void insetButtonPress(BufferView *, int, int, int) {}
        /// This is called when the user releases the button inside an inset
-       virtual void InsetButtonRelease(BufferView *, int, int, int) {}
+       virtual void insetButtonRelease(BufferView *, int, int, int) {}
        /// This is caleld when the user moves the mouse inside an inset
-       virtual void InsetMotionNotify(BufferView *, int , int , int) {}
+       virtual void insetMotionNotify(BufferView *, int , int , int) {}
        ///
-       virtual bool IsTextInset() const { return false; }
+       virtual bool isTextInset() const { return false; }
        ///
        virtual bool doClearArea() const { return true; }
        ///
-       virtual bool AutoDelete() const;
+       virtual bool autoDelete() const;
        ///
-       virtual void Write(Buffer const *, std::ostream &) const = 0;
+       virtual void write(Buffer const *, std::ostream &) const = 0;
        ///
-       virtual void Read(Buffer const *, LyXLex & lex) = 0;
+       virtual void read(Buffer const *, LyXLex & lex) = 0;
        /** returns the number of rows (\n's) of generated tex code.
            fragile == true means, that the inset should take care about
            fragile commands by adding a \protect before.
            If the free_spc (freespacing) variable is set, then this inset
            is in a free-spacing paragraph.
        */
-       virtual int Latex(Buffer const *, std::ostream &, bool fragile,
+       virtual int latex(Buffer const *, std::ostream &, bool fragile,
                          bool free_spc) const = 0;
        ///
-       virtual int Ascii(Buffer const *,
+       virtual int ascii(Buffer const *,
                          std::ostream &, int linelen = 0) const = 0;
        ///
-       virtual int Linuxdoc(Buffer const *, std::ostream &) const = 0;
+       virtual int linuxdoc(Buffer const *, std::ostream &) const = 0;
        ///
-       virtual int DocBook(Buffer const *, std::ostream &) const = 0;
+       virtual int docBook(Buffer const *, std::ostream &) const = 0;
        /// Updates needed features for this inset.
-       virtual void Validate(LaTeXFeatures & features) const;
+       virtual void validate(LaTeXFeatures & features) const;
        ///
-       virtual bool Deletable() const;
+       virtual bool deletable() const;
        
        /// returns LyX code associated with the inset. Used for TOC, ...)
-       virtual Inset::Code LyxCode() const { return NO_CODE; }
+       virtual Inset::Code lyxCode() const { return NO_CODE; }
        
        virtual std::vector<string> const getLabelList() const {
                return std::vector<string>();
        }
 
        ///
-       virtual Inset * Clone(Buffer const &) const = 0;
+       virtual Inset * clone(Buffer const &) const = 0;
        
        /// returns true to override begin and end inset in file
-       virtual bool DirectWrite() const;
+       virtual bool directWrite() const;
 
        /// Returns true if the inset should be centered alone
        virtual bool display() const { return false; }
@@ -205,7 +205,7 @@ public:
        ///
        virtual bool needFullRow() const { return false; }
        ///
-       virtual bool InsertInsetAllowed(Inset *) const { return false; }
+       virtual bool insertInsetAllowed(Inset *) const { return false; }
        ///
        void setInsetName(string const & s) { name = s; }
        ///
@@ -265,7 +265,7 @@ private:
  *
  * During the lock, all button and keyboard events will be modified
  * and send to the inset through the following inset-features. Note that
- * Inset::InsetUnlock will be called from inside UnlockInset. It is meant
+ * Inset::insetUnlock will be called from inside UnlockInset. It is meant
  * to contain the code for restoring the menus and things like this.
  * 
  * If a inset wishes any redraw and/or update it just has to call
@@ -307,69 +307,69 @@ public:
        UpdatableInset() : cursor_visible_(false), block_drawing_(false) {}
 
        ///
-       virtual EDITABLE Editable() const;
+       virtual EDITABLE editable() const;
        
        /// may call ToggleLockedInsetCursor
-       virtual void ToggleInsetCursor(BufferView *);
+       virtual void toggleInsetCursor(BufferView *);
        ///
-       virtual void ShowInsetCursor(BufferView *, bool show = true);
+       virtual void showInsetCursor(BufferView *, bool show = true);
        ///
-       virtual void HideInsetCursor(BufferView *);
+       virtual void hideInsetCursor(BufferView *);
        ///
-       virtual void GetCursorPos(BufferView *, int &, int &) const {}
+       virtual void getCursorPos(BufferView *, int &, int &) const {}
        ///
-       virtual void InsetButtonPress(BufferView *, int x, int y, int button);
+       virtual void insetButtonPress(BufferView *, int x, int y, int button);
        ///
-       virtual void InsetButtonRelease(BufferView *,
+       virtual void insetButtonRelease(BufferView *,
                                        int x, int y, int button);
        ///
-       virtual void InsetKeyPress(XKeyEvent * ev);
+       virtual void insetKeyPress(XKeyEvent * ev);
        ///
-       virtual void InsetMotionNotify(BufferView *, int x, int y, int state);
+       virtual void insetMotionNotify(BufferView *, int x, int y, int state);
        ///
-       virtual void InsetUnlock(BufferView *);
+       virtual void insetUnlock(BufferView *);
        ///
-       virtual void Edit(BufferView *, int x, int y, unsigned int button);
+       virtual void edit(BufferView *, int x, int y, unsigned int button);
        ///
        virtual void draw(BufferView *, LyXFont const &,
                          int baseline, float & x, bool cleared) const;
        ///
-       virtual void SetFont(BufferView *, LyXFont const &,
+       virtual void setFont(BufferView *, LyXFont const &,
                          bool toggleall = false, bool selectall = false);
        ///
-       virtual bool InsertInset(BufferView *, Inset *) { return false; }
+       virtual bool insertInset(BufferView *, Inset *) { return false; }
        ///
-       virtual bool InsertInsetAllowed(Inset *) const { return true; }
+       virtual bool insertInsetAllowed(Inset *) const { return true; }
        ///
-       virtual UpdatableInset * GetLockingInset() { return this; }
+       virtual UpdatableInset * getLockingInset() { return this; }
        ///
-       virtual UpdatableInset * GetFirstLockingInsetOfType(Inset::Code c)
-               { return (c == LyxCode()) ? this : 0; }
+       virtual UpdatableInset * getFirstLockingInsetOfType(Inset::Code c)
+               { return (c == lyxCode()) ? this : 0; }
        ///
-       virtual unsigned int InsetInInsetY() { return 0; }
+       virtual unsigned int insetInInsetY() { return 0; }
        ///
-       virtual bool UpdateInsetInInset(BufferView *, Inset *)
+       virtual bool updateInsetInInset(BufferView *, Inset *)
                { return false; }
        ///
-       virtual bool LockInsetInInset(BufferView *, UpdatableInset *)
+       virtual bool lockInsetInInset(BufferView *, UpdatableInset *)
                { return false; }
        ///
-       virtual bool UnlockInsetInInset(BufferView *, UpdatableInset *,
+       virtual bool unlockInsetInInset(BufferView *, UpdatableInset *,
                                        bool /*lr*/ = false)
                { return false; }
        ///  An updatable inset could handle lyx editing commands
-       virtual RESULT LocalDispatch(BufferView *, kb_action, string const &);
+       virtual RESULT localDispatch(BufferView *, kb_action, string const &);
        ///
        bool isCursorVisible() const { return cursor_visible_; }
        ///
        virtual int getMaxWidth(BufferView * bv, UpdatableInset const *) const;
        ///
-       int scroll(bool recursive=true) const {
+       int scroll(bool recursive = true) const {
                // We need this method to not clobber the real method in Inset
                return Inset::scroll(recursive);
        }
        ///
-       virtual bool ShowInsetDialog(BufferView *) const { return false; }
+       virtual bool showInsetDialog(BufferView *) const { return false; }
        ///
        virtual void nodraw(bool b) {
                block_drawing_ = b;
index 4823ecf04cd3871f9abd616e6abda97ed21961da..13c5786cc7a14aa5618e5d640b643a51c586f579 100644 (file)
@@ -47,7 +47,7 @@ InsetBibKey::~InsetBibKey()
 }
 
 
-Inset * InsetBibKey::Clone(Buffer const &) const
+Inset * InsetBibKey::clone(Buffer const &) const
 {
        InsetBibKey * b = new InsetBibKey(params());
        b->setCounter(counter);
@@ -65,7 +65,7 @@ void InsetBibKey::setCounter(int c)
 // as a LyX 2.x command, and lyxlex is not enough smart to understand
 // real LaTeX commands. Yes, that could be fixed, but would be a waste 
 // of time cause LyX3 won't use lyxlex anyway.  (ale)
-void InsetBibKey::Write(Buffer const *, ostream & os) const
+void InsetBibKey::write(Buffer const *, ostream & os) const
 {
        os << "\\bibitem ";
        if (! getOptions().empty()) {
@@ -79,7 +79,7 @@ void InsetBibKey::Write(Buffer const *, ostream & os) const
 
 // This is necessary here because this is written without begin_inset
 // This should be changed!!! (Jug)
-void InsetBibKey::Read(Buffer const *, LyXLex & lex)
+void InsetBibKey::read(Buffer const *, LyXLex & lex)
 {    
        string token;
 
@@ -108,7 +108,7 @@ string const InsetBibKey::getScreenLabel() const
 }
 
 
-void InsetBibKey::Edit(BufferView * bv, int, int, unsigned int)
+void InsetBibKey::edit(BufferView * bv, int, int, unsigned int)
 { 
        bv->owner()->getDialogs()->showBibitem(this);
 }
@@ -130,7 +130,7 @@ string const InsetBibtex::getScreenLabel() const
 }
 
 
-int InsetBibtex::Latex(Buffer const * buffer, ostream & os,
+int InsetBibtex::latex(Buffer const * buffer, ostream & os,
                       bool /*fragile*/, bool/*fs*/) const
 {
        // If we generate in a temp dir, we might need to give an
@@ -212,7 +212,7 @@ vector<pair<string, string> > const InsetBibtex::getKeys(Buffer const * buffer)
 }
 
 
-void InsetBibtex::Edit(BufferView * bv, int, int, unsigned int)
+void InsetBibtex::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showBibtex(this);
 }
index 09dd296431c2fd5a12a31c3b26022934ab9712fa..e5d5c9d56201fbe8a4bd6421b1c8d8510d329c96 100644 (file)
@@ -33,23 +33,23 @@ public:
        ///
        ~InsetBibKey();
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        /** Currently \bibitem is used as a LyX2.x command,
            so we need this method.
        */
-        void Write(Buffer const *, std::ostream &) const;
+        void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
        virtual string const getScreenLabel() const;
         ///
-       void Edit(BufferView *, int x, int y, unsigned int button);
+       void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       EDITABLE Editable() const {
+       EDITABLE editable() const {
                return IS_EDITABLE;
        }
        /// A user can't neither insert nor delete this inset
-       bool Deletable() const {
+       bool deletable() const {
                return false;
        }
         ///
@@ -83,19 +83,19 @@ public:
        ///
        ~InsetBibtex();
        ///
-       Inset * Clone(Buffer const &) const {
+       Inset * clone(Buffer const &) const {
                return new InsetBibtex(params());
        }
        ///
        string const getScreenLabel() const;
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::BIBTEX_CODE; }
+       Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
        ///
-       void Edit(BufferView *, int x, int y, unsigned int button);
+       void edit(BufferView *, int x, int y, unsigned int button);
        /// 
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool freespace) const;
        ///
        std::vector<std::pair<string,string> > const getKeys(Buffer const *) const;
index 7787c63483ef401858e298c5b19793d569e968a5..8b0d3d6d5f26fc095397fc9be16c0e5843e893d3 100644 (file)
@@ -37,7 +37,7 @@ int InsetButton::ascent(BufferView * bv, LyXFont const &) const
        int descent;
         string const s = getScreenLabel();
        
-        if (Editable()) {
+        if (editable()) {
                bv->painter().buttonText(0, 0, s, font,
                                         false, width, ascent, descent);
        } else {
@@ -61,7 +61,7 @@ int InsetButton::descent(BufferView * bv, LyXFont const &) const
        int descent;
         string const s = getScreenLabel();
        
-        if (Editable()) {
+        if (editable()) {
                bv->painter().buttonText(0, 0, s, font,
                                         false, width, ascent, descent);
        } else {
@@ -85,7 +85,7 @@ int InsetButton::width(BufferView * bv, LyXFont const &) const
        int descent;
         string const s = getScreenLabel();
        
-        if (Editable()) {
+        if (editable()) {
                bv->painter().buttonText(0, 0, s, font,
                                         false, width, ascent, descent);
        } else {
@@ -110,7 +110,7 @@ void InsetButton::draw(BufferView * bv, LyXFont const &,
        int width;
        string const s = getScreenLabel();
 
-       if (Editable()) {
+       if (editable()) {
                pain.buttonText(int(x) + 2, baseline, s, font, true, width);
        } else {
                pain.rectText(int(x) + 2, baseline, s, font,
index 02af2b6714643087b8407902e8d9a336862c389f..17a5197c2c46a0d083b6796221b7900cdcced750 100644 (file)
@@ -29,21 +29,21 @@ using std::endl;
 InsetCaption::InsetCaption()
        : InsetText()
 {
-       SetAutoBreakRows(true);
-       SetDrawFrame(0, InsetText::LOCKED);
-       SetFrameColor(0, LColor::captionframe);
+       setAutoBreakRows(true);
+       setDrawFrame(0, InsetText::LOCKED);
+       setFrameColor(0, LColor::captionframe);
 }
 
 
-void InsetCaption::Write(Buffer const * buf, ostream & os) const
+void InsetCaption::write(Buffer const * buf, ostream & os) const
 {
        os << "Caption\n";
-       WriteParagraphData(buf, os);
+       writeParagraphData(buf, os);
 }
 
 
 
-void InsetCaption::Read(Buffer const * buf, LyXLex & lex)
+void InsetCaption::read(Buffer const * buf, LyXLex & lex)
 {
 #if 0
        // We will enably this check again when the compability
@@ -54,11 +54,11 @@ void InsetCaption::Read(Buffer const * buf, LyXLex & lex)
                       << endl;
        }
 #endif
-       InsetText::Read(buf, lex);
+       InsetText::read(buf, lex);
 }
 
 
-string const InsetCaption::EditMessage() const 
+string const InsetCaption::editMessage() const 
 {
        return _("Opened Caption Inset");
 }
@@ -96,7 +96,7 @@ void InsetCaption::draw(BufferView * bv, LyXFont const & f,
 }
 
 
-int InsetCaption::Latex(Buffer const * buf, ostream & os,
+int InsetCaption::latex(Buffer const * buf, ostream & os,
                        bool fragile, bool free_spc) const
 {
        // This is a bit too simplistic to take advantage of
@@ -105,13 +105,13 @@ int InsetCaption::Latex(Buffer const * buf, ostream & os,
        // \caption{...}, later we will make it take advantage
        // of the one of the caption packages. (Lgb)
        ostringstream ost;
-       int const l = InsetText::Latex(buf, ost, fragile, free_spc);
+       int const l = InsetText::latex(buf, ost, fragile, free_spc);
        os << "\\caption{" << ost.str() << "}\n";
        return l + 1;
 }
 
 
-int InsetCaption::Ascii(Buffer const * /*buf*/,
+int InsetCaption::ascii(Buffer const * /*buf*/,
                        ostream & /*os*/, int /*linelen*/) const
 {
 #ifdef WITH_WARNINGS
@@ -121,7 +121,7 @@ int InsetCaption::Ascii(Buffer const * /*buf*/,
 }
 
 
-int InsetCaption::DocBook(Buffer const * /*buf*/, ostream & /*os*/) const
+int InsetCaption::docBook(Buffer const * /*buf*/, ostream & /*os*/) const
 {
 #ifdef WITH_WARNINGS
 #warning Implement me!
index 01f296911940e001f2f223a3d87ec5c9eeb200d4..986bde07f2de17cf12816b662b2c6d86fd8aacbe 100644 (file)
@@ -26,9 +26,9 @@ public:
        ///
        InsetCaption();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const * buf, LyXLex & lex);
        ///
        virtual
        bool display() const;
@@ -37,24 +37,24 @@ public:
        bool needFullRow() const;
        ///
        virtual
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
        virtual
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
        virtual
        void draw(BufferView * bv, LyXFont const & f,
                          int baseline, float & x, bool cleared) const;
        ///
        virtual
-       int Latex(Buffer const * buf, std::ostream & os,
+       int latex(Buffer const * buf, std::ostream & os,
                          bool fragile, bool free_spc) const;
        ///
        virtual
-       int Ascii(Buffer const * buf, std::ostream & os, int linelen) const;
+       int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
        ///
        virtual
-       int DocBook(Buffer const * buf, std::ostream & os) const;
+       int docBook(Buffer const * buf, std::ostream & os) const;
 protected:
 private:
 };
@@ -75,7 +75,7 @@ bool InsetCaption::needFullRow() const
 
 
 inline
-Inset::Code InsetCaption::LyxCode() const 
+Inset::Code InsetCaption::lyxCode() const 
 {
        return CAPTION_CODE;
 }
index e138f1b19a202f8e3764a1471e41329e14b7ca81..321141a4b6989da29c8be030cb9eb5ee8056d8e6 100644 (file)
@@ -56,13 +56,13 @@ string const InsetCitation::getScreenLabel() const
 }
 
 
-void InsetCitation::Edit(BufferView * bv, int, int, unsigned int)
+void InsetCitation::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showCitation(this);
 }
 
 
-int InsetCitation::Ascii(Buffer const *, std::ostream & os, int) const
+int InsetCitation::ascii(Buffer const *, std::ostream & os, int) const
 {
         os << "[" << getContents() << "]";
         return 0;
index b8ec6f347faa3b47e0ffa5a6efab1b9cff05fd99..9c5c8671b5eef7cfc434ad9d4dbeecf3441d3dfa 100644 (file)
@@ -24,19 +24,19 @@ public:
        ///
        InsetCitation(InsetCommandParams const &);
        ///
-       Inset * Clone(Buffer const &) const {
+       Inset * clone(Buffer const &) const {
                return new InsetCitation(params());
        }
        ///
        string const getScreenLabel() const;
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::CITE_CODE; }
+       Inset::Code lyxCode() const { return Inset::CITE_CODE; }
         ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
 };
 
 #endif // INSET_CITE_H
index 66abb443263459572c6b9928f7e489cbe15c1e8b..9bd46db48a40e72f212d8005dde203f70056d66e 100644 (file)
@@ -39,9 +39,9 @@ InsetCollapsable::InsetCollapsable()
        collapsed = false;
        label = "Label";
        autocollapse = true;
-       inset.SetAutoBreakRows(true);
-       inset.SetDrawFrame(0, InsetText::ALWAYS);
-       inset.SetFrameColor(0, LColor::collapsableframe);
+       inset.setAutoBreakRows(true);
+       inset.setDrawFrame(0, InsetText::ALWAYS);
+       inset.setFrameColor(0, LColor::collapsableframe);
        button_length = button_top_y = button_bottom_y = 0;
        setInsetName("Collapsable");
        widthCollapsed = oldWidth = 0;
@@ -49,26 +49,26 @@ InsetCollapsable::InsetCollapsable()
 }
 
 
-bool InsetCollapsable::InsertInset(BufferView * bv, Inset * in)
+bool InsetCollapsable::insertInset(BufferView * bv, Inset * in)
 {
-       if (!InsertInsetAllowed(in)) {
+       if (!insertInsetAllowed(in)) {
                lyxerr << "InsetCollapsable::InsertInset: "
                        "Unable to insert inset." << endl;
                return false;
        }
-       return inset.InsertInset(bv, in);
+       return inset.insertInset(bv, in);
 }
 
 
-void InsetCollapsable::Write(Buffer const * buf, ostream & os) const
+void InsetCollapsable::write(Buffer const * buf, ostream & os) const
 {
        os << "collapsed " << tostr(collapsed) << "\n";
-       inset.WriteParagraphData(buf, os);
+       inset.writeParagraphData(buf, os);
 }
 
 
 
-void InsetCollapsable::Read(Buffer const * buf, LyXLex & lex)
+void InsetCollapsable::read(Buffer const * buf, LyXLex & lex)
 {
        if (lex.IsOK()) {
                lex.next();
@@ -81,7 +81,7 @@ void InsetCollapsable::Read(Buffer const * buf, LyXLex & lex)
                               << endl;
                }
        }
-       inset.Read(buf, lex);
+       inset.read(buf, lex);
 }
 
 
@@ -191,7 +191,7 @@ void InsetCollapsable::draw(BufferView * bv, LyXFont const & f,
 #if 1
                // we don't need anymore to clear here we just have to tell
                // the underlying LyXText that it should do the RowClear!
-               inset.SetUpdateStatus(bv, InsetText::FULL);
+               inset.setUpdateStatus(bv, InsetText::FULL);
                bv->text->status = LyXText::CHANGED_IN_DRAW;
                return;
 #else
@@ -224,26 +224,26 @@ void InsetCollapsable::draw(BufferView * bv, LyXFont const & f,
 }
 
 
-void InsetCollapsable::Edit(BufferView * bv, int xp, int yp,
+void InsetCollapsable::edit(BufferView * bv, int xp, int yp,
                            unsigned int button)
 {
-       UpdatableInset::Edit(bv, xp, yp, button);
+       UpdatableInset::edit(bv, xp, yp, button);
 
        if (collapsed && autocollapse) {
                collapsed = false;
                if (!bv->lockInset(this))
                        return;
                bv->updateInset(this, false);
-               inset.Edit(bv, 0, 0, button);
+               inset.edit(bv, 0, 0, button);
        } else if (!collapsed) {
                if (!bv->lockInset(this))
                        return;
-               inset.Edit(bv, xp, yp + (top_baseline - inset.y()), button);
+               inset.edit(bv, xp, yp + (top_baseline - inset.y()), button);
        }
 }
 
 
-Inset::EDITABLE InsetCollapsable::Editable() const
+Inset::EDITABLE InsetCollapsable::editable() const
 {
        if (collapsed)
                return IS_EDITABLE;
@@ -251,36 +251,36 @@ Inset::EDITABLE InsetCollapsable::Editable() const
 }
 
 
-void InsetCollapsable::InsetUnlock(BufferView * bv)
+void InsetCollapsable::insetUnlock(BufferView * bv)
 {
        if (autocollapse) {
                collapsed = true;
        }
-       inset.InsetUnlock(bv);
+       inset.insetUnlock(bv);
        if (scroll())
                scroll(bv, 0.0F);
        bv->updateInset(this, false);
 }
 
 
-void InsetCollapsable::InsetButtonPress(BufferView * bv, int x, int y,
+void InsetCollapsable::insetButtonPress(BufferView * bv, int x, int y,
                                        int button)
 {
        if (!collapsed && (y > button_bottom_y)) {
-               inset.InsetButtonPress(bv, x, y + (top_baseline - inset.y()),
+               inset.insetButtonPress(bv, x, y + (top_baseline - inset.y()),
                                       button);
        }
 }
 
 
-void InsetCollapsable::InsetButtonRelease(BufferView * bv,
+void InsetCollapsable::insetButtonRelease(BufferView * bv,
                                          int x, int y, int button)
 {
        if ((x >= 0)  && (x < button_length) &&
            (y >= button_top_y) &&  (y <= button_bottom_y)) {
                if (collapsed) {
                        collapsed = false;
-                       inset.InsetButtonRelease(bv, 0, 0, button);
+                       inset.insetButtonRelease(bv, 0, 0, button);
                        bv->updateInset(this, false);
                } else {
                        collapsed = true;
@@ -288,32 +288,32 @@ void InsetCollapsable::InsetButtonRelease(BufferView * bv,
                        bv->updateInset(this, false);
                }
        } else if (!collapsed && (y > button_top_y)) {
-               inset.InsetButtonRelease(bv, x, y + (top_baseline-inset.y()),
+               inset.insetButtonRelease(bv, x, y + (top_baseline-inset.y()),
                                         button);
        }
 }
 
 
-void InsetCollapsable::InsetMotionNotify(BufferView * bv,
+void InsetCollapsable::insetMotionNotify(BufferView * bv,
                                         int x, int y, int state)
 {
        if (x > button_bottom_y) {
-               inset.InsetMotionNotify(bv, x, y + (top_baseline - inset.y()),
+               inset.insetMotionNotify(bv, x, y + (top_baseline - inset.y()),
                                        state);
        }
 }
 
 
-void InsetCollapsable::InsetKeyPress(XKeyEvent * xke)
+void InsetCollapsable::insetKeyPress(XKeyEvent * xke)
 {
-       inset.InsetKeyPress(xke);
+       inset.insetKeyPress(xke);
 }
 
 
-int InsetCollapsable::Latex(Buffer const * buf, ostream & os,
+int InsetCollapsable::latex(Buffer const * buf, ostream & os,
                            bool fragile, bool free_spc) const
 {
-       return inset.Latex(buf, os, fragile, free_spc);
+       return inset.latex(buf, os, fragile, free_spc);
 }
 
 
@@ -364,88 +364,88 @@ void InsetCollapsable::update(BufferView * bv, LyXFont const & font,
 
 
 UpdatableInset::RESULT
-InsetCollapsable::LocalDispatch(BufferView * bv, kb_action action,
+InsetCollapsable::localDispatch(BufferView * bv, kb_action action,
                                string const & arg)
 {
-       UpdatableInset::RESULT result = inset.LocalDispatch(bv, action, arg);
+       UpdatableInset::RESULT result = inset.localDispatch(bv, action, arg);
        if (result == FINISHED)
                bv->unlockInset(this);
        return result;
 }
 
 
-bool InsetCollapsable::LockInsetInInset(BufferView * bv, UpdatableInset * in)
+bool InsetCollapsable::lockInsetInInset(BufferView * bv, UpdatableInset * in)
 {
        if (&inset == in)
                return true;
-       return inset.LockInsetInInset(bv, in);
+       return inset.lockInsetInInset(bv, in);
 }
 
 
-bool InsetCollapsable::UnlockInsetInInset(BufferView * bv, UpdatableInset * in,
+bool InsetCollapsable::unlockInsetInInset(BufferView * bv, UpdatableInset * in,
                                          bool lr)
 {
        if (&inset == in) {
                bv->unlockInset(this);
                return true;
        }
-       return inset.UnlockInsetInInset(bv, in, lr);
+       return inset.unlockInsetInInset(bv, in, lr);
 }
 
 
-bool InsetCollapsable::UpdateInsetInInset(BufferView * bv, Inset *in)
+bool InsetCollapsable::updateInsetInInset(BufferView * bv, Inset *in)
 {
        if (&inset == in)
                return true;
-       return inset.UpdateInsetInInset(bv, in);
+       return inset.updateInsetInInset(bv, in);
 }
 
 
-unsigned int InsetCollapsable::InsetInInsetY()
+unsigned int InsetCollapsable::insetInInsetY()
 {
-       return inset.InsetInInsetY() - (top_baseline - inset.y());
+       return inset.insetInInsetY() - (top_baseline - inset.y());
 }
 
 
-void InsetCollapsable::Validate(LaTeXFeatures & features) const
+void InsetCollapsable::validate(LaTeXFeatures & features) const
 {
-       inset.Validate(features);
+       inset.validate(features);
 }
 
 
-void InsetCollapsable::GetCursorPos(BufferView * bv, int & x, int & y) const
+void InsetCollapsable::getCursorPos(BufferView * bv, int & x, int & y) const
 {
-       inset.GetCursorPos(bv, x , y);
+       inset.getCursorPos(bv, x , y);
 }
 
 
-void InsetCollapsable::ToggleInsetCursor(BufferView * bv)
+void InsetCollapsable::toggleInsetCursor(BufferView * bv)
 {
-       inset.ToggleInsetCursor(bv);
+       inset.toggleInsetCursor(bv);
 }
 
 
-UpdatableInset * InsetCollapsable::GetLockingInset()
+UpdatableInset * InsetCollapsable::getLockingInset()
 {
-       UpdatableInset * in = inset.GetLockingInset();
+       UpdatableInset * in = inset.getLockingInset();
        if (&inset == in)
                return this;
        return in;
 }
 
 
-UpdatableInset * InsetCollapsable::GetFirstLockingInsetOfType(Inset::Code c)
+UpdatableInset * InsetCollapsable::getFirstLockingInsetOfType(Inset::Code c)
 {
-       if (c == LyxCode())
+       if (c == lyxCode())
                return this;
-       return inset.GetFirstLockingInsetOfType(c);
+       return inset.getFirstLockingInsetOfType(c);
 }
 
 
-void InsetCollapsable::SetFont(BufferView * bv, LyXFont const & font,
+void InsetCollapsable::setFont(BufferView * bv, LyXFont const & font,
                                bool toggleall, bool selectall)
 {
-       inset.SetFont(bv, font, toggleall, selectall);
+       inset.setFont(bv, font, toggleall, selectall);
 }
 
 
index a645a0cdbc10791104b9a16d9673bd4bfda15cb5..1bf9e5a57a34fb48bf17d7819efdb1334f979746 100644 (file)
@@ -42,9 +42,9 @@ public:
        ///
        InsetCollapsable();
        ///
-       void Read(Buffer const *, LyXLex &);
+       void read(Buffer const *, LyXLex &);
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
@@ -56,60 +56,60 @@ public:
        ///
        void update(BufferView *, LyXFont const &, bool =false); 
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const;
+       EDITABLE editable() const;
        ///
-       bool InsertInset(BufferView *, Inset * inset);
+       bool insertInset(BufferView *, Inset * inset);
        ///
-       bool IsTextInset() const { return true; }
+       bool isTextInset() const { return true; }
        ///
        bool doClearArea() const;
        ///
-       void InsetUnlock(BufferView *);
+       void insetUnlock(BufferView *);
        ///
        bool needFullRow() const { return !collapsed; }
        ///
-       bool LockInsetInInset(BufferView *, UpdatableInset *);
+       bool lockInsetInInset(BufferView *, UpdatableInset *);
        ///
-       bool UnlockInsetInInset(BufferView *, UpdatableInset *,
+       bool unlockInsetInInset(BufferView *, UpdatableInset *,
                                bool lr = false);
        ///
-       bool UpdateInsetInInset(BufferView *, Inset *);
+       bool updateInsetInInset(BufferView *, Inset *);
        ///
-       unsigned int InsetInInsetY();
+       unsigned int insetInInsetY();
        ///
-       void InsetButtonRelease(BufferView *, int, int, int);
+       void insetButtonRelease(BufferView *, int, int, int);
        ///
-       void InsetButtonPress(BufferView *, int, int, int);
+       void insetButtonPress(BufferView *, int, int, int);
        ///
-       void InsetMotionNotify(BufferView *, int, int, int);
+       void insetMotionNotify(BufferView *, int, int, int);
        ///
-       void InsetKeyPress(XKeyEvent *);
+       void insetKeyPress(XKeyEvent *);
        ///
-       UpdatableInset::RESULT LocalDispatch(BufferView *, kb_action,
+       UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
                                             string const &);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int) const { return 0; }
+       int ascii(Buffer const *, std::ostream &, int) const { return 0; }
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int DocBook(Buffer const *, std::ostream &) const { return 0; }
+       int docBook(Buffer const *, std::ostream &) const { return 0; }
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       void GetCursorPos(BufferView *, int & x, int & y) const;
+       void getCursorPos(BufferView *, int & x, int & y) const;
        ///
-       void ToggleInsetCursor(BufferView *);
+       void toggleInsetCursor(BufferView *);
        ///
-       UpdatableInset * GetLockingInset();
+       UpdatableInset * getLockingInset();
        ///
-       UpdatableInset * GetFirstLockingInsetOfType(Inset::Code);
+       UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
        ///
-       void SetFont(BufferView *, LyXFont const &, bool toggleall = false,
+       void setFont(BufferView *, LyXFont const &, bool toggleall = false,
                  bool selectall = false);
        ///
        void setLabel(string const & l) { label = l; }
index ce5a2b4ea84401016a3580245435454ea87e8ec3..3a05f4555660121b6d3b3264ad0ac18981947901 100644 (file)
@@ -140,7 +140,7 @@ void InsetCommandParams::scanCommand(string const & cmd)
 
 
 // This function will not be necessary when lyx3
-void InsetCommandParams::Read(LyXLex & lex)
+void InsetCommandParams::read(LyXLex & lex)
 {    
        string token;
 
@@ -162,7 +162,7 @@ void InsetCommandParams::Read(LyXLex & lex)
 }
 
 
-void InsetCommandParams::Write(ostream & os) const
+void InsetCommandParams::write(ostream & os) const
 {
        os << "LatexCommand " << getCommand() << "\n";
 }
@@ -191,7 +191,7 @@ void InsetCommand::setParams(InsetCommandParams const & p )
 }
 
 
-int InsetCommand::Latex(Buffer const *, ostream & os,
+int InsetCommand::latex(Buffer const *, ostream & os,
                        bool /*fragile*/, bool/*fs*/) const
 {
        os << getCommand();
@@ -199,19 +199,19 @@ int InsetCommand::Latex(Buffer const *, ostream & os,
 }
 
 
-int InsetCommand::Ascii(Buffer const *, ostream &, int) const
+int InsetCommand::ascii(Buffer const *, ostream &, int) const
 {
        return 0;
 }
 
 
-int InsetCommand::Linuxdoc(Buffer const *, ostream &) const
+int InsetCommand::linuxdoc(Buffer const *, ostream &) const
 {
        return 0;
 }
 
 
-int InsetCommand::DocBook(Buffer const *, ostream &) const
+int InsetCommand::docBook(Buffer const *, ostream &) const
 {
        return 0;
 }
index dfe0b21f295ce851e01ba307ac4a0410a1578216..7095f9c7832370f63552f109a6dc1f41c6a2e37c 100644 (file)
@@ -40,11 +40,11 @@ public:
        ///
        bool operator!=(InsetCommandParams const &) const;
        ///
-       void Read(LyXLex &);
+       void read(LyXLex &);
        /// Parse the command
        void scanCommand(string const &);
        ///
-       void Write(std::ostream &) const;
+       void write(std::ostream &) const;
        /// Build the complete LaTeX command
        string const getCommand() const;
        ///
@@ -82,24 +82,24 @@ public:
        ///
        virtual ~InsetCommand() { hideDialog(); }
        ///
-       void Write(Buffer const *, std::ostream & os) const
-               { p_.Write( os ); }
+       void write(Buffer const *, std::ostream & os) const
+               { p_.write( os ); }
        ///
-       virtual void Read(Buffer const *, LyXLex & lex)
-               { p_.Read( lex ); }
+       virtual void read(Buffer const *, LyXLex & lex)
+               { p_.read( lex ); }
        /// Can remove one InsetBibKey is modified
        void scanCommand(string const & c) { p_.scanCommand( c ); };
        /// 
-       virtual int Latex(Buffer const *, std::ostream &,
+       virtual int latex(Buffer const *, std::ostream &,
                          bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       virtual int Linuxdoc(Buffer const *, std::ostream &) const;
+       virtual int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       virtual int DocBook(Buffer const *, std::ostream &) const;
+       virtual int docBook(Buffer const *, std::ostream &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::NO_CODE; }
+       Inset::Code lyxCode() const { return Inset::NO_CODE; }
        
        /** Get the label that appears at screen.
          
index 9fa6b281d02cfd1c41cded00857b1757c7523abf..43ceb178424de95ba7e96c6fa585ac167c87643f 100644 (file)
@@ -79,13 +79,13 @@ void InsetError::draw(BufferView * bv, LyXFont const & font,
 }
 
 
-string const InsetError::EditMessage() const 
+string const InsetError::editMessage() const 
 {
        return _("Opened error");
 }
 
 
-void InsetError::Edit(BufferView * bv, int, int, unsigned int)
+void InsetError::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showError( this );
 }
index 07212d0c2e975bb21d6d8c496fcf8e2f9faba8fe..95cd3ee1cb74f7369c3306e3392474625cbf9425 100644 (file)
@@ -41,31 +41,31 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const {}
+       void write(Buffer const *, std::ostream &) const {}
        ///
-       void Read(Buffer const *, LyXLex &) {}
+       void read(Buffer const *, LyXLex &) {}
        ///
-       int Latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
+       int latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
        ///
-       int Ascii(Buffer const *, std::ostream &, int) const { return 0; }
+       int ascii(Buffer const *, std::ostream &, int) const { return 0; }
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int DocBook(Buffer const *, std::ostream &) const { return 0; }
+       int docBook(Buffer const *, std::ostream &) const { return 0; }
        ///
-       bool AutoDelete() const { return true; }
+       bool autoDelete() const { return true; }
        /// what appears in the minibuffer when opening
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset * Clone(Buffer const &) const { return new InsetError(contents); }
+       Inset * clone(Buffer const &) const { return new InsetError(contents); }
        ///
-       Inset::Code LyxCode() const { return Inset::ERROR_CODE; }
+       Inset::Code lyxCode() const { return Inset::ERROR_CODE; }
        /// We don't want "begin" and "end inset" in lyx-file
-       bool DirectWrite() const { return true; };
+       bool directWrite() const { return true; };
        ///
        string const & getContents() const { return contents; }
        ///
index 8160e7416beac786cd3f0b76d3fac5f67b9a8608..5aefa67161080c18ad92b3a5d7ec7456e2088776 100644 (file)
@@ -39,14 +39,14 @@ InsetERT::InsetERT() : InsetCollapsable()
 }
 
 
-void InsetERT::Write(Buffer const * buf, ostream & os) const 
+void InsetERT::write(Buffer const * buf, ostream & os) const 
 {
        os << getInsetName() << "\n";
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
 
 
-Inset * InsetERT::Clone(Buffer const &) const
+Inset * InsetERT::clone(Buffer const &) const
 {
        InsetERT * result = new InsetERT;
        result->inset.init(&inset);
@@ -56,19 +56,19 @@ Inset * InsetERT::Clone(Buffer const &) const
 }
 
 
-string const InsetERT::EditMessage() const 
+string const InsetERT::editMessage() const 
 {
        return _("Opened ERT Inset");
 }
 
 
-bool InsetERT::InsertInset(BufferView *, Inset *)
+bool InsetERT::insertInset(BufferView *, Inset *)
 {
        return false;
 }
 
 
-void InsetERT::SetFont(BufferView *, LyXFont const &, bool, bool selectall)
+void InsetERT::setFont(BufferView *, LyXFont const &, bool, bool selectall)
 {
        // if selectall is activated then the fontchange was an outside general
        // fontchange and this messages is not needed
@@ -79,9 +79,9 @@ void InsetERT::SetFont(BufferView *, LyXFont const &, bool, bool selectall)
 }
 
 
-void InsetERT::Edit(BufferView * bv, int x, int y, unsigned int button)
+void InsetERT::edit(BufferView * bv, int x, int y, unsigned int button)
 {
-       InsetCollapsable::Edit(bv, x, y, button);
+       InsetCollapsable::edit(bv, x, y, button);
 #ifndef NO_LATEX
        LyXFont font(LyXFont::ALL_SANE);
        font.setLatex (LyXFont::ON);
@@ -89,7 +89,7 @@ void InsetERT::Edit(BufferView * bv, int x, int y, unsigned int button)
 }
 
 
-int InsetERT::Latex(Buffer const *, std::ostream & os, bool /*fragile*/,
+int InsetERT::latex(Buffer const *, std::ostream & os, bool /*fragile*/,
                    bool /*free_spc*/) const
 {
        Paragraph::size_type siz = inset.par->size();
@@ -100,20 +100,20 @@ int InsetERT::Latex(Buffer const *, std::ostream & os, bool /*fragile*/,
 }
 
 
-int InsetERT::Ascii(Buffer const *,
+int InsetERT::ascii(Buffer const *,
                    std::ostream &, int /*linelen*/) const 
 {
        return 0;
 }
 
 
-int InsetERT::Linuxdoc(Buffer const *, std::ostream &) const
+int InsetERT::linuxdoc(Buffer const *, std::ostream &) const
 {
        return 0;
 }
 
 
-int InsetERT::DocBook(Buffer const *, std::ostream &) const
+int InsetERT::docBook(Buffer const *, std::ostream &) const
 {
        return 0;
 }
index d653b69316fa76e8a05da6bca33a41a2fc32144b..4d6c550af8af3d4d5d66f62cee2853bccb7d856e 100644 (file)
@@ -30,28 +30,28 @@ public:
        ///
        InsetERT();
        ///
-       virtual void Write(Buffer const * buf, std::ostream & os) const;
+       virtual void write(Buffer const * buf, std::ostream & os) const;
        ///
-       virtual Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       virtual string const EditMessage() const;
+       virtual string const editMessage() const;
        ///
-       virtual bool InsertInset(BufferView *, Inset *);
+       virtual bool insertInset(BufferView *, Inset *);
        ///
-       virtual void SetFont(BufferView *, LyXFont const &,
+       virtual void setFont(BufferView *, LyXFont const &,
                             bool toggleall = false, bool selectall = false);
        ///
-       virtual void Edit(BufferView *, int, int, unsigned int);
+       virtual void edit(BufferView *, int, int, unsigned int);
        ///
-       virtual int Latex(Buffer const *, std::ostream &, bool fragile,
+       virtual int latex(Buffer const *, std::ostream &, bool fragile,
                          bool free_spc) const;
        ///
-       virtual int Ascii(Buffer const *,
+       virtual int ascii(Buffer const *,
                          std::ostream &, int linelen = 0) const;
        ///
-       virtual int Linuxdoc(Buffer const *, std::ostream &) const;
+       virtual int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       virtual int DocBook(Buffer const *, std::ostream &) const;
+       virtual int docBook(Buffer const *, std::ostream &) const;
 };
 
 #endif
index dfabf446cac13425daaa5042ec78f693fa1960b5..172f9b6418c6ca20899f9aabdeea504ab5006669 100644 (file)
@@ -63,13 +63,13 @@ void InsetExternal::setFromParams(Params const & p)
 }      
 
 
-string const InsetExternal::EditMessage() const
+string const InsetExternal::editMessage() const
 {
        return doSubstitution(0, params_.templ.guiName);
 }
 
 
-void InsetExternal::Edit(BufferView * bv,
+void InsetExternal::edit(BufferView * bv,
                         int /*x*/, int /*y*/, unsigned int /*button*/)
 {
        view_ = bv;
@@ -77,14 +77,14 @@ void InsetExternal::Edit(BufferView * bv,
 }
 
 
-void InsetExternal::Write(Buffer const *, std::ostream & os) const
+void InsetExternal::write(Buffer const *, std::ostream & os) const
 {
        os << "External " << params_.templ.lyxName << ",\"" << params_.filename 
           << "\",\"" << params_.parameters << "\"\n";
 }
 
 
-void InsetExternal::Read(Buffer const *, LyXLex & lex)
+void InsetExternal::read(Buffer const *, LyXLex & lex)
 {
        string format;
        string token;
@@ -142,32 +142,32 @@ int InsetExternal::write(string const & format,
 }
 
 
-int InsetExternal::Latex(Buffer const * buf,
+int InsetExternal::latex(Buffer const * buf,
                         std::ostream & os, bool, bool) const
 {
        return write("LaTeX", buf, os);
 }
 
 
-int InsetExternal::Ascii(Buffer const * buf, std::ostream & os, int) const
+int InsetExternal::ascii(Buffer const * buf, std::ostream & os, int) const
 {
        return write("Ascii", buf, os);
 }
 
 
-int InsetExternal::Linuxdoc(Buffer const * buf, std::ostream & os) const
+int InsetExternal::linuxdoc(Buffer const * buf, std::ostream & os) const
 {
        return write("LinuxDoc", buf, os);
 }
 
 
-int InsetExternal::DocBook(Buffer const * buf, std::ostream & os) const
+int InsetExternal::docBook(Buffer const * buf, std::ostream & os) const
 {
        return write("DocBook", buf, os);
 }
 
 
-void InsetExternal::Validate(LaTeXFeatures & features) const
+void InsetExternal::validate(LaTeXFeatures & features) const
 {
        ExternalTemplate const & et = params_.templ;
        ExternalTemplate::Formats::const_iterator cit =
@@ -185,7 +185,7 @@ void InsetExternal::Validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetExternal::Clone(Buffer const &) const
+Inset * InsetExternal::clone(Buffer const &) const
 {
        InsetExternal * inset = new InsetExternal();
        inset->params_ = params_;
index 8a339f66562a134ac2ece74e3640272b5e60c6f1..dc68effa30c109b2806072fcc77aeaecd5aea54e 100644 (file)
@@ -42,15 +42,15 @@ public:
        ///
        virtual ~InsetExternal();
        /// what appears in the minibuffer when opening
-       virtual string const EditMessage() const;
+       virtual string const editMessage() const;
        ///
-       virtual void Edit(BufferView *, int x, int y, unsigned int button);
+       virtual void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       virtual EDITABLE Editable() const { return IS_EDITABLE; }
+       virtual EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       virtual void Write(Buffer const *, std::ostream &) const;
+       virtual void write(Buffer const *, std::ostream &) const;
        ///
-       virtual void Read(Buffer const *, LyXLex & lex);
+       virtual void read(Buffer const *, LyXLex & lex);
 
        /** returns the number of rows (\n's) of generated tex code.
         fragile == true means, that the inset should take care about
@@ -58,23 +58,23 @@ public:
         If the free_spc (freespacing) variable is set, then this inset
         is in a free-spacing paragraph.
         */
-       virtual int Latex(Buffer const *, std::ostream &, bool fragile,
+       virtual int latex(Buffer const *, std::ostream &, bool fragile,
                          bool free_spc) const;
        /// write ASCII output to the ostream
-       virtual int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       virtual int ascii(Buffer const *, std::ostream &, int linelen) const;
        /// write LinuxDoc output to the ostream
-       virtual int Linuxdoc(Buffer const *, std::ostream &) const;
+       virtual int linuxdoc(Buffer const *, std::ostream &) const;
        /// write DocBook output to the ostream
-       virtual int DocBook(Buffer const *, std::ostream &) const;
+       virtual int docBook(Buffer const *, std::ostream &) const;
 
        /// Updates needed features for this inset.
-       virtual void Validate(LaTeXFeatures & features) const;
+       virtual void validate(LaTeXFeatures & features) const;
 
        /// returns LyX code associated with the inset. Used for TOC, ...)
-       virtual Inset::Code LyxCode() const { return EXTERNAL_CODE; }
+       virtual Inset::Code lyxCode() const { return EXTERNAL_CODE; }
  
        ///
-       virtual Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
 
        /// returns the text of the button
        virtual string const getScreenLabel() const;
index f8d3293d9f85c1b6cf4deaf3a1ac830fa9df9549..ed0236ef776ab345a39196748ccdd6f729a0673c 100644 (file)
@@ -112,7 +112,7 @@ InsetFloat::InsetFloat(string const & type)
 }
 
 
-void InsetFloat::Write(Buffer const * buf, ostream & os) const
+void InsetFloat::write(Buffer const * buf, ostream & os) const
 {
        os << "Float " // getInsetName()
           << floatType_ << '\n';
@@ -129,11 +129,11 @@ void InsetFloat::Write(Buffer const * buf, ostream & os) const
                os << "wide false\n";
        }
        
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
 
 
-void InsetFloat::Read(Buffer const * buf, LyXLex & lex)
+void InsetFloat::read(Buffer const * buf, LyXLex & lex)
 {
        if (lex.IsOK()) {
                lex.next();
@@ -159,18 +159,18 @@ void InsetFloat::Read(Buffer const * buf, LyXLex & lex)
                               << endl;
                }
        }
-       InsetCollapsable::Read(buf, lex);
+       InsetCollapsable::read(buf, lex);
 }
 
 
-void InsetFloat::Validate(LaTeXFeatures & features) const
+void InsetFloat::validate(LaTeXFeatures & features) const
 {
        features.usedFloats.insert(floatType_);
-       InsetCollapsable::Validate(features);
+       InsetCollapsable::validate(features);
 }
 
 
-Inset * InsetFloat::Clone(Buffer const &) const
+Inset * InsetFloat::clone(Buffer const &) const
 {
        InsetFloat * result = new InsetFloat(floatType_);
        result->inset.init(&inset);
@@ -180,13 +180,13 @@ Inset * InsetFloat::Clone(Buffer const &) const
 }
 
 
-string const InsetFloat::EditMessage() const
+string const InsetFloat::editMessage() const
 {
        return _("Opened Float Inset");
 }
 
 
-int InsetFloat::Latex(Buffer const * buf,
+int InsetFloat::latex(Buffer const * buf,
                      ostream & os, bool fragile, bool fp) const
 {
        string const tmptype = (wide_ ? floatType_ + "*" : floatType_);
@@ -197,34 +197,34 @@ int InsetFloat::Latex(Buffer const * buf,
                os << "[" << floatPlacement_ << "]";
        os << "%\n";
     
-       int const i = inset.Latex(buf, os, fragile, fp);
+       int const i = inset.latex(buf, os, fragile, fp);
        os << "\\end{" << tmptype << "}%\n";
        
        return i + 2;
 }
 
 
-int InsetFloat::DocBook(Buffer const * buf, ostream & os) const
+int InsetFloat::docBook(Buffer const * buf, ostream & os) const
 {
        os << "<" << floatType_ << ">";
-       int const i = inset.DocBook(buf, os);
+       int const i = inset.docBook(buf, os);
        os << "</" << floatType_ << ">";
 
        return i;
 }
 
 
-bool InsetFloat::InsertInsetAllowed(Inset * in) const
+bool InsetFloat::insertInsetAllowed(Inset * in) const
 {
-       if ((in->LyxCode() == Inset::FOOT_CODE) ||
-           (in->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((in->lyxCode() == Inset::FOOT_CODE) ||
+           (in->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
 }
 
 
-void InsetFloat::InsetButtonRelease(BufferView * bv, int x, int y, int button)
+void InsetFloat::insetButtonRelease(BufferView * bv, int x, int y, int button)
 {
        if (x >= top_x
            && x < button_length
@@ -236,7 +236,7 @@ void InsetFloat::InsetButtonRelease(BufferView * bv, int x, int y, int button)
                       << endl;
                //bv->owner()->getDialogs()->showFloat(this);
        } else {
-               InsetCollapsable::InsetButtonRelease(bv, x, y, button);
+               InsetCollapsable::insetButtonRelease(bv, x, y, button);
        }
 }
 
index 63fcf57dd84eceeaa44a03c24e2d083719d65b6c..ee0396d6fbe3244d8ef3689c623ba51d69129cba 100644 (file)
@@ -28,25 +28,25 @@ public:
        ///
        InsetFloat(string const &);
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const * buf, LyXLex & lex);
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
+       Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+       void insetButtonRelease(BufferView * bv, int x, int y, int button);
        ///
        string const & type() const;
        ///
index 56be31185c7283e73c7b5f20229ab6e570c08d16..64ab198f3d66fd51acd43dc026e333f5e1d0d829 100644 (file)
@@ -23,19 +23,19 @@ string const InsetFloatList::getScreenLabel() const
 }
 
 
-Inset::Code InsetFloatList::LyxCode() const
+Inset::Code InsetFloatList::lyxCode() const
 {
        return Inset::FLOAT_LIST_CODE;
 }
 
 
-void InsetFloatList::Write(Buffer const *, std::ostream & os) const
+void InsetFloatList::write(Buffer const *, std::ostream & os) const
 {
        os << "FloatList " << float_type << "\n";
 }
 
 
-void InsetFloatList::Read(Buffer const *, LyXLex & lex) 
+void InsetFloatList::read(Buffer const *, LyXLex & lex) 
 {
        string token;
 
@@ -57,7 +57,7 @@ void InsetFloatList::Read(Buffer const *, LyXLex & lex)
 }
 
 
-void InsetFloatList::Edit(BufferView *, int, int, unsigned int)
+void InsetFloatList::edit(BufferView *, int, int, unsigned int)
 {
 #ifdef WITH_WARNINGS
 #warning Implement me please.
@@ -68,7 +68,7 @@ void InsetFloatList::Edit(BufferView *, int, int, unsigned int)
 }
 
 
-int InsetFloatList::Latex(Buffer const *, std::ostream & os, bool, bool) const
+int InsetFloatList::latex(Buffer const *, std::ostream & os, bool, bool) const
 {
        FloatList::const_iterator cit = floatList[float_type];
 
@@ -96,7 +96,7 @@ int InsetFloatList::Latex(Buffer const *, std::ostream & os, bool, bool) const
 }
 
 
-int InsetFloatList::Ascii(Buffer const * buffer, std::ostream & os, int) const
+int InsetFloatList::ascii(Buffer const * buffer, std::ostream & os, int) const
 {
        os << getScreenLabel() << "\n\n";
 
index 58d1f6aa0a564a468d850df39736d4ff67239e56..19e7d4b7aacea959c97342320c23fff57eec16ba 100644 (file)
@@ -28,31 +28,31 @@ public:
        InsetFloatList(string const & type) 
                : float_type(type) {}
        ///
-        Inset * Clone(Buffer const &) const {
+        Inset * clone(Buffer const &) const {
                return new InsetFloatList(*this);
        }
        ///
        string const getScreenLabel() const;
        ///
-       void Edit(BufferView * bv, int, int, unsigned int);
+       void edit(BufferView * bv, int, int, unsigned int);
         ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex &);
+       void read(Buffer const *, LyXLex &);
        ///
-       int Latex(Buffer const *, std::ostream &, bool, bool) const;
+       int latex(Buffer const *, std::ostream &, bool, bool) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int DocBook(Buffer const *, std::ostream &) const { return 0; }
+       int docBook(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
 private:
        string float_type;
 };
index cd94e5c2f4ab40025c156bcf3c2d01b9a10febef..358c3ef9e1e9a55157838e6986b5087ec63bc267 100644 (file)
@@ -32,7 +32,7 @@ InsetFoot::InsetFoot()
 }
 
 
-Inset * InsetFoot::Clone(Buffer const &) const
+Inset * InsetFoot::clone(Buffer const &) const
 {
        InsetFoot * result = new InsetFoot;
        result->inset.init(&inset);
@@ -42,28 +42,28 @@ Inset * InsetFoot::Clone(Buffer const &) const
 }
 
 
-string const InsetFoot::EditMessage() const
+string const InsetFoot::editMessage() const
 {
        return _("Opened Footnote Inset");
 }
 
 
-int InsetFoot::Latex(Buffer const * buf,
+int InsetFoot::latex(Buffer const * buf,
                     std::ostream & os, bool fragile, bool fp) const
 {
        os << "\\footnote{%\n";
        
-       int const i = inset.Latex(buf, os, fragile, fp);
+       int const i = inset.latex(buf, os, fragile, fp);
        os << "}\n";
        
        return i + 2;
 }
 
 
-bool InsetFoot::InsertInsetAllowed(Inset * in) const
+bool InsetFoot::insertInsetAllowed(Inset * in) const
 {
-       if ((in->LyxCode() == Inset::FOOT_CODE) ||
-           (in->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((in->lyxCode() == Inset::FOOT_CODE) ||
+           (in->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
index 26b7f2f7fa26b1b613531970a9080f4017a8039a..5892ec07e20d252e28dbc008dcffa993862b7c82 100644 (file)
@@ -28,15 +28,15 @@ public:
        ///
        InsetFoot();
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::FOOT_CODE; }
+       Inset::Code lyxCode() const { return Inset::FOOT_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
 };
 
 #endif
index 0e5c7f6b0ac77bf45afaa6996d2c701ad2fff9fa..09639ba8ee0bc0260b3504062abd502e4631689c 100644 (file)
@@ -33,8 +33,8 @@ InsetFootlike::InsetFootlike()
 }
 
 
-void InsetFootlike::Write(Buffer const * buf, std::ostream & os) const 
+void InsetFootlike::write(Buffer const * buf, std::ostream & os) const 
 {
        os << getInsetName() << "\n";
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
index c0e98fe94b95d2d314f810a2a83f32fbce15a01f..b028d8062c263a7f51b66e275f3264be0530f4d0 100644 (file)
@@ -30,7 +30,7 @@ public:
        ///
        InsetFootlike();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
 };
 
 #endif
index fb7defde2b21323f14963a3174febda4a3d3e303..4f5c82d0494e230d4cab00b3c35e3e18a2d2e43d 100644 (file)
@@ -300,19 +300,19 @@ void InsetGraphics::draw(BufferView * bv, LyXFont const & font,
 }
 
 
-void InsetGraphics::Edit(BufferView *bv, int, int, unsigned int)
+void InsetGraphics::edit(BufferView *bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showGraphics(this);
 }
 
 
-Inset::EDITABLE InsetGraphics::Editable() const
+Inset::EDITABLE InsetGraphics::editable() const
 {
        return IS_EDITABLE;
 }
 
 
-void InsetGraphics::Write(Buffer const * buf, ostream & os) const
+void InsetGraphics::write(Buffer const * buf, ostream & os) const
 {
        os << "GRAPHICS FormatVersion 1\n";
 
@@ -320,7 +320,7 @@ void InsetGraphics::Write(Buffer const * buf, ostream & os) const
 }
 
 
-void InsetGraphics::Read(Buffer const * buf, LyXLex & lex)
+void InsetGraphics::read(Buffer const * buf, LyXLex & lex)
 {
        bool finished = false;
 
@@ -462,8 +462,8 @@ InsetGraphics::prepareFile(Buffer const *buf) const
 }
 
 
-int InsetGraphics::Latex(Buffer const *buf, ostream & os,
-               bool /*fragile*/, bool/*fs*/) const
+int InsetGraphics::latex(Buffer const *buf, ostream & os,
+                        bool /*fragile*/, bool/*fs*/) const
 {
        // MISSING: We have to decide how to do the order of the options
        // that is dependent of order, like width, height, angle. Should
@@ -529,7 +529,7 @@ int InsetGraphics::Latex(Buffer const *buf, ostream & os,
 }
 
 
-int InsetGraphics::Ascii(Buffer const *, ostream &, int) const
+int InsetGraphics::ascii(Buffer const *, ostream &, int) const
 {
        // No graphics in ascii output. Possible to use gifscii to convert
        // images to ascii approximation.
@@ -541,7 +541,7 @@ int InsetGraphics::Ascii(Buffer const *, ostream &, int) const
 }
 
 
-int InsetGraphics::Linuxdoc(Buffer const *, ostream &) const
+int InsetGraphics::linuxdoc(Buffer const *, ostream &) const
 {
        // No graphics in LinuxDoc output. Should check how/what to add.
        return 0;
@@ -551,7 +551,7 @@ int InsetGraphics::Linuxdoc(Buffer const *, ostream &) const
 // For explanation on inserting graphics into DocBook checkout:
 // http://linuxdoc.org/LDP/LDP-Author-Guide/inserting-pictures.html
 // See also the docbook guide at http://www.docbook.org/
-int InsetGraphics::DocBook(Buffer const * buf, ostream & os) const
+int InsetGraphics::docBook(Buffer const * buf, ostream & os) const
 {
        // Change the path to be relative to the main file.
        string const buffer_dir = OnlyPath(buf->fileName());
@@ -565,7 +565,7 @@ int InsetGraphics::DocBook(Buffer const * buf, ostream & os) const
 }
 
 
-void InsetGraphics::Validate(LaTeXFeatures & features) const
+void InsetGraphics::validate(LaTeXFeatures & features) const
 {
        // If we have no image, we should not require anything.
        if (params.filename.empty())
@@ -621,7 +621,7 @@ InsetGraphicsParams InsetGraphics::getParams() const
 }
 
 
-Inset * InsetGraphics::Clone(Buffer const &) const
+Inset * InsetGraphics::clone(Buffer const &) const
 {
 #ifdef WITH_WARNINGS
 #warning use the copy constructor instead. (Lgb)
index 4e8a48c951acd7d443fd8a0734883dfc26e495d5..042b8941a96fee745616751ab3af0d92f34c99bc 100644 (file)
@@ -48,37 +48,37 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const;
+       EDITABLE editable() const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
 
        /** returns the number of rows (\n's) of generated tex code.
         #fragile == true# means, that the inset should take care about
         fragile commands by adding a #\protect# before.
         */
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
 
        /** Tell LyX what the latex features you need i.e. what latex packages
            you need to be included.
         */
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
 
        /// returns LyX code associated with the inset. Used for TOC, ...)
-       Inset::Code LyxCode() const { return Inset::GRAPHICS_CODE; }
+       Inset::Code lyxCode() const { return Inset::GRAPHICS_CODE; }
 
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
 
        /** Set the inset parameters, used by the GUIndependent dialog.
            Return true of new params are different from what was so far.
@@ -102,13 +102,11 @@ private:
        string const createLatexOptions() const;
        /// Convert the file if needed, and return the location of the file.
        string const prepareFile(Buffer const * buf) const;
-
        /// The graphics cache handle.
        mutable boost::shared_ptr<GraphicsCacheItem> cacheHandle;
-
        /// is the pixmap initialized?
        mutable bool imageLoaded;
-
+       ///
        InsetGraphicsParams params;
 };
 
index 9c1652f81ad8e1caca6dd8826eaca331bcd0c9be..01cd2530ba5aa1e5f70c75cb9f6625b943384720 100644 (file)
@@ -112,7 +112,7 @@ void InsetInclude::set(Params const & p)
 }
 
 
-Inset * InsetInclude::Clone(Buffer const & buffer) const
+Inset * InsetInclude::clone(Buffer const & buffer) const
 {
        Params p(params_);
        p.masterFilename_ = buffer.fileName();
@@ -121,21 +121,21 @@ Inset * InsetInclude::Clone(Buffer const & buffer) const
 }
 
 
-void InsetInclude::Edit(BufferView * bv, int, int, unsigned int)
+void InsetInclude::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showInclude(this);
 }
 
 
-void InsetInclude::Write(Buffer const *, ostream & os) const
+void InsetInclude::write(Buffer const *, ostream & os) const
 {
        os << "Include " << params_.cparams.getCommand() << "\n";
 }
 
 
-void InsetInclude::Read(Buffer const *, LyXLex & lex)
+void InsetInclude::read(Buffer const *, LyXLex & lex)
 {
-       params_.cparams.Read(lex);
+       params_.cparams.read(lex);
    
        if (params_.cparams.getCmdName() == "include")
                params_.flag = INCLUDE;
@@ -215,7 +215,7 @@ bool InsetInclude::loadIfNeeded() const
 }
 
 
-int InsetInclude::Latex(Buffer const * buffer, ostream & os,
+int InsetInclude::latex(Buffer const * buffer, ostream & os,
                        bool /*fragile*/, bool /*fs*/) const
 {
        string incfile(params_.cparams.getContents());
@@ -285,7 +285,7 @@ int InsetInclude::Latex(Buffer const * buffer, ostream & os,
 }
 
 
-int InsetInclude::Ascii(Buffer const *, std::ostream & os, int) const
+int InsetInclude::ascii(Buffer const *, std::ostream & os, int) const
 {
        if (isVerbatim())
                os << GetFileContents(getFileName());
@@ -293,7 +293,7 @@ int InsetInclude::Ascii(Buffer const *, std::ostream & os, int) const
 }
 
 
-int InsetInclude::Linuxdoc(Buffer const * buffer, ostream & os) const
+int InsetInclude::linuxdoc(Buffer const * buffer, ostream & os) const
 {
        string incfile(params_.cparams.getContents());
        
@@ -332,7 +332,7 @@ int InsetInclude::Linuxdoc(Buffer const * buffer, ostream & os) const
 }
 
 
-int InsetInclude::DocBook(Buffer const * buffer, ostream & os) const
+int InsetInclude::docBook(Buffer const * buffer, ostream & os) const
 {
        string incfile(params_.cparams.getContents());
 
@@ -370,7 +370,7 @@ int InsetInclude::DocBook(Buffer const * buffer, ostream & os) const
 }
 
 
-void InsetInclude::Validate(LaTeXFeatures & features) const
+void InsetInclude::validate(LaTeXFeatures & features) const
 {
 
        string incfile(params_.cparams.getContents());
index 2fa0040fefa64dbac27442ccb99515469963a478..2a21c2976e8d6c3220c8a8e46a5808ca85d1d0ca 100644 (file)
@@ -69,34 +69,35 @@ public:
        void set(Params const & params);
 
        ///
-        Inset * Clone(Buffer const &) const;
+        virtual Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::INCLUDE_CODE; }
+       Inset::Code lyxCode() const { return Inset::INCLUDE_CODE; }
        /// This returns the list of labels on the child buffer
        std::vector<string> const getLabelList() const;
        /// This returns the list of bibkeys on the child buffer
        std::vector< std::pair<string,string> > const getKeys() const;
        ///
-       void Edit(BufferView *, int x, int y, unsigned int button);
+       void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       EDITABLE Editable() const
+       EDITABLE editable() const
        {
                return IS_EDITABLE;
        }
         /// With lyx3 we won't overload these 3 methods
-        void Write(Buffer const *, std::ostream &) const;
+        void write(Buffer const *, std::ostream &) const;
         ///
-       void Read(Buffer const *, LyXLex &);
+       void read(Buffer const *, LyXLex &);
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
+       int latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       void Validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const;
        
         /** Input inserts anything inside a paragraph.
            Display can give some visual feedback
index f13c8db9fd93a56329ac68870bc99750ed75e56d..18d79e5551f9f260780321e2536dd7ecd3464260 100644 (file)
@@ -22,7 +22,7 @@ string const InsetIndex::getScreenLabel() const
 }
 
 
-void InsetIndex::Edit(BufferView * bv, int, int, unsigned int)
+void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showIndex( this );
 }
@@ -38,13 +38,13 @@ string const InsetPrintIndex::getScreenLabel() const
 }
 
 
-void InsetPrintIndex::Validate(LaTeXFeatures & features) const
+void InsetPrintIndex::validate(LaTeXFeatures & features) const
 {
        features.makeidx = true;
 }
 
 
-Inset::Code InsetPrintIndex::LyxCode() const
+Inset::Code InsetPrintIndex::lyxCode() const
 {
        return Inset::INDEX_CODE;
 }
index d4e085295738903f49ce8f1f1072d4dad01cea63..598ae99f3ceaa2a3d94e8b2af448e16c6d71617a 100644 (file)
@@ -27,15 +27,15 @@ public:
        ///
        InsetIndex(InsetCommandParams const &);
        ///
-       Inset * Clone(Buffer const &) const {
+       virtual Inset * clone(Buffer const &) const {
                return new InsetIndex(params());
        }
        ///
        string const getScreenLabel() const;
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
 };
 
 
@@ -44,19 +44,19 @@ public:
        ///
        InsetPrintIndex(InsetCommandParams const &);
        ///
-       Inset * Clone(Buffer const &) const {
+       virtual Inset * clone(Buffer const &) const {
                return new InsetPrintIndex(params());
        }
        /// Updates needed features for this inset.
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       void Edit(BufferView *, int, int, unsigned int) {}
+       void edit(BufferView *, int, int, unsigned int) {}
        ///
-       EDITABLE Editable() const{ return NOT_EDITABLE; }
+       EDITABLE editable() const{ return NOT_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
        string const getScreenLabel() const;
 };
index 148b677b23c656a0c248f9cf6661b5f9720cee69..0aabb9b22e17cdd9d8dfd3feb0f3d294ca3e9abf 100644 (file)
@@ -108,13 +108,13 @@ void InsetInfo::draw(BufferView * bv, LyXFont const &,
 }
 
 
-void InsetInfo::Write(Buffer const *, ostream & os) const
+void InsetInfo::write(Buffer const *, ostream & os) const
 {
        os << "Info\n" << contents;
 }
 
 
-void InsetInfo::Read(Buffer const *, LyXLex & lex)
+void InsetInfo::read(Buffer const *, LyXLex & lex)
 {
        string tmp = lex.GetString(); // should be "Info"
        if (tmp != "Info")
@@ -141,38 +141,38 @@ void InsetInfo::Read(Buffer const *, LyXLex & lex)
 }
       
 
-int InsetInfo::Latex(Buffer const *, ostream &,
+int InsetInfo::latex(Buffer const *, ostream &,
                     bool /*fragile*/, bool /*free_spc*/) const
 {
        return 0;
 }
 
 
-int InsetInfo::Ascii(Buffer const *, ostream &, int) const
+int InsetInfo::ascii(Buffer const *, ostream &, int) const
 {
        return 0;
 }
 
 
-int InsetInfo::Linuxdoc(Buffer const *, ostream &) const
+int InsetInfo::linuxdoc(Buffer const *, ostream &) const
 {
        return 0;
 }
 
 
-int InsetInfo::DocBook(Buffer const *, ostream &) const
+int InsetInfo::docBook(Buffer const *, ostream &) const
 {
        return 0;
 }
 
 
-Inset::EDITABLE InsetInfo::Editable() const
+Inset::EDITABLE InsetInfo::editable() const
 {
        return IS_EDITABLE;
 }
 
 
-void InsetInfo::CloseInfoCB(FL_OBJECT * ob, long)
+void InsetInfo::closeInfoCB(FL_OBJECT * ob, long)
 {
        InsetInfo * inset = static_cast<InsetInfo*>(ob->u_vdata);
        string tmp = fl_get_input(inset->strobj);
@@ -193,17 +193,17 @@ void InsetInfo::CloseInfoCB(FL_OBJECT * ob, long)
 extern "C"
 void C_InsetInfo_CloseInfoCB(FL_OBJECT * ob, long data) 
 {
-       InsetInfo::CloseInfoCB(ob, data);
+       InsetInfo::closeInfoCB(ob, data);
 }
 
 
-string const InsetInfo::EditMessage() const 
+string const InsetInfo::editMessage() const 
 {
        return _("Opened note");
 }
 
 
-void InsetInfo::Edit(BufferView *bv, int, int, unsigned int)
+void InsetInfo::edit(BufferView *bv, int, int, unsigned int)
 {
        static int ow = -1;
        static int oh;
@@ -243,13 +243,13 @@ void InsetInfo::Edit(BufferView *bv, int, int, unsigned int)
 }
 
 
-Inset * InsetInfo::Clone(Buffer const &) const
+Inset * InsetInfo::clone(Buffer const &) const
 {
        return new InsetInfo(contents);
 }
 
 
-Inset::Code InsetInfo::LyxCode() const
+Inset::Code InsetInfo::lyxCode() const
 {
        return Inset::IGNORE_CODE;
 }
index 2049847fc19b2035ab0c7d2a1d5067ae9dbc8c13..cbc7a013620acf68a3a8ac821f275380ffcec18c 100644 (file)
@@ -47,30 +47,30 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        /// what appears in the minibuffer when opening
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const;
+       EDITABLE editable() const;
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       static void CloseInfoCB(FL_OBJECT *, long data);
+       static void closeInfoCB(FL_OBJECT *, long data);
 private:
        ///
        string contents;
index ff3fa02cb57110eee69a05e03841d007bbbc29b9..cb1cc921fb5c1fe0932a3791626aad580217a430 100644 (file)
@@ -42,7 +42,7 @@ vector<string> const InsetLabel::getLabelList() const
 }
 
 
-void InsetLabel::Edit(BufferView * bv, int, int, unsigned int)
+void InsetLabel::edit(BufferView * bv, int, int, unsigned int)
 {
        if (bv->buffer()->isReadonly()) {
                WarnReadonly(bv->buffer()->fileName());
@@ -69,28 +69,28 @@ void InsetLabel::Edit(BufferView * bv, int, int, unsigned int)
 }
 
 
-int InsetLabel::Latex(Buffer const *, ostream & os,
+int InsetLabel::latex(Buffer const *, ostream & os,
                      bool /*fragile*/, bool /*fs*/) const
 {
        os << escape(getCommand());
        return 0;
 }
 
-int InsetLabel::Ascii(Buffer const *, ostream & os, int) const
+int InsetLabel::ascii(Buffer const *, ostream & os, int) const
 {
        os << "<" << getContents()  << ">";
        return 0;
 }
 
 
-int InsetLabel::Linuxdoc(Buffer const *, ostream & os) const
+int InsetLabel::linuxdoc(Buffer const *, ostream & os) const
 {
        os << "<label id=\"" << getContents() << "\" >";
        return 0;
 }
 
 
-int InsetLabel::DocBook(Buffer const *, ostream & os) const
+int InsetLabel::docBook(Buffer const *, ostream & os) const
 {
        os << "<anchor id=\"" << getContents() << "\" ></anchor>";
        return 0;
index 888f1dd3bce2252fb69dac9506c93d8688971b04..acdce9647052c9769c5d0b6b88c1693897abeb17 100644 (file)
@@ -23,26 +23,28 @@ public:
        ///
        InsetLabel(InsetCommandParams const &);
        ///
-       Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
+       virtual Inset * clone(Buffer const &) const {
+               return new InsetLabel(params());
+       }
        ///
        string const getScreenLabel() const { return getContents(); }
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
        std::vector<string> const getLabelList() const;
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
 };
 
 #endif
index 5a74d2332d87d43d7e958293c44a7b6b4a6a0e36..555cdd8925058174b528f8049490a79b42cb25a4 100644 (file)
@@ -300,19 +300,19 @@ int InsetLatexAccent::width(BufferView *, LyXFont const & font) const
 }
 
 
-int InsetLatexAccent::Lbearing(LyXFont const & font) const
+int InsetLatexAccent::lbearing(LyXFont const & font) const
 {
        return lyxfont::lbearing(ic, font);
 }
 
 
-int InsetLatexAccent::Rbearing(LyXFont const & font) const
+int InsetLatexAccent::rbearing(LyXFont const & font) const
 {
        return lyxfont::rbearing(ic, font);
 }
 
 
-bool InsetLatexAccent::DisplayISO8859_9(BufferView * bv, LyXFont const & font,
+bool InsetLatexAccent::displayISO8859_9(BufferView * bv, LyXFont const & font,
                                        int baseline, 
                                        float & x) const
 {
@@ -361,7 +361,7 @@ void InsetLatexAccent::draw(BufferView * bv, LyXFont const & font0,
        Painter & pain = bv->painter();
 
        if (lyxrc.font_norm_type == LyXRC::ISO_8859_9)
-               if (DisplayISO8859_9(bv, font0, baseline, x))   
+               if (displayISO8859_9(bv, font0, baseline, x))   
                        return;
        
        /* draw it! */ 
@@ -377,7 +377,7 @@ void InsetLatexAccent::draw(BufferView * bv, LyXFont const & font0,
                int asc = ascent(bv, font);
                int desc = descent(bv, font);
                int wid = width(bv, font);
-               float x2 = x + (Rbearing(font) - Lbearing(font)) / 2.0;
+               float x2 = x + (rbearing(font) - lbearing(font)) / 2.0;
                float hg;
                int y;
                if (plusasc) {
@@ -612,13 +612,13 @@ void InsetLatexAccent::draw(BufferView * bv, LyXFont const & font0,
 }
 
 
-void InsetLatexAccent::Write(Buffer const *, ostream & os) const
+void InsetLatexAccent::write(Buffer const *, ostream & os) const
 {
        os << "\\i " << contents << "\n";
 }
 
 
-void InsetLatexAccent::Read(Buffer const *, LyXLex & lex)
+void InsetLatexAccent::read(Buffer const *, LyXLex & lex)
 {
        lex.EatLine();
        contents = lex.GetString();
@@ -626,7 +626,7 @@ void InsetLatexAccent::Read(Buffer const *, LyXLex & lex)
 }
 
 
-int InsetLatexAccent::Latex(Buffer const *, ostream & os,
+int InsetLatexAccent::latex(Buffer const *, ostream & os,
                            bool /*fragile*/, bool/*fs*/) const
 {
        os << contents;
@@ -634,46 +634,46 @@ int InsetLatexAccent::Latex(Buffer const *, ostream & os,
 }
 
 
-int InsetLatexAccent::Ascii(Buffer const *, ostream & os, int) const
+int InsetLatexAccent::ascii(Buffer const *, ostream & os, int) const
 {
        os << contents;
        return 0;
 }
 
 
-int InsetLatexAccent::Linuxdoc(Buffer const *, ostream & os) const
+int InsetLatexAccent::linuxdoc(Buffer const *, ostream & os) const
 {
        os << contents;
        return 0;
 }
 
 
-int InsetLatexAccent::DocBook(Buffer const *, ostream & os) const
+int InsetLatexAccent::docBook(Buffer const *, ostream & os) const
 {
        os << contents;
        return 0;
 }
 
 
-bool InsetLatexAccent::Deletable() const
+bool InsetLatexAccent::deletable() const
 {
        return true;
 }
 
 
-bool InsetLatexAccent::DirectWrite() const
+bool InsetLatexAccent::directWrite() const
 {
        return true;
 }
 
 
-Inset * InsetLatexAccent::Clone(Buffer const &) const
+Inset * InsetLatexAccent::clone(Buffer const &) const
 {
        return new InsetLatexAccent(contents);
 }
 
 
-Inset::Code InsetLatexAccent::LyxCode() const
+Inset::Code InsetLatexAccent::lyxCode() const
 {
        return Inset::ACCENT_CODE;
 }
index acf1b81dd1dfb8fe31d83ce4838cb08e4f219021..52fbc8fe75dd7e060d807e4627c31468dc974226 100644 (file)
@@ -43,35 +43,35 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       int Lbearing(LyXFont const & font) const;
+       int lbearing(LyXFont const & font) const;
        ///
-       int Rbearing(LyXFont const & font) const;
+       int rbearing(LyXFont const & font) const;
        ///
-       bool DisplayISO8859_9(BufferView *, LyXFont const & font,
+       bool displayISO8859_9(BufferView *, LyXFont const & font,
                              int baseline, float & x) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       bool Deletable() const;
+       bool deletable() const;
        ///
-       bool DirectWrite() const;
+       bool directWrite() const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode()const;
+       Inset::Code lyxCode()const;
        ///
-       inline bool CanDisplay();
+       inline bool canDisplay();
        /// all the accent types
        enum ACCENT_TYPES{
                ///
@@ -139,7 +139,7 @@ private:
 };
 
 
-bool InsetLatexAccent::CanDisplay()
+bool InsetLatexAccent::canDisplay()
 {
        return candisp;
 }
index 4610b5557733c11850291e25d349ff49d9a4828b..23f9f15318b29f1121d59a85cbd76aaf8031a985 100644 (file)
@@ -50,14 +50,14 @@ InsetList::InsetList()
 }
 
 
-void InsetList::Write(Buffer const * buf, ostream & os) const
+void InsetList::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
 
 
-Inset * InsetList::Clone(Buffer const &) const
+Inset * InsetList::clone(Buffer const &) const
 {
        InsetList * result = new InsetList;
        result->inset.init(&inset);
@@ -67,28 +67,28 @@ Inset * InsetList::Clone(Buffer const &) const
 }
 
 
-string const InsetList::EditMessage() const
+string const InsetList::editMessage() const
 {
        return _("Opened List Inset");
 }
 
 
-int InsetList::Latex(Buffer const * buf,
+int InsetList::latex(Buffer const * buf,
                     ostream & os, bool fragile, bool fp) const
 {
        os << "\\footnote{%\n";
        
-       int i = inset.Latex(buf, os, fragile, fp);
+       int i = inset.latex(buf, os, fragile, fp);
        os << "}%\n";
        
        return i + 2;
 }
 
 
-bool InsetList::InsertInsetAllowed(Inset * in) const
+bool InsetList::insertInsetAllowed(Inset * in) const
 {
-       if ((in->LyxCode() == Inset::FOOT_CODE) ||
-           (in->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((in->lyxCode() == Inset::FOOT_CODE) ||
+           (in->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
index dc1e415e1af170c0f57b5e244ebfb2682d576e1e..6a67e20ee3381d5780da1969c130837f59df1d97 100644 (file)
@@ -26,17 +26,17 @@ public:
        ///
        InsetList();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::FOOT_CODE; }
+       Inset::Code lyxCode() const { return Inset::FOOT_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
 };
 
 #endif
index 4a631bd8ccef46150748636aa2542e3fd76bb1d5..0ab7524a9a9cbf02ccb323af694c430a97d201a0 100644 (file)
@@ -32,7 +32,7 @@ InsetMarginal::InsetMarginal()
 }
 
 
-Inset * InsetMarginal::Clone(Buffer const &) const
+Inset * InsetMarginal::clone(Buffer const &) const
 {
        InsetMarginal * result = new InsetMarginal;
        result->inset.init(&inset);
@@ -42,28 +42,28 @@ Inset * InsetMarginal::Clone(Buffer const &) const
 }
 
 
-string const InsetMarginal::EditMessage() const
+string const InsetMarginal::editMessage() const
 {
        return _("Opened Marginal Note Inset");
 }
 
 
-int InsetMarginal::Latex(Buffer const * buf,
+int InsetMarginal::latex(Buffer const * buf,
                         std::ostream & os, bool fragile, bool fp) const
 {
        os << "\\marginpar{%\n";
        
-       int const i = inset.Latex(buf, os, fragile, fp);
+       int const i = inset.latex(buf, os, fragile, fp);
        os << "}%\n";
        
        return i + 2;
 }
 
 
-bool InsetMarginal::InsertInsetAllowed(Inset * in) const
+bool InsetMarginal::insertInsetAllowed(Inset * in) const
 {
-       if ((in->LyxCode() == Inset::FOOT_CODE) ||
-           (in->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((in->lyxCode() == Inset::FOOT_CODE) ||
+           (in->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
index 775fdd61d8ec778a6dca3e5d1b1f889554e900aa..7f1e5b86c6d4c592b457b055eab47f41b31b448e 100644 (file)
@@ -26,15 +26,15 @@ public:
        ///
        InsetMarginal();
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MARGIN_CODE; }
+       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
 };
 
 #endif
index c856d06881ff00a41228fa37036b72cae8d796d7..10ac8dcb28a071e2bcf5a938ae92b9ce9c55ddc4 100644 (file)
@@ -80,18 +80,18 @@ InsetMinipage::~InsetMinipage()
 }
 
 
-void InsetMinipage::Write(Buffer const * buf, ostream & os) const 
+void InsetMinipage::write(Buffer const * buf, ostream & os) const 
 {
        os << getInsetName() << "\n"
           << "position " << pos_ << "\n"
           << "inner_position " << inner_pos_ << "\n"
           << "height \"" << height_ << "\"\n"
           << "width \"" << width_ << "\"\n";
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
 
 
-void InsetMinipage::Read(Buffer const * buf, LyXLex & lex)
+void InsetMinipage::read(Buffer const * buf, LyXLex & lex)
 {
        string token;
 
@@ -170,11 +170,11 @@ void InsetMinipage::Read(Buffer const * buf, LyXLex & lex)
        }
        if (!token.empty())
                lex.pushToken(token);
-       InsetCollapsable::Read(buf, lex);
+       InsetCollapsable::read(buf, lex);
 }
 
 
-Inset * InsetMinipage::Clone(Buffer const &) const
+Inset * InsetMinipage::clone(Buffer const &) const
 {
        InsetMinipage * result = new InsetMinipage;
        result->inset.init(&inset);
@@ -236,13 +236,13 @@ int InsetMinipage::descent(BufferView * bv, LyXFont const & font) const
 }
 
 
-string const InsetMinipage::EditMessage() const
+string const InsetMinipage::editMessage() const
 {
        return _("Opened Minipage Inset");
 }
 
 
-int InsetMinipage::Latex(Buffer const * buf,
+int InsetMinipage::latex(Buffer const * buf,
                         ostream & os, bool fragile, bool fp) const
 {
        string s_pos;
@@ -260,17 +260,17 @@ int InsetMinipage::Latex(Buffer const * buf,
        os << "\\begin{minipage}[" << s_pos << "]{"
           << LyXLength(width_).asLatexString() << "}%\n";
        
-       int i = inset.Latex(buf, os, fragile, fp);
+       int i = inset.latex(buf, os, fragile, fp);
 
        os << "\\end{minipage}%\n";
        return i + 2;
 }
 
 
-bool InsetMinipage::InsertInsetAllowed(Inset * in) const
+bool InsetMinipage::insertInsetAllowed(Inset * in) const
 {
-       if ((in->LyxCode() == Inset::FLOAT_CODE) ||
-           (in->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((in->lyxCode() == Inset::FLOAT_CODE) ||
+           (in->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
@@ -325,22 +325,22 @@ void InsetMinipage::width(string const & ll)
 }
 
 
-bool InsetMinipage::ShowInsetDialog(BufferView * bv) const
+bool InsetMinipage::showInsetDialog(BufferView * bv) const
 {
-       if (!inset.ShowInsetDialog(bv))
+       if (!inset.showInsetDialog(bv))
        bv->owner()->getDialogs()->showMinipage(const_cast<InsetMinipage *>(this));
        return true;
 }
 
 
-void InsetMinipage::InsetButtonRelease(BufferView * bv, int x, int y,
+void InsetMinipage::insetButtonRelease(BufferView * bv, int x, int y,
                                       int button)
 {
        if (button == 3) {
-       ShowInsetDialog(bv);
+       showInsetDialog(bv);
        return;
        }
-       InsetCollapsable::InsetButtonRelease(bv, x, y, button);
+       InsetCollapsable::insetButtonRelease(bv, x, y, button);
 }
 
 
index 01880f1da754f1d6fea4350fc2ea173f2a7405f4..11139b4d0006cf8280ab90eae163e808df30c212 100644 (file)
@@ -43,23 +43,23 @@ public:
        ///
        ~InsetMinipage();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
        int descent(BufferView *, LyXFont const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
+       Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
        ///
        Position pos() const;
        ///
@@ -79,13 +79,13 @@ public:
        ///
        SigC::Signal0<void> hideDialog;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+       void insetButtonRelease(BufferView * bv, int x, int y, int button);
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        bool needFullRow() const { return false; }
        ///
-       bool ShowInsetDialog(BufferView *) const;
+       bool showInsetDialog(BufferView *) const;
 private:
        ///
        Position pos_;
index 99f8680607c046c5b598be1bddc51bd719dca3d7..feec44cd7f8484bb2797f24a400c884ccfbb780b 100644 (file)
@@ -43,7 +43,7 @@ string const InsetParent::getScreenLabel() const
 }
 
 
-void InsetParent::Edit(BufferView * bv, int, int, unsigned int)
+void InsetParent::edit(BufferView * bv, int, int, unsigned int)
 {    
        bv->owner()->getLyXFunc()->
                Dispatch(LFUN_CHILDOPEN, getContents());
@@ -51,10 +51,10 @@ void InsetParent::Edit(BufferView * bv, int, int, unsigned int)
 
 
 // LaTeX must just ignore this command
-int InsetParent::Latex(Buffer const * buf, ostream & os,
+int InsetParent::latex(Buffer const * buf, ostream & os,
                       bool fragile, bool free_spc) const
 {
        os << "%%#{lyx}";
-       InsetCommand::Latex(buf, os, fragile, free_spc);
+       InsetCommand::latex(buf, os, fragile, free_spc);
        return 0;
 }
index 3eaf59f279f4c7d4807f1a947792568830a672b4..3f348a51de660b6dca6ec59a754486b965af98ba 100644 (file)
@@ -29,19 +29,19 @@ public:
        ///
        InsetParent(InsetCommandParams const &, Buffer const &);
        ///
-       Inset * Clone(Buffer const & buffer) const {
+       virtual Inset * clone(Buffer const & buffer) const {
                return new InsetParent(params(), buffer);
        }
        ///
        string const getScreenLabel() const;
         ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
         ///
-        Inset::Code LyxCode() const { return Inset::PARENT_CODE; }
+        Inset::Code lyxCode() const { return Inset::PARENT_CODE; }
         ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        /// 
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
         ///
         void setParent(string fn) { setContents(fn); }
index 80053ffe7324a956e5eed42cdae80caa38749d96..249df27754a4bec1f38f1d40cc2da7122a4f9e00 100644 (file)
@@ -69,7 +69,7 @@ char const * const latex_quote_babel[2][5] =
 
 InsetQuotes::InsetQuotes(string const & str)
 {
-       ParseString(str);
+       parseString(str);
 }
 
 
@@ -96,7 +96,7 @@ InsetQuotes::InsetQuotes(char c, BufferParams const & params)
 }
 
 
-void InsetQuotes::ParseString(string const & s)
+void InsetQuotes::parseString(string const & s)
 {
        string str(s);
        if (str.length() != 3) {
@@ -145,7 +145,7 @@ void InsetQuotes::ParseString(string const & s)
 }
 
 
-string const InsetQuotes::DispString() const
+string const InsetQuotes::dispString() const
 {
        string disp;
        disp += quote_char[quote_index[side][language]];
@@ -176,7 +176,7 @@ int InsetQuotes::descent(BufferView *, LyXFont const & font) const
 
 int InsetQuotes::width(BufferView *, LyXFont const & font) const
 {
-       string text = DispString();
+       string text = dispString();
        int w = 0;
 
        for (string::size_type i = 0; i < text.length(); ++i) {
@@ -192,7 +192,7 @@ int InsetQuotes::width(BufferView *, LyXFont const & font) const
 }
 
 
-LyXFont const InsetQuotes::ConvertFont(LyXFont const & f) const
+LyXFont const InsetQuotes::convertFont(LyXFont const & f) const
 {
        LyXFont font(f);
 #ifndef NO_LATEX
@@ -206,14 +206,14 @@ LyXFont const InsetQuotes::ConvertFont(LyXFont const & f) const
 void InsetQuotes::draw(BufferView * bv, LyXFont const & font,
                       int baseline, float & x, bool) const
 {
-       string text = DispString();
+       string text = dispString();
 
        bv->painter().text(int(x), baseline, text, font);
        x += width(bv, font);
 }
 
 
-void InsetQuotes::Write(Buffer const *, ostream & os) const
+void InsetQuotes::write(Buffer const *, ostream & os) const
 {
        string text;
        text += language_char[language];
@@ -223,10 +223,10 @@ void InsetQuotes::Write(Buffer const *, ostream & os) const
 }
 
 
-void InsetQuotes::Read(Buffer const *, LyXLex & lex)
+void InsetQuotes::read(Buffer const *, LyXLex & lex)
 {
        lex.nextToken();
-       ParseString(lex.GetString());
+       parseString(lex.GetString());
        lex.next();
        string tmp(lex.GetString());
        if (tmp != "\\end_inset")
@@ -237,10 +237,10 @@ void InsetQuotes::Read(Buffer const *, LyXLex & lex)
 
 extern bool use_babel;
 
-int InsetQuotes::Latex(Buffer const * buf, ostream & os,
+int InsetQuotes::latex(Buffer const * buf, ostream & os,
                       bool /*fragile*/, bool) const
 {
-       string const doclang = buf->GetLanguage()->lang();
+       string const doclang = buf->getLanguage()->lang();
        int quoteind = quote_index[side][language];
        string qstr;
        
@@ -271,21 +271,21 @@ int InsetQuotes::Latex(Buffer const * buf, ostream & os,
 }
 
 
-int InsetQuotes::Ascii(Buffer const *, ostream & os, int) const
+int InsetQuotes::ascii(Buffer const *, ostream & os, int) const
 {
        os << "\"";
        return 0;
 }
 
 
-int InsetQuotes::Linuxdoc(Buffer const *, ostream & os) const
+int InsetQuotes::linuxdoc(Buffer const *, ostream & os) const
 {
        os << "\"";
        return 0;
 }
 
 
-int InsetQuotes::DocBook(Buffer const *, ostream & os) const
+int InsetQuotes::docBook(Buffer const *, ostream & os) const
 {
        if (times == InsetQuotes::DoubleQ) {
                if (side == InsetQuotes::LeftQ)
@@ -302,7 +302,7 @@ int InsetQuotes::DocBook(Buffer const *, ostream & os) const
 }
 
 
-void InsetQuotes::Validate(LaTeXFeatures & features) const 
+void InsetQuotes::validate(LaTeXFeatures & features) const 
 {
        char type = quote_char[quote_index[side][language]];
 
@@ -326,13 +326,13 @@ void InsetQuotes::Validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetQuotes::Clone(Buffer const &) const
+Inset * InsetQuotes::clone(Buffer const &) const
 {
   return new InsetQuotes(language, side, times);
 }
 
 
-Inset::Code InsetQuotes::LyxCode() const
+Inset::Code InsetQuotes::lyxCode() const
 {
   return Inset::QUOTE_CODE;
 }
index fcb037452e2de908016b91557dbfb17c109a4f29..7011656e1426c51ebb46bbe21a4313d70d059e06 100644 (file)
@@ -80,26 +80,26 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       LyXFont const ConvertFont(LyXFont const & font) const;
+       LyXFont const convertFont(LyXFont const & font) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       void Validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
 private:
        ///
        quote_language language;
@@ -113,9 +113,9 @@ private:
         */
        InsetQuotes(quote_language l, quote_side s, quote_times t);
        ///
-       void ParseString(string const &);
+       void parseString(string const &);
        ///
-       string const DispString() const;
+       string const dispString() const;
 };
 #endif
 
index 681aa2183bf1289ca29c712fce99c1509dcf8b3d..0a0e40f0e807c7e268fa82da1a1a227e31c80fde 100644 (file)
@@ -22,7 +22,7 @@ InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
        : InsetCommand(p), isLatex(buf.isLatex())
 {}
 
-void InsetRef::Edit(BufferView * bv, int, int, unsigned int button)
+void InsetRef::edit(BufferView * bv, int, int, unsigned int button)
 {
        // Eventually trigger dialog with button 3 not 1
        if (button == 3 )
@@ -52,7 +52,7 @@ string const InsetRef::getScreenLabel() const
 }
 
 
-int InsetRef::Latex(Buffer const *, ostream & os,
+int InsetRef::latex(Buffer const *, ostream & os,
                    bool /*fragile*/, bool /*fs*/) const
 {
        if (getOptions().empty())
@@ -65,14 +65,14 @@ int InsetRef::Latex(Buffer const *, ostream & os,
 }
 
 
-int InsetRef::Ascii(Buffer const *, ostream & os, int) const
+int InsetRef::ascii(Buffer const *, ostream & os, int) const
 {
        os << "[" << getContents() << "]";
        return 0;
 }
 
 
-int InsetRef::Linuxdoc(Buffer const *, ostream & os) const
+int InsetRef::linuxdoc(Buffer const *, ostream & os) const
 {
        os << "<ref id=\"" << getContents()
           << "\" name=\"" << getOptions() << "\" >";
@@ -80,7 +80,7 @@ int InsetRef::Linuxdoc(Buffer const *, ostream & os) const
 }
 
 
-int InsetRef::DocBook(Buffer const *, ostream & os) const
+int InsetRef::docBook(Buffer const *, ostream & os) const
 {
        if (getOptions().empty()) {
                os << "<xref linkend=\"" << getContents() << "\"/>";
@@ -93,7 +93,7 @@ int InsetRef::DocBook(Buffer const *, ostream & os) const
 }
 
 
-void InsetRef::Validate(LaTeXFeatures & features) const
+void InsetRef::validate(LaTeXFeatures & features) const
 {
        if (getCmdName() == "vref" || getCmdName() == "vpageref")
                features.varioref = true;
index 19c8c031d79bb10996bbf0db148d0c169cf7be63..56a20ff3e82f44fb3dcdf85a5cf0ac8cf316dedc 100644 (file)
@@ -40,30 +40,30 @@ public:
        ///
        InsetRef(InsetCommandParams const &, Buffer const &);
        ///
-       Inset * Clone(Buffer const & buffer) const {
+       virtual Inset * clone(Buffer const & buffer) const {
                return new InsetRef(params(), buffer);
        }
        ///
        string const getScreenLabel() const;
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::REF_CODE; }
+       Inset::Code lyxCode() const { return Inset::REF_CODE; }
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
         ///
        bool display() const { return false; }
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
 private:
        ///
        bool isLatex;
index 22649f50c9f645717953352054ca6cc4d9ab7b54..a94e33e42503264fdefcf870e1b3ae611b7f07cd 100644 (file)
@@ -144,7 +144,7 @@ void InsetSpecialChar::draw(BufferView * bv, LyXFont const & f,
 
 
 // In lyxf3 this will be just LaTeX
-void InsetSpecialChar::Write(Buffer const *, ostream & os) const
+void InsetSpecialChar::write(Buffer const *, ostream & os) const
 {
        string command;
        switch (kind) {
@@ -162,7 +162,7 @@ void InsetSpecialChar::Write(Buffer const *, ostream & os) const
 
 
 // This function will not be necessary when lyx3
-void InsetSpecialChar::Read(Buffer const *, LyXLex & lex)
+void InsetSpecialChar::read(Buffer const *, LyXLex & lex)
 {    
        lex.nextToken();
        string const command = lex.GetString();
@@ -183,7 +183,7 @@ void InsetSpecialChar::Read(Buffer const *, LyXLex & lex)
 }
 
 
-int InsetSpecialChar::Latex(Buffer const *, ostream & os, bool /*fragile*/,
+int InsetSpecialChar::latex(Buffer const *, ostream & os, bool /*fragile*/,
                            bool free_space) const
 {
        switch (kind) {
@@ -196,7 +196,8 @@ int InsetSpecialChar::Latex(Buffer const *, ostream & os, bool /*fragile*/,
        return 0;
 }
 
-int InsetSpecialChar::Ascii(Buffer const *, ostream & os, int) const
+
+int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
 {
        switch (kind) {
        case HYPHENATION:                       break;
@@ -209,25 +210,25 @@ int InsetSpecialChar::Ascii(Buffer const *, ostream & os, int) const
 }
 
 
-int InsetSpecialChar::Linuxdoc(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-int InsetSpecialChar::DocBook(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::docBook(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-Inset * InsetSpecialChar::Clone(Buffer const &) const
+Inset * InsetSpecialChar::clone(Buffer const &) const
 {
        return new InsetSpecialChar(kind);
 }
 
 
-void InsetSpecialChar::Validate(LaTeXFeatures & features) const
+void InsetSpecialChar::validate(LaTeXFeatures & features) const
 {
        if (kind == MENU_SEPARATOR) {
                features.lyxarrow = true;
index 74487bb735a50ef775b27ae4cc1889fa95bf031f..05fb3ecf38841b03d6b04e7e998bdccfcfa2614b 100644 (file)
@@ -52,32 +52,32 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        /// Will not be used when lyxf3
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        /// 
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///  
-       Inset::Code LyxCode() const
+       Inset::Code lyxCode() const
        {
                return Inset::SPECIALCHAR_CODE;
        }
        /// We don't need \begin_inset and \end_inset
-       bool DirectWrite() const 
+       bool directWrite() const 
        {
                return true;
        };
        ///
-       void Validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const;
 private:
        /// And which kind is this?
        Kind kind;
index 0278bb7e60e59023043d38a4df811a62e3fd181c..e74786dcf9dd8a38464beb299981ee7e66bdde23 100644 (file)
@@ -55,14 +55,14 @@ const int ADD_TO_TABULAR_WIDTH = 2;
 LyXTabular * paste_tabular = 0;
 
 
-struct tabular_features {
+struct TabularFeature {
        LyXTabular::Feature action;
        string feature;
 };
 
 //tabular_features * tabularFeatures = 0;
 
-tabular_features tabularFeatures[] =
+TabularFeature tabularFeature[] =
 {
        { LyXTabular::APPEND_ROW, "append-row" },
        { LyXTabular::APPEND_COLUMN, "append-column" },
@@ -153,29 +153,26 @@ InsetTabular::InsetTabular(InsetTabular const & tab, Buffer const & buf)
 
 InsetTabular::~InsetTabular()
 {
-       //delete tabular;
        hideDialog();
 }
 
 
-Inset * InsetTabular::Clone(Buffer const & buf) const
+Inset * InsetTabular::clone(Buffer const & buf) const
 {
        InsetTabular * t = new InsetTabular(*this, buf);
-       //delete t->tabular;
-       //t->tabular = tabular->Clone(t);
-       t->tabular.reset(tabular->Clone(t));
+       t->tabular.reset(tabular->clone(t));
        return t;
 }
 
 
-void InsetTabular::Write(Buffer const * buf, ostream & os) const
+void InsetTabular::write(Buffer const * buf, ostream & os) const
 {
        os << " Tabular" << endl;
        tabular->Write(buf, os);
 }
 
 
-void InsetTabular::Read(Buffer const * buf, LyXLex & lex)
+void InsetTabular::read(Buffer const * buf, LyXLex & lex)
 {
        bool const old_format = (lex.GetString() == "\\LyXTable");
 
@@ -291,11 +288,11 @@ void InsetTabular::draw(BufferView * bv, LyXFont const & font, int baseline,
                                if (first_visible_cell < 0)
                                        first_visible_cell = cell;
                                if (hasSelection())
-                                       DrawCellSelection(pain, nx, baseline, i, j, cell);
+                                       drawCellSelection(pain, nx, baseline, i, j, cell);
                                
                                tabular->GetCellInset(cell)->draw(bv, font, baseline, cx,
                                                                                                  cleared);
-                               DrawCellLines(pain, nx, baseline, i, cell);
+                               drawCellLines(pain, nx, baseline, i, cell);
                                nx += tabular->GetWidthOfColumn(cell);
                                ++cell;
                        }
@@ -395,7 +392,7 @@ void InsetTabular::draw(BufferView * bv, LyXFont const & font, int baseline,
 }
 
 
-void InsetTabular::DrawCellLines(Painter & pain, int x, int baseline,
+void InsetTabular::drawCellLines(Painter & pain, int x, int baseline,
                                 int row, int cell) const
 {
        int x2 = x + tabular->GetWidthOfColumn(cell);
@@ -430,7 +427,7 @@ void InsetTabular::DrawCellLines(Painter & pain, int x, int baseline,
 }
 
 
-void InsetTabular::DrawCellSelection(Painter & pain, int x, int baseline,
+void InsetTabular::drawCellSelection(Painter & pain, int x, int baseline,
                                     int row, int column, int cell) const
 {
        int cs = tabular->column_of_cell(sel_cell_start);
@@ -483,15 +480,15 @@ void InsetTabular::update(BufferView * bv, LyXFont const & font, bool reinit)
 }
 
 
-string const InsetTabular::EditMessage() const
+string const InsetTabular::editMessage() const
 {
        return _("Opened Tabular Inset");
 }
 
 
-void InsetTabular::Edit(BufferView * bv, int x, int y, unsigned int button)
+void InsetTabular::edit(BufferView * bv, int x, int y, unsigned int button)
 {
-       UpdatableInset::Edit(bv, x, y, button);
+       UpdatableInset::edit(bv, x, y, button);
        
        if (!bv->lockInset(this)) {
                lyxerr[Debug::INSETS] << "InsetTabular::Cannot lock inset" << endl;
@@ -504,21 +501,21 @@ void InsetTabular::Edit(BufferView * bv, int x, int y, unsigned int button)
        setPos(bv, x, y);
        sel_cell_start = sel_cell_end = actcell;
        bv->text->finishUndo();
-       if (InsetHit(bv, x, y) && (button != 3)) {
-               ActivateCellInsetAbs(bv, x, y, button);
+       if (insetHit(bv, x, y) && (button != 3)) {
+               activateCellInsetAbs(bv, x, y, button);
        }
 //    UpdateLocal(bv, NONE, false);
 //    bv->getOwner()->getPopups().updateFormTabular();
 }
 
 
-void InsetTabular::InsetUnlock(BufferView * bv)
+void InsetTabular::insetUnlock(BufferView * bv)
 {
        if (the_locking_inset) {
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
                the_locking_inset = 0;
        }
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        no_selection = false;
        oldcell = -1;
        locked = false;
@@ -527,12 +524,12 @@ void InsetTabular::InsetUnlock(BufferView * bv)
                if (scroll(false)) {
                        scroll(bv, 0.0F);
                }
-               UpdateLocal(bv, FULL, false);
+               updateLocal(bv, FULL, false);
        }
 }
 
 
-void InsetTabular::UpdateLocal(BufferView * bv, UpdateCodes what,
+void InsetTabular::updateLocal(BufferView * bv, UpdateCodes what,
                               bool mark_dirty) const
 {
        if (need_update < what) // only set this if it has greater update
@@ -548,7 +545,7 @@ void InsetTabular::UpdateLocal(BufferView * bv, UpdateCodes what,
 }
 
 
-bool InsetTabular::LockInsetInInset(BufferView * bv, UpdatableInset * inset)
+bool InsetTabular::lockInsetInInset(BufferView * bv, UpdatableInset * inset)
 {
        lyxerr[Debug::INSETS] << "InsetTabular::LockInsetInInset("
                              << inset << "): ";
@@ -569,20 +566,20 @@ bool InsetTabular::LockInsetInInset(BufferView * bv, UpdatableInset * inset)
                inset_y = cursor.y();
        } else if (the_locking_inset) {
                lyxerr[Debug::INSETS] << "MAYBE" << endl;
-               return the_locking_inset->LockInsetInInset(bv, inset);
+               return the_locking_inset->lockInsetInInset(bv, inset);
        }
        lyxerr[Debug::INSETS] << "NOT OK" << endl;
        return false;
 }
 
 
-bool InsetTabular::UnlockInsetInInset(BufferView * bv, UpdatableInset * inset,
+bool InsetTabular::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                                      bool lr)
 {
        if (!the_locking_inset)
                return false;
        if (the_locking_inset == inset) {
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
                the_locking_inset = 0;
 #ifdef WITH_WARNINGS
 #warning fix scrolling when cellinset has requested a scroll (Jug)!!!
@@ -591,13 +588,13 @@ bool InsetTabular::UnlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                if (scroll(false))
                        scroll(bv, 0.0F);
 #endif
-               UpdateLocal(bv, CELL, false);
-               ShowInsetCursor(bv, false);
+               updateLocal(bv, CELL, false);
+               showInsetCursor(bv, false);
                return true;
        }
-       if (the_locking_inset->UnlockInsetInInset(bv, inset, lr)) {
-               if (inset->LyxCode() == TABULAR_CODE &&
-                   !the_locking_inset->GetFirstLockingInsetOfType(TABULAR_CODE)) {
+       if (the_locking_inset->unlockInsetInInset(bv, inset, lr)) {
+               if (inset->lyxCode() == TABULAR_CODE &&
+                   !the_locking_inset->getFirstLockingInsetOfType(TABULAR_CODE)) {
                        bv->owner()->getDialogs()->updateTabular(this);
                        oldcell = actcell;
                }
@@ -607,60 +604,60 @@ bool InsetTabular::UnlockInsetInInset(BufferView * bv, UpdatableInset * inset,
 }
 
 
-bool InsetTabular::UpdateInsetInInset(BufferView * bv, Inset * inset)
+bool InsetTabular::updateInsetInInset(BufferView * bv, Inset * inset)
 {
        if (!the_locking_inset)
                return false;
        if (the_locking_inset != inset) {
-               if (!the_locking_inset->UpdateInsetInInset(bv, inset))
+               if (!the_locking_inset->updateInsetInInset(bv, inset))
                        return false;
        }
-       UpdateLocal(bv, CELL, false);
+       updateLocal(bv, CELL, false);
        return true;
 }
 
 
-unsigned int InsetTabular::InsetInInsetY()
+unsigned int InsetTabular::insetInInsetY()
 {
        if (!the_locking_inset)
                return 0;
        
-       return inset_y + the_locking_inset->InsetInInsetY();
+       return inset_y + the_locking_inset->insetInInsetY();
 }
 
 
-UpdatableInset * InsetTabular::GetLockingInset()
+UpdatableInset * InsetTabular::getLockingInset()
 {
-       return the_locking_inset ? the_locking_inset->GetLockingInset() : this;
+       return the_locking_inset ? the_locking_inset->getLockingInset() : this;
 }
 
 
-UpdatableInset * InsetTabular::GetFirstLockingInsetOfType(Inset::Code c)
+UpdatableInset * InsetTabular::getFirstLockingInsetOfType(Inset::Code c)
 {
-       if (c == LyxCode())
+       if (c == lyxCode())
                return this;
        if (the_locking_inset)
-               return the_locking_inset->GetFirstLockingInsetOfType(c);
+               return the_locking_inset->getFirstLockingInsetOfType(c);
        return 0;
 }
 
 
-bool InsetTabular::InsertInset(BufferView * bv, Inset * inset)
+bool InsetTabular::insertInset(BufferView * bv, Inset * inset)
 {
        if (the_locking_inset)
-               return the_locking_inset->InsertInset(bv, inset);
+               return the_locking_inset->insertInset(bv, inset);
        return false;
 }
 
 
-void InsetTabular::InsetButtonPress(BufferView * bv, int x, int y, int button)
+void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
 {
        if (hasSelection() && (button == 3))
                return;
 
        if (hasSelection()) {
                clearSelection();
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
        }
 
        no_selection = false;
@@ -668,56 +665,56 @@ void InsetTabular::InsetButtonPress(BufferView * bv, int x, int y, int button)
        int const ocell = actcell;
        int const orow = actrow;
 
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        setPos(bv, x, y);
        if (actrow != orow)
-               UpdateLocal(bv, NONE, false);
+               updateLocal(bv, NONE, false);
        sel_cell_start = sel_cell_end = actcell;
        if (button == 3) {
                if ((ocell != actcell) && the_locking_inset) {
-                       the_locking_inset->InsetUnlock(bv);
+                       the_locking_inset->insetUnlock(bv);
                        the_locking_inset = 0;
                }
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
                return;
        }
 
-       bool const inset_hit = InsetHit(bv, x, y);
+       bool const inset_hit = insetHit(bv, x, y);
 
        if ((ocell == actcell) && the_locking_inset && inset_hit) {
                resetPos(bv);
-               the_locking_inset->InsetButtonPress(bv,
+               the_locking_inset->insetButtonPress(bv,
                                                    x - inset_x, y - inset_y,
                                                    button);
                return;
        } else if (the_locking_inset) {
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
        }
        the_locking_inset = 0;
        if (button == 2) {
-               LocalDispatch(bv, LFUN_PASTESELECTION, "paragraph");
+               localDispatch(bv, LFUN_PASTESELECTION, "paragraph");
                return;
        }
        if (inset_hit && bv->theLockingInset()) {
-               if (ActivateCellInsetAbs(bv, x, y, button))
-                       the_locking_inset->InsetButtonPress(bv,
+               if (activateCellInsetAbs(bv, x, y, button))
+                       the_locking_inset->insetButtonPress(bv,
                                                            x - inset_x,
                                                            y - inset_y,
                                                            button);
                return;
        }
-       ShowInsetCursor(bv);
+       showInsetCursor(bv);
 }
 
 
-void InsetTabular::InsetButtonRelease(BufferView * bv,
+void InsetTabular::insetButtonRelease(BufferView * bv,
                                      int x, int y, int button)
 {
        if (button == 3) {
                if (the_locking_inset) {
                        UpdatableInset * i;
-                       if ((i=the_locking_inset->GetFirstLockingInsetOfType(TABULAR_CODE))) {
-                               i->InsetButtonRelease(bv, x, y, button);
+                       if ((i = the_locking_inset->getFirstLockingInsetOfType(TABULAR_CODE))) {
+                               i->insetButtonRelease(bv, x, y, button);
                                return;
                        }
                }
@@ -725,7 +722,7 @@ void InsetTabular::InsetButtonRelease(BufferView * bv,
                return;
        }
        if (the_locking_inset) {
-               the_locking_inset->InsetButtonRelease(bv,
+               the_locking_inset->insetButtonRelease(bv,
                                                      x - inset_x, y - inset_y,
                                                      button);
                return;
@@ -734,40 +731,40 @@ void InsetTabular::InsetButtonRelease(BufferView * bv,
 }
 
 
-void InsetTabular::InsetMotionNotify(BufferView * bv, int x, int y, int button)
+void InsetTabular::insetMotionNotify(BufferView * bv, int x, int y, int button)
 {
        if (the_locking_inset) {
-               the_locking_inset->InsetMotionNotify(bv,
+               the_locking_inset->insetMotionNotify(bv,
                                                     x - inset_x,
                                                     y - inset_y,
                                                     button);
                return;
        }
        if (!no_selection) {
-               HideInsetCursor(bv);
+               hideInsetCursor(bv);
                int const old_cell = actcell;
                
                setPos(bv, x, y);
                sel_cell_end = actcell;
                if (sel_cell_end != old_cell)
-                       UpdateLocal(bv, SELECTION, false);
-               ShowInsetCursor(bv);
+                       updateLocal(bv, SELECTION, false);
+               showInsetCursor(bv);
        }
        no_selection = false;
 }
 
 
-void InsetTabular::InsetKeyPress(XKeyEvent * xke)
+void InsetTabular::insetKeyPress(XKeyEvent * xke)
 {
        if (the_locking_inset) {
-               the_locking_inset->InsetKeyPress(xke);
+               the_locking_inset->insetKeyPress(xke);
                return;
        }
 }
 
 
 UpdatableInset::RESULT
-InsetTabular::LocalDispatch(BufferView * bv,
+InsetTabular::localDispatch(BufferView * bv,
                            kb_action action,
                            string const & arg)
 {
@@ -776,7 +773,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
        old_locking_inset = the_locking_inset;
        no_selection = false;
        UpdatableInset::RESULT result =
-               UpdatableInset::LocalDispatch(bv, action, arg);
+               UpdatableInset::localDispatch(bv, action, arg);
        if (result == DISPATCHED || result == DISPATCHED_NOUPDATE) {
                resetPos(bv);
                return result;
@@ -793,11 +790,11 @@ InsetTabular::LocalDispatch(BufferView * bv,
        case LFUN_SHIFT_TAB:
        case LFUN_TAB:
        {
-               if (GetFirstLockingInsetOfType(Inset::TABULAR_CODE) != this)
+               if (getFirstLockingInsetOfType(Inset::TABULAR_CODE) != this)
                        break;
-               HideInsetCursor(bv);
+               hideInsetCursor(bv);
                if (the_locking_inset) {
-                       UnlockInsetInInset(bv, the_locking_inset);
+                       unlockInsetInInset(bv, the_locking_inset);
                        the_locking_inset = 0;
                }
                if (action == LFUN_TAB)
@@ -806,9 +803,9 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        movePrevCell(bv, old_locking_inset != 0);
                sel_cell_start = sel_cell_end = actcell;
                if (hs)
-                       UpdateLocal(bv, SELECTION, false);
+                       updateLocal(bv, SELECTION, false);
                if (!the_locking_inset) {
-                       ShowInsetCursor(bv);
+                       showInsetCursor(bv);
                        return DISPATCHED_NOUPDATE;
                }
                return result;
@@ -819,26 +816,26 @@ InsetTabular::LocalDispatch(BufferView * bv,
        }
 
        if (the_locking_inset) {
-               result=the_locking_inset->LocalDispatch(bv, action, arg);
+               result = the_locking_inset->localDispatch(bv, action, arg);
                if (result == DISPATCHED_NOUPDATE) {
                        int sc = scroll();
                        resetPos(bv);
                        if (sc != scroll()) { // inset has been scrolled
-                               the_locking_inset->ToggleInsetCursor(bv);
-                               UpdateLocal(bv, FULL, false);
-                               the_locking_inset->ToggleInsetCursor(bv);
+                               the_locking_inset->toggleInsetCursor(bv);
+                               updateLocal(bv, FULL, false);
+                               the_locking_inset->toggleInsetCursor(bv);
                        }
                        return result;
                } else if (result == DISPATCHED) {
-                       the_locking_inset->ToggleInsetCursor(bv);
-                       UpdateLocal(bv, CELL, false);
-                       the_locking_inset->ToggleInsetCursor(bv);
+                       the_locking_inset->toggleInsetCursor(bv);
+                       updateLocal(bv, CELL, false);
+                       the_locking_inset->toggleInsetCursor(bv);
                        return result;
                } else if (result == FINISHED) {
                }
        }
 
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        result=DISPATCHED;
        switch (action) {
                // --- Cursor Movements ----------------------------------
@@ -847,26 +844,26 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        break;
                moveRight(bv, false);
                sel_cell_end = actcell;
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_RIGHT:
                result = moveRight(bv);
                sel_cell_start = sel_cell_end = actcell;
                if (hs)
-                       UpdateLocal(bv, SELECTION, false);
+                       updateLocal(bv, SELECTION, false);
                break;
        case LFUN_LEFTSEL:
                if (tabular->IsFirstCellInRow(actcell))
                        break;
                moveLeft(bv, false);
                sel_cell_end = actcell;
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_LEFT:
                result = moveLeft(bv);
                sel_cell_start = sel_cell_end = actcell;
                if (hs)
-                       UpdateLocal(bv, SELECTION, false);
+                       updateLocal(bv, SELECTION, false);
                break;
        case LFUN_DOWNSEL:
        {
@@ -877,14 +874,14 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        sel_cell_end = tabular->GetCellBelow(sel_cell_end);
                else
                        sel_cell_end = tabular->GetLastCellBelow(sel_cell_end);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
        }
        break;
        case LFUN_DOWN:
                result = moveDown(bv, old_locking_inset != 0);
                sel_cell_start = sel_cell_end = actcell;
                if (hs)
-                       UpdateLocal(bv, SELECTION, false);
+                       updateLocal(bv, SELECTION, false);
                break;
        case LFUN_UPSEL:
        {
@@ -895,43 +892,43 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        sel_cell_end = tabular->GetCellAbove(sel_cell_end);
                else
                        sel_cell_end = tabular->GetLastCellAbove(sel_cell_end);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
        }
        break;
        case LFUN_UP:
                result = moveUp(bv, old_locking_inset != 0);
                sel_cell_start = sel_cell_end = actcell;
                if (hs)
-                       UpdateLocal(bv, SELECTION, false);
+                       updateLocal(bv, SELECTION, false);
                break;
        case LFUN_NEXT: {
                int column = actcol;
                if (the_locking_inset) {
-                       UnlockInsetInInset(bv, the_locking_inset);
+                       unlockInsetInInset(bv, the_locking_inset);
                        the_locking_inset = 0;
                }
                if (bv->text->first + bv->painter().paperHeight() <
                    (top_baseline + tabular->GetHeightOfTabular()))
                        {
                                bv->scrollCB(bv->text->first + bv->painter().paperHeight());
-                               UpdateLocal(bv, FULL, false);
+                               updateLocal(bv, FULL, false);
                                actcell = tabular->GetCellBelow(first_visible_cell) + column;
                        } else {
                                actcell = tabular->GetFirstCellInRow(tabular->rows() - 1) + column;
                        }
                resetPos(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        }
        case LFUN_PRIOR: {
                int column = actcol;
                if (the_locking_inset) {
-                       UnlockInsetInInset(bv, the_locking_inset);
+                       unlockInsetInInset(bv, the_locking_inset);
                        the_locking_inset = 0;
                }
                if (top_baseline < 0) {
                        bv->scrollCB(bv->text->first - bv->painter().paperHeight());
-                       UpdateLocal(bv, FULL, false);
+                       updateLocal(bv, FULL, false);
                        if (top_baseline > 0)
                                actcell = column;
                        else
@@ -940,7 +937,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        actcell = column;
                }
                resetPos(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        }
        case LFUN_BACKSPACE:
@@ -957,7 +954,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
        }
        break;
        case LFUN_TABULAR_FEATURE:
-               if (!TabularFeatures(bv, arg))
+               if (!tabularFeatures(bv, arg))
                        result = UNDISPATCHED;
                break;
        case LFUN_CUT:
@@ -967,7 +964,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
                                  bv->text->cursor.par()->previous(),
                                  bv->text->cursor.par()->next());
                cutSelection();
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LFUN_COPY:
                if (!hasSelection())
@@ -1016,12 +1013,12 @@ InsetTabular::LocalDispatch(BufferView * bv,
                                        break;
                                switch(clip[p]) {
                                case '\t':
-                                       paste_tabular->GetCellInset(cell)->SetText(clip.substr(op, p-op));
+                                       paste_tabular->GetCellInset(cell)->setText(clip.substr(op, p-op));
                                        ++cols;
                                        ++cell;
                                        break;
                                case '\n':
-                                       paste_tabular->GetCellInset(cell)->SetText(clip.substr(op, p-op));
+                                       paste_tabular->GetCellInset(cell)->setText(clip.substr(op, p-op));
                                        while(cols++ < maxCols)
                                                ++cell;
                                        cols = 0;
@@ -1032,7 +1029,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
                        }
                        // check for the last cell if there is no trailing '\n'
                        if ((cell < cells) && (op < len))
-                               paste_tabular->GetCellInset(cell)->SetText(clip.substr(op, len-op));
+                               paste_tabular->GetCellInset(cell)->setText(clip.substr(op, len-op));
                } else {
                        // so that the clipboard is used and it goes on
                        // to default
@@ -1047,7 +1044,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
                                          bv->text->cursor.par()->previous(),
                                          bv->text->cursor.par()->next());
                        pasteSelection(bv);
-                       UpdateLocal(bv, INIT, true);
+                       updateLocal(bv, INIT, true);
                        break;
                }
                // ATTENTION: the function above has to be PASTE and PASTESELECTION!!!
@@ -1058,21 +1055,21 @@ InsetTabular::LocalDispatch(BufferView * bv,
                if (the_locking_inset)
                        break;
                nodraw(true);
-               if (ActivateCellInset(bv)) {
+               if (activateCellInset(bv)) {
                        // reset need_update setted in above function!
                        need_update = NONE;
-                       result = the_locking_inset->LocalDispatch(bv, action, arg);
+                       result = the_locking_inset->localDispatch(bv, action, arg);
                        if ((result == UNDISPATCHED) || (result == FINISHED)) {
-                               UnlockInsetInInset(bv, the_locking_inset);
+                               unlockInsetInInset(bv, the_locking_inset);
                                nodraw(false);
                                the_locking_inset = 0;
                                // we need to update if this was requested before
-                               UpdateLocal(bv, NONE, false);
+                               updateLocal(bv, NONE, false);
                                return UNDISPATCHED;
                        }
                        nodraw(false);
 //                     the_locking_inset->ToggleInsetCursor(bv);
-                       UpdateLocal(bv, CELL, false);
+                       updateLocal(bv, CELL, false);
 //                     the_locking_inset->ToggleInsetCursor(bv);
                        return result;
                }
@@ -1080,7 +1077,7 @@ InsetTabular::LocalDispatch(BufferView * bv,
        }
        if (result!=FINISHED) {
                if (!the_locking_inset) {
-                       ShowInsetCursor(bv);
+                       showInsetCursor(bv);
                }
        } else
                bv->unlockInset(this);
@@ -1088,33 +1085,33 @@ InsetTabular::LocalDispatch(BufferView * bv,
 }
 
 
-int InsetTabular::Latex(Buffer const * buf, ostream & os,
+int InsetTabular::latex(Buffer const * buf, ostream & os,
                        bool fragile, bool fp) const
 {
        return tabular->Latex(buf, os, fragile, fp);
 }
 
 
-int InsetTabular::Ascii(Buffer const * buf, ostream & os, int) const
+int InsetTabular::ascii(Buffer const * buf, ostream & os, int) const
 {
        // This should be changed to a real ascii export
        return tabular->Ascii(buf, os);
 }
 
 
-int InsetTabular::Linuxdoc(Buffer const *, ostream &) const
+int InsetTabular::linuxdoc(Buffer const *, ostream &) const
 {
        return 0;
 }
 
 
-int InsetTabular::DocBook(Buffer const * buf, ostream & os) const
+int InsetTabular::docBook(Buffer const * buf, ostream & os) const
 {
        return tabular->DocBook(buf,os);
 }
 
 
-void InsetTabular::Validate(LaTeXFeatures & features) const
+void InsetTabular::validate(LaTeXFeatures & features) const
 {
        tabular->Validate(features);
 }
@@ -1169,7 +1166,7 @@ bool InsetTabular::calculate_dimensions_of_cells(BufferView * bv,
 }
 
 
-void InsetTabular::GetCursorPos(BufferView *,
+void InsetTabular::getCursorPos(BufferView *,
                                int & x, int & y) const
 {
        x = cursor.x() - top_x;
@@ -1177,10 +1174,10 @@ void InsetTabular::GetCursorPos(BufferView *,
 }
 
 
-void InsetTabular::ToggleInsetCursor(BufferView * bv)
+void InsetTabular::toggleInsetCursor(BufferView * bv)
 {
        if (the_locking_inset) {
-               the_locking_inset->ToggleInsetCursor(bv);
+               the_locking_inset->toggleInsetCursor(bv);
                return;
        }
        
@@ -1197,7 +1194,7 @@ void InsetTabular::ToggleInsetCursor(BufferView * bv)
 }
 
 
-void InsetTabular::ShowInsetCursor(BufferView * bv, bool show)
+void InsetTabular::showInsetCursor(BufferView * bv, bool show)
 {
        if (!isCursorVisible()) {
                LyXFont font; // = GetFont(par, cursor.pos);
@@ -1212,7 +1209,7 @@ void InsetTabular::ShowInsetCursor(BufferView * bv, bool show)
 }
 
 
-void InsetTabular::HideInsetCursor(BufferView * bv)
+void InsetTabular::hideInsetCursor(BufferView * bv)
 {
        if (isCursorVisible()) {
                bv->hideLockedInsetCursor();
@@ -1304,37 +1301,37 @@ void InsetTabular::resetPos(BufferView * bv) const
                (tabular->GetWidthOfTabular() < bv->workWidth()-20))
        {
                scroll(bv, 0.0F);
-               UpdateLocal(bv, FULL, false);
+               updateLocal(bv, FULL, false);
        } else if (the_locking_inset &&
                 (tabular->GetWidthOfColumn(actcell) > bv->workWidth()-20))
        {
                int xx = cursor.x() - offset + bv->text->getRealCursorX(bv);
                if (xx > (bv->workWidth()-20)) {
                        scroll(bv, -(xx - bv->workWidth() + 60));
-                       UpdateLocal(bv, FULL, false);
+                       updateLocal(bv, FULL, false);
                } else if (xx < 20) {
                        if (xx < 0)
                                xx = -xx + 60;
                        else
                                xx = 60;
                        scroll(bv, xx);
-                       UpdateLocal(bv, FULL, false);
+                       updateLocal(bv, FULL, false);
                }
        } else if ((cursor.x() - offset) > 20 &&
                   (cursor.x() - offset + tabular->GetWidthOfColumn(actcell))
                   > (bv->workWidth() - 20)) {
                scroll(bv, -tabular->GetWidthOfColumn(actcell) - 20);
-               UpdateLocal(bv, FULL, false);
+               updateLocal(bv, FULL, false);
        } else if ((cursor.x() - offset) < 20) {
                scroll(bv, 20 - cursor.x() + offset);
-               UpdateLocal(bv, FULL, false);
+               updateLocal(bv, FULL, false);
        } else if (scroll(false) && top_x > 20 &&
                   (top_x + tabular->GetWidthOfTabular()) > (bv->workWidth() - 20)) {
                scroll(bv, old_x - cursor.x());
-               UpdateLocal(bv, FULL, false);
+               updateLocal(bv, FULL, false);
        }
        if ((!the_locking_inset ||
-            !the_locking_inset->GetFirstLockingInsetOfType(TABULAR_CODE)) &&
+            !the_locking_inset->getFirstLockingInsetOfType(TABULAR_CODE)) &&
            actcell != oldcell) {
                InsetTabular * inset = const_cast<InsetTabular *>(this);
                bv->owner()->getDialogs()->updateTabular(inset);
@@ -1346,14 +1343,14 @@ void InsetTabular::resetPos(BufferView * bv) const
 UpdatableInset::RESULT InsetTabular::moveRight(BufferView * bv, bool lock)
 {
        if (lock && !old_locking_inset) {
-               if (ActivateCellInset(bv))
+               if (activateCellInset(bv))
                        return DISPATCHED;
        } else {
                bool moved = isRightToLeft(bv)
                        ? movePrevCell(bv) : moveNextCell(bv);
                if (!moved)
                        return FINISHED;
-               if (lock && ActivateCellInset(bv))
+               if (lock && activateCellInset(bv))
                        return DISPATCHED;
        }
        resetPos(bv);
@@ -1367,7 +1364,7 @@ UpdatableInset::RESULT InsetTabular::moveLeft(BufferView * bv, bool lock)
        if (!moved)
                return FINISHED;
        if (lock) {       // behind the inset
-               if (ActivateCellInset(bv, 0, 0, 0, true))
+               if (activateCellInset(bv, 0, 0, 0, true))
                        return DISPATCHED;
        }
        resetPos(bv);
@@ -1386,10 +1383,10 @@ UpdatableInset::RESULT InsetTabular::moveUp(BufferView * bv, bool lock)
                int x = 0;
                int y = 0;
                if (old_locking_inset) {
-                       old_locking_inset->GetCursorPos(bv, x, y);
+                       old_locking_inset->getCursorPos(bv, x, y);
                        x -= cursor.x() + tabular->GetBeginningOfTextInCell(actcell);
                }
-               if (ActivateCellInset(bv, x, 0))
+               if (activateCellInset(bv, x, 0))
                        return DISPATCHED;
        }
        return DISPATCHED_NOUPDATE;
@@ -1407,10 +1404,10 @@ UpdatableInset::RESULT InsetTabular::moveDown(BufferView * bv, bool lock)
                int x = 0;
                int y = 0;
                if (old_locking_inset) {
-                       old_locking_inset->GetCursorPos(bv, x, y);
+                       old_locking_inset->getCursorPos(bv, x, y);
                        x -= cursor.x() + tabular->GetBeginningOfTextInCell(actcell);
                }
-               if (ActivateCellInset(bv, x, 0))
+               if (activateCellInset(bv, x, 0))
                        return DISPATCHED;
        }
        return DISPATCHED_NOUPDATE;
@@ -1439,7 +1436,7 @@ bool InsetTabular::moveNextCell(BufferView * bv, bool lock)
        if (lock) {
                bool rtl = tabular->GetCellInset(actcell)->par->
                        isRightToLeftPar(bv->buffer()->params);
-               ActivateCellInset(bv, 0, 0, 0, !rtl);
+               activateCellInset(bv, 0, 0, 0, !rtl);
        }
        resetPos(bv);
        return true;
@@ -1468,7 +1465,7 @@ bool InsetTabular::movePrevCell(BufferView * bv, bool lock)
        if (lock) {
                bool rtl = tabular->GetCellInset(actcell)->par->
                        isRightToLeftPar(bv->buffer()->params);
-               ActivateCellInset(bv, 0, 0, 0, !rtl);
+               activateCellInset(bv, 0, 0, 0, !rtl);
        }
        resetPos(bv);
        return true;
@@ -1477,11 +1474,12 @@ bool InsetTabular::movePrevCell(BufferView * bv, bool lock)
 
 bool InsetTabular::Delete()
 {
+#warning Is this func correctly named? Or should it be "deletable"?
        return true;
 }
 
 
-void InsetTabular::SetFont(BufferView * bv, LyXFont const & font, bool tall,
+void InsetTabular::setFont(BufferView * bv, LyXFont const & font, bool tall,
                            bool selectall)
 {
        if (selectall) {
@@ -1502,32 +1500,32 @@ void InsetTabular::SetFont(BufferView * bv, LyXFont const & font, bool tall,
                int sel_col_start;
                int sel_col_end;
                getSelection(sel_row_start, sel_row_end, sel_col_start, sel_col_end);
-               for(int i=sel_row_start; i <= sel_row_end; ++i) {
-                       for(int j=sel_col_start; j <= sel_col_end; ++j) {
-                               tabular->GetCellInset(i, j)->SetFont(bv, font, tall, true);
+               for(int i = sel_row_start; i <= sel_row_end; ++i) {
+                       for(int j = sel_col_start; j <= sel_col_end; ++j) {
+                               tabular->GetCellInset(i, j)->setFont(bv, font, tall, true);
                        }
                }
                if (!frozen)
                        bv->text->unFreezeUndo();
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
        }
        if (the_locking_inset)
-               the_locking_inset->SetFont(bv, font, tall);
+               the_locking_inset->setFont(bv, font, tall);
 }
 
 
-bool InsetTabular::TabularFeatures(BufferView * bv, string const & what)
+bool InsetTabular::tabularFeatures(BufferView * bv, string const & what)
 {
        LyXTabular::Feature action = LyXTabular::LAST_ACTION;
        
        int i = 0;
-       for (; tabularFeatures[i].action != LyXTabular::LAST_ACTION; ++i) {
-               string const tmp = tabularFeatures[i].feature;
+       for (; tabularFeature[i].action != LyXTabular::LAST_ACTION; ++i) {
+               string const tmp = tabularFeature[i].feature;
                
                if (tmp == what.substr(0, tmp.length())) {
                        //if (!compare(tabularFeatures[i].feature.c_str(), what.c_str(),
                        //tabularFeatures[i].feature.length())) {
-                       action = tabularFeatures[i].action;
+                       action = tabularFeature[i].action;
                        break;
                }
        }
@@ -1535,18 +1533,16 @@ bool InsetTabular::TabularFeatures(BufferView * bv, string const & what)
                return false;
 
        string const val =
-               frontStrip(what.substr(tabularFeatures[i].feature.length()));
-       TabularFeatures(bv, action, val);
+               frontStrip(what.substr(tabularFeature[i].feature.length()));
+       tabularFeatures(bv, action, val);
        return true;
 }
 
 
-void InsetTabular::TabularFeatures(BufferView * bv,
+void InsetTabular::tabularFeatures(BufferView * bv,
                                   LyXTabular::Feature feature,
                                   string const & value)
 {
-       //int i;
-       //int j;
        int sel_col_start;
        int sel_col_end;
        int sel_row_start;
@@ -1554,8 +1550,6 @@ void InsetTabular::TabularFeatures(BufferView * bv,
        bool setLines = false;
        LyXAlignment setAlign = LYX_ALIGN_LEFT;
        LyXTabular::VAlignment setVAlign = LyXTabular::LYX_VALIGN_TOP;
-       //int lineSet;
-       //bool what;
 
        switch (feature) {
        case LyXTabular::M_ALIGN_LEFT:
@@ -1609,7 +1603,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                tabular->GetCellInset(tabular->GetCellNumber(i, column))->
                                        resizeLyXText(bv);
                        }
-                       UpdateLocal(bv, INIT, true);
+                       updateLocal(bv, INIT, true);
                }
        }
        break;
@@ -1622,7 +1616,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                tabular->GetCellInset(tabular->GetCellNumber(i, column))->
                                        resizeLyXText(bv);
                        }
-                       UpdateLocal(bv, INIT, true);
+                       updateLocal(bv, INIT, true);
                }
        }
        break;
@@ -1632,34 +1626,34 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                break;
        case LyXTabular::APPEND_ROW:
                // append the row into the tabular
-               UnlockInsetInInset(bv, the_locking_inset);
+               unlockInsetInInset(bv, the_locking_inset);
                tabular->AppendRow(actcell);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::APPEND_COLUMN:
                // append the column into the tabular
-               UnlockInsetInInset(bv, the_locking_inset);
+               unlockInsetInInset(bv, the_locking_inset);
                tabular->AppendColumn(actcell);
                actcell = tabular->GetCellNumber(row, column);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::DELETE_ROW:
-               UnlockInsetInInset(bv, the_locking_inset);
+               unlockInsetInInset(bv, the_locking_inset);
                tabular->DeleteRow(tabular->row_of_cell(actcell));
                if ((row+1) > tabular->rows())
                        --row;
                actcell = tabular->GetCellNumber(row, column);
                clearSelection();
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::DELETE_COLUMN:
-               UnlockInsetInInset(bv, the_locking_inset);
+               unlockInsetInInset(bv, the_locking_inset);
                tabular->DeleteColumn(tabular->column_of_cell(actcell));
                if ((column+1) > tabular->columns())
                        --column;
                actcell = tabular->GetCellNumber(row, column);
                clearSelection();
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::M_TOGGLE_LINE_TOP:
                flag = false;
@@ -1671,7 +1665,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                tabular->SetTopLine(
                                        tabular->GetCellNumber(i, j),
                                        lineSet, flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        }
        
@@ -1686,7 +1680,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                        tabular->GetCellNumber(i, j),
                                        lineSet,
                                        flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        }
        
@@ -1701,7 +1695,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                        tabular->GetCellNumber(i,j),
                                        lineSet,
                                        flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        }
        
@@ -1716,7 +1710,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                        tabular->GetCellNumber(i,j),
                                        lineSet,
                                        flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        }
        
@@ -1733,7 +1727,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                        tabular->GetCellNumber(i, j),
                                        setAlign,
                                        flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::M_VALIGN_TOP:
        case LyXTabular::M_VALIGN_BOTTOM:
@@ -1747,7 +1741,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                                tabular->SetVAlignment(
                                        tabular->GetCellNumber(i, j),
                                        setVAlign, flag);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::MULTICOLUMN:
        {
@@ -1762,10 +1756,10 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                        // check wether we are completly in a multicol
                        if (tabular->IsMultiColumn(actcell)) {
                                tabular->UnsetMultiColumn(actcell);
-                               UpdateLocal(bv, INIT, true);
+                               updateLocal(bv, INIT, true);
                        } else {
                                tabular->SetMultiColumn(actcell, 1);
-                               UpdateLocal(bv, CELL, true);
+                               updateLocal(bv, CELL, true);
                        }
                        return;
                }
@@ -1784,7 +1778,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                tabular->SetMultiColumn(s_start, s_end - s_start + 1);
                actcell = s_start;
                sel_cell_end = sel_cell_start;
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        }
        case LyXTabular::SET_ALL_LINES:
@@ -1794,15 +1788,15 @@ void InsetTabular::TabularFeatures(BufferView * bv,
                        for (int j = sel_col_start; j <= sel_col_end; ++j)
                                tabular->SetAllLines(
                                        tabular->GetCellNumber(i,j), setLines);
-               UpdateLocal(bv, INIT, true);
+               updateLocal(bv, INIT, true);
                break;
        case LyXTabular::SET_LONGTABULAR:
                tabular->SetLongTabular(true);
-               UpdateLocal(bv, INIT, true); // because this toggles displayed
+               updateLocal(bv, INIT, true); // because this toggles displayed
                break;
        case LyXTabular::UNSET_LONGTABULAR:
                tabular->SetLongTabular(false);
-               UpdateLocal(bv, INIT, true); // because this toggles displayed
+               updateLocal(bv, INIT, true); // because this toggles displayed
                break;
        case LyXTabular::SET_ROTATE_TABULAR:
                tabular->SetRotateTabular(true);
@@ -1859,7 +1853,7 @@ void InsetTabular::TabularFeatures(BufferView * bv,
 }
 
 
-bool InsetTabular::ActivateCellInset(BufferView * bv, int x, int y, int button,
+bool InsetTabular::activateCellInset(BufferView * bv, int x, int y, int button,
                                     bool behind)
 {
        UpdatableInset * inset =
@@ -1871,25 +1865,25 @@ bool InsetTabular::ActivateCellInset(BufferView * bv, int x, int y, int button,
        }
        //inset_x = cursor.x() - top_x + tabular->GetBeginningOfTextInCell(actcell);
        //inset_y = cursor.y();
-       inset->Edit(bv, x,  y, button);
+       inset->edit(bv, x,  y, button);
        if (!the_locking_inset)
                return false;
-       UpdateLocal(bv, CELL, false);
+       updateLocal(bv, CELL, false);
        return (the_locking_inset != 0);
 }
 
 
-bool InsetTabular::ActivateCellInsetAbs(BufferView * bv, int x, int y,
+bool InsetTabular::activateCellInsetAbs(BufferView * bv, int x, int y,
                                        int button)
 {
        inset_x = cursor.x()
                - top_x + tabular->GetBeginningOfTextInCell(actcell);
        inset_y = cursor.y();
-       return ActivateCellInset(bv, x - inset_x, y - inset_y, button);
+       return activateCellInset(bv, x - inset_x, y - inset_y, button);
 }
 
 
-bool InsetTabular::InsetHit(BufferView *, int x, int) const
+bool InsetTabular::insetHit(BufferView *, int x, int) const
 {
        return (x + top_x)
                > (cursor.x() + tabular->GetBeginningOfTextInCell(actcell));
@@ -1898,7 +1892,7 @@ bool InsetTabular::InsetHit(BufferView *, int x, int) const
 
 // This returns paperWidth() if the cell-width is unlimited or the width
 // in pixels if we have a pwidth for this cell.
-int InsetTabular::GetMaxWidthOfCell(BufferView * bv, int cell) const
+int InsetTabular::getMaxWidthOfCell(BufferView * bv, int cell) const
 {
        string const s = tabular->GetPWidth(cell);
        
@@ -1935,7 +1929,7 @@ int InsetTabular::getMaxWidth(BufferView * bv,
                        return -1;
        }
        
-       int w = GetMaxWidthOfCell(bv, cell);
+       int w = getMaxWidthOfCell(bv, cell);
        if (w > 0) {
                // because the inset then subtracts it's top_x and owner->x()
                w += (inset->x() - top_x);
@@ -1973,22 +1967,22 @@ LyXText * InsetTabular::getLyXText(BufferView const * bv,
 }
 
 
-bool InsetTabular::ShowInsetDialog(BufferView * bv) const
+bool InsetTabular::showInsetDialog(BufferView * bv) const
 {
-       if (!the_locking_inset || !the_locking_inset->ShowInsetDialog(bv))
+       if (!the_locking_inset || !the_locking_inset->showInsetDialog(bv))
                bv->owner()->getDialogs()
                        ->showTabular(const_cast<InsetTabular *>(this));
        return true;
 }
 
 
-void InsetTabular::OpenLayoutDialog(BufferView * bv) const
+void InsetTabular::openLayoutDialog(BufferView * bv) const
 {
        if (the_locking_inset) {
                InsetTabular * i = static_cast<InsetTabular *>
-                       (the_locking_inset->GetFirstLockingInsetOfType(TABULAR_CODE));
+                       (the_locking_inset->getFirstLockingInsetOfType(TABULAR_CODE));
                if (i) {
-                       i->OpenLayoutDialog(bv);
+                       i->openLayoutDialog(bv);
                        return;
                }
        }
@@ -2009,19 +2003,19 @@ func_status::value_type InsetTabular::getStatus(string const & what) const
        func_status::value_type status = func_status::OK;
        
        int i = 0;
-       for (; tabularFeatures[i].action != LyXTabular::LAST_ACTION; ++i) {
-               string const tmp = tabularFeatures[i].feature;
+       for (; tabularFeature[i].action != LyXTabular::LAST_ACTION; ++i) {
+               string const tmp = tabularFeature[i].feature;
                if (tmp == what.substr(0, tmp.length())) {                  
                        //if (!compare(tabularFeatures[i].feature.c_str(), what.c_str(),
                        //   tabularFeatures[i].feature.length())) {
-                       action = tabularFeatures[i].action;
+                       action = tabularFeature[i].action;
                        break;
                }
        }
        if (action == LyXTabular::LAST_ACTION)
                return func_status::Unknown;
 
-       string const argument = frontStrip(what.substr(tabularFeatures[i].feature.length()));
+       string const argument = frontStrip(what.substr(tabularFeature[i].feature.length()));
 
        int sel_row_start;
        int sel_row_end;
index 211a191ec3d0179d7879b8b2b90f4ce28245e360..1cbc9f8c6d693811f252e9227d00052975e45cc8 100644 (file)
@@ -81,11 +81,11 @@ public:
        ///
        ~InsetTabular();
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       void Read(Buffer const *, LyXLex &);
+       void read(Buffer const *, LyXLex &);
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
@@ -97,75 +97,75 @@ public:
        ///
        void update(BufferView *, LyXFont const &, bool = false);
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       void Edit(BufferView *, int x, int y, unsigned int);
+       void edit(BufferView *, int x, int y, unsigned int);
        ///
        bool doClearArea() const;
        ///
-       void InsetUnlock(BufferView *);
+       void insetUnlock(BufferView *);
        ///
-       void UpdateLocal(BufferView *, UpdateCodes, bool mark_dirty) const;
+       void updateLocal(BufferView *, UpdateCodes, bool mark_dirty) const;
        ///
-       bool LockInsetInInset(BufferView *, UpdatableInset *);
+       bool lockInsetInInset(BufferView *, UpdatableInset *);
        ///
-       bool UnlockInsetInInset(BufferView *, UpdatableInset *,
+       bool unlockInsetInInset(BufferView *, UpdatableInset *,
                                bool lr = false);
        ///
-       bool UpdateInsetInInset(BufferView *, Inset *);
+       bool updateInsetInInset(BufferView *, Inset *);
        ///
-       unsigned int InsetInInsetY();
+       unsigned int insetInInsetY();
        ///
-       UpdatableInset * GetLockingInset();
+       UpdatableInset * getLockingInset();
        ///
-       UpdatableInset * GetFirstLockingInsetOfType(Inset::Code);
+       UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
        ///
-       bool InsertInset(BufferView *, Inset *);
+       bool insertInset(BufferView *, Inset *);
        ///
-       bool IsTextInset() const { return true; }
+       bool isTextInset() const { return true; }
        ///
        bool display() const { return tabular->IsLongTabular(); }
        ///
-       void InsetButtonRelease(BufferView *, int, int, int);
+       void insetButtonRelease(BufferView *, int, int, int);
        ///
-       void InsetButtonPress(BufferView *, int, int, int);
+       void insetButtonPress(BufferView *, int, int, int);
        ///
-       void InsetMotionNotify(BufferView *, int, int, int);
+       void insetMotionNotify(BufferView *, int, int, int);
        ///
-       void InsetKeyPress(XKeyEvent *);
+       void insetKeyPress(XKeyEvent *);
        ///
-       UpdatableInset::RESULT LocalDispatch(BufferView *, kb_action,
+       UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
                                             string const &);
        ///
-       int Latex(Buffer const *, std::ostream &, bool, bool) const;
+       int latex(Buffer const *, std::ostream &, bool, bool) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code LyxCode() const { return Inset::TABULAR_CODE; }
+       Inset::Code lyxCode() const { return Inset::TABULAR_CODE; }
        ///
-       void GetCursorPos(BufferView *, int & x, int & y) const;
+       void getCursorPos(BufferView *, int & x, int & y) const;
        ///
-       void ToggleInsetCursor(BufferView *);
+       void toggleInsetCursor(BufferView *);
        ///
-       bool TabularFeatures(BufferView * bv, string const & what);
+       bool tabularFeatures(BufferView * bv, string const & what);
        ///
-       void TabularFeatures(BufferView * bv, LyXTabular::Feature feature,
+       void tabularFeatures(BufferView * bv, LyXTabular::Feature feature,
                             string const & val = string());
        ///
-       int GetActCell() const { return actcell; }
+       int getActCell() const { return actcell; }
        ///
-       void SetFont(BufferView *, LyXFont const &, bool toggleall = false,
+       void setFont(BufferView *, LyXFont const &, bool toggleall = false,
                     bool selectall = false);
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       Buffer * BufferOwner() const { return const_cast<Buffer *>(buffer); }
+       Buffer * bufferOwner() const { return const_cast<Buffer *>(buffer); }
        ///
        LyXText * getLyXText(BufferView const *,
                             bool const recursive = false) const;
@@ -174,9 +174,9 @@ public:
        ///
        void resizeLyXText(BufferView *, bool force = false) const;
        ///
-       void OpenLayoutDialog(BufferView *) const;
+       void openLayoutDialog(BufferView *) const;
        ///
-       bool ShowInsetDialog(BufferView *) const;
+       bool showInsetDialog(BufferView *) const;
        ///
        func_status::value_type getStatus(string const & argument) const;
        ///
@@ -188,9 +188,11 @@ public:
        bool nodraw() const;
        ///
        int scroll(bool recursive=true) const;
+       ///
        void scroll(BufferView *bv, float sx) const {
                UpdatableInset::scroll(bv, sx);
        }
+       ///
        void scroll(BufferView *bv, int offset) const {
                UpdatableInset::scroll(bv, offset);
        }
@@ -198,7 +200,6 @@ public:
        //
        // Public structures and variables
        ///
-       //LyXTabular * tabular;
        boost::scoped_ptr<LyXTabular> tabular;
        ///
        SigC::Signal0<void> hideDialog;
@@ -208,15 +209,15 @@ private:
        bool calculate_dimensions_of_cells(BufferView *, LyXFont const &,
                                           bool = false) const;
        ///
-       void DrawCellLines(Painter &, int x, int baseline,
+       void drawCellLines(Painter &, int x, int baseline,
                           int row, int cell) const;
        ///
-       void DrawCellSelection(Painter &, int x, int baseline,
+       void drawCellSelection(Painter &, int x, int baseline,
                               int row, int column, int cell) const;
        ///
-       void ShowInsetCursor(BufferView *, bool show=true);
+       void showInsetCursor(BufferView *, bool show=true);
        ///
-       void HideInsetCursor(BufferView *);
+       void hideInsetCursor(BufferView *);
        ///
        void setPos(BufferView *, int x, int y) const;
        ///
@@ -231,14 +232,14 @@ private:
        bool moveNextCell(BufferView *, bool lock = false);
        ///
        bool movePrevCell(BufferView *, bool lock = false);
-       ///
+       /// Delete what?
        bool Delete();
        ///
        int getCellXPos(int cell) const;
        ///
        void resetPos(BufferView *) const;
        ///
-       void RemoveTabularRow();
+       void removeTabularRow();
        ///
        bool hasSelection() const {
                return sel_cell_start != sel_cell_end;
@@ -248,16 +249,16 @@ private:
        sel_cell_start = sel_cell_end = 0;
        }
        ///
-       bool ActivateCellInset(BufferView *, int x = 0, int y = 0,
+       bool activateCellInset(BufferView *, int x = 0, int y = 0,
                               int button = 0,
                               bool behind = false);
        ///
-       bool ActivateCellInsetAbs(BufferView *, int x = 0, int y = 0,
+       bool activateCellInsetAbs(BufferView *, int x = 0, int y = 0,
                                  int button = 0);
        ///
-       bool InsetHit(BufferView * bv, int x, int y) const;
+       bool insetHit(BufferView * bv, int x, int y) const;
        ///
-       int GetMaxWidthOfCell(BufferView * bv, int cell) const;
+       int getMaxWidthOfCell(BufferView * bv, int cell) const;
        ///
        bool hasPasteBuffer() const;
        ///
index 8b8b4e9c43525822eb419f7e2f57180682bd21b3..82f7eeba193a27f87e597fe5c0b3001cce5488e2 100644 (file)
@@ -101,7 +101,7 @@ void InsetText::init(InsetText const * ins)
        drawFrame_ = NEVER;
        xpos = 0.0;
        if (ins) {
-               SetParagraphData(ins->par);
+               setParagraphData(ins->par);
                autoBreakRows = ins->autoBreakRows;
                drawFrame_ = ins->drawFrame_;
        }
@@ -149,27 +149,27 @@ void InsetText::clear()
 }
 
 
-Inset * InsetText::Clone(Buffer const &) const
+Inset * InsetText::clone(Buffer const &) const
 {
        InsetText * t = new InsetText(*this);
        return t;
 }
 
 
-void InsetText::Write(Buffer const * buf, ostream & os) const
+void InsetText::write(Buffer const * buf, ostream & os) const
 {
        os << "Text\n";
-       WriteParagraphData(buf, os);
+       writeParagraphData(buf, os);
 }
 
 
-void InsetText::WriteParagraphData(Buffer const * buf, ostream & os) const
+void InsetText::writeParagraphData(Buffer const * buf, ostream & os) const
 {
        par->writeFile(buf, os, buf->params, 0);
 }
 
 
-void InsetText::Read(Buffer const * buf, LyXLex & lex)
+void InsetText::read(Buffer const * buf, LyXLex & lex)
 {
        string token;
        int pos = 0;
@@ -468,7 +468,7 @@ void InsetText::update(BufferView * bv, LyXFont const & font, bool reinit)
 }
 
 
-void InsetText::SetUpdateStatus(BufferView * bv, int what) const
+void InsetText::setUpdateStatus(BufferView * bv, int what) const
 {
        need_update |= what;
        if (TEXT(bv)->status == LyXText::NEED_MORE_REFRESH)
@@ -482,10 +482,10 @@ void InsetText::SetUpdateStatus(BufferView * bv, int what) const
 }
 
 
-void InsetText::UpdateLocal(BufferView * bv, int what, bool mark_dirty)
+void InsetText::updateLocal(BufferView * bv, int what, bool mark_dirty)
 {
        TEXT(bv)->fullRebreak(bv);
-       SetUpdateStatus(bv, what);
+       setUpdateStatus(bv, what);
        if ((need_update != CURSOR) || (TEXT(bv)->status != LyXText::UNCHANGED) ||
                TEXT(bv)->selection.set())
                bv->updateInset(this, mark_dirty);
@@ -497,16 +497,16 @@ void InsetText::UpdateLocal(BufferView * bv, int what, bool mark_dirty)
 }
 
 
-string const InsetText::EditMessage() const
+string const InsetText::editMessage() const
 {
        return _("Opened Text Inset");
 }
 
 
-void InsetText::Edit(BufferView * bv, int x, int y, unsigned int button)
+void InsetText::edit(BufferView * bv, int x, int y, unsigned int button)
 {
 //    par->SetInsetOwner(this);
-       UpdatableInset::Edit(bv, x, y, button);
+       UpdatableInset::edit(bv, x, y, button);
 
        if (!bv->lockInset(this)) {
                lyxerr[Debug::INSETS] << "Cannot lock inset" << endl;
@@ -524,8 +524,8 @@ void InsetText::Edit(BufferView * bv, int x, int y, unsigned int button)
                                                   y + insetAscent);
        TEXT(bv)->selection.cursor = TEXT(bv)->cursor;
        bv->text->finishUndo();
-       ShowInsetCursor(bv);
-       UpdateLocal(bv, CURSOR, false);
+       showInsetCursor(bv);
+       updateLocal(bv, CURSOR, false);
 
        // If the inset is empty set the language of the current font to the
        // language to the surronding text (if different).
@@ -534,18 +534,18 @@ void InsetText::Edit(BufferView * bv, int x, int y, unsigned int button)
        {
                LyXFont font(LyXFont::ALL_IGNORE);
                font.setLanguage(bv->getParentLanguage(this));
-               SetFont(bv, font, false);
+               setFont(bv, font, false);
        }
 }
 
 
-void InsetText::InsetUnlock(BufferView * bv)
+void InsetText::insetUnlock(BufferView * bv)
 {
        if (the_locking_inset) {
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
                the_locking_inset = 0;
        }
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        no_selection = false;
        locked = false;
        int code = CURSOR|CLEAR_FRAME;
@@ -557,11 +557,11 @@ void InsetText::InsetUnlock(BufferView * bv)
                                       ->cursor.par()->getLayout());
        else
                bv->owner()->setLayout(bv->text->cursor.par()->getLayout());
-       UpdateLocal(bv, code, false);
+       updateLocal(bv, code, false);
 }
 
 
-bool InsetText::LockInsetInInset(BufferView * bv, UpdatableInset * inset)
+bool InsetText::lockInsetInInset(BufferView * bv, UpdatableInset * inset)
 {
        lyxerr[Debug::INSETS] << "InsetText::LockInsetInInset("
                              << inset << "): ";
@@ -580,7 +580,7 @@ bool InsetText::LockInsetInInset(BufferView * bv, UpdatableInset * inset)
                TEXT(bv)->sel_cursor = TEXT(bv)->cursor;
                TEXT(bv)->UpdateInset(bv, the_locking_inset);
 #else
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
 #endif
                return true;
        } else if (the_locking_inset && (the_locking_inset == inset)) {
@@ -593,20 +593,20 @@ bool InsetText::LockInsetInInset(BufferView * bv, UpdatableInset * inset)
                }
        } else if (the_locking_inset) {
                lyxerr[Debug::INSETS] << "MAYBE" << endl;
-               return the_locking_inset->LockInsetInInset(bv, inset);
+               return the_locking_inset->lockInsetInInset(bv, inset);
        }
        lyxerr[Debug::INSETS] << "NOT OK" << endl;
        return false;
 }
 
 
-bool InsetText::UnlockInsetInInset(BufferView * bv, UpdatableInset * inset,
+bool InsetText::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                                   bool lr)
 {
        if (!the_locking_inset)
                return false;
        if (the_locking_inset == inset) {
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
                TEXT(bv)->updateInset(bv, inset);
                the_locking_inset = 0;
                if (lr)
@@ -615,25 +615,25 @@ bool InsetText::UnlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                if (scroll())
                        scroll(bv, 0.0F);
                else
-                       UpdateLocal(bv, CURSOR, false);
+                       updateLocal(bv, CURSOR, false);
                return true;
        }
-       return the_locking_inset->UnlockInsetInInset(bv, inset, lr);
+       return the_locking_inset->unlockInsetInInset(bv, inset, lr);
 }
 
 
-bool InsetText::UpdateInsetInInset(BufferView * bv, Inset * inset)
+bool InsetText::updateInsetInInset(BufferView * bv, Inset * inset)
 {
        if (!the_locking_inset)
                return false;
        if (the_locking_inset != inset) {
                TEXT(bv)->updateInset(bv, the_locking_inset);
-               SetUpdateStatus(bv, CURSOR_PAR);
-               return the_locking_inset->UpdateInsetInInset(bv, inset);
+               setUpdateStatus(bv, CURSOR_PAR);
+               return the_locking_inset->updateInsetInInset(bv, inset);
        }
-//    UpdateLocal(bv, FULL, false);
+//    updateLocal(bv, FULL, false);
        if (TEXT(bv)->updateInset(bv, inset))
-               UpdateLocal(bv, CURSOR_PAR, false);
+               updateLocal(bv, CURSOR_PAR, false);
        if (cpar(bv) == inset_par && cpos(bv) == inset_pos) {
                inset_x = cx(bv) - top_x + drawTextXOffset;
                inset_y = cy(bv) + drawTextYOffset;
@@ -642,7 +642,7 @@ bool InsetText::UpdateInsetInInset(BufferView * bv, Inset * inset)
 }
 
 
-void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
+void InsetText::insetButtonPress(BufferView * bv, int x, int y, int button)
 {
        no_selection = true;
 
@@ -650,31 +650,31 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
        int tmp_y = y + insetAscent - TEXT(bv)->first;
        Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y, button);
 
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        if (the_locking_inset) {
                if (the_locking_inset == inset) {
-                       the_locking_inset->InsetButtonPress(bv,x-inset_x,y-inset_y,button);
+                       the_locking_inset->insetButtonPress(bv,x-inset_x,y-inset_y,button);
                        no_selection = false;
                        return;
                } else if (inset) {
                        // otherwise unlock the_locking_inset and lock the new inset
-                       the_locking_inset->InsetUnlock(bv);
+                       the_locking_inset->insetUnlock(bv);
                        inset_x = cx(bv) - top_x + drawTextXOffset;
                        inset_y = cy(bv) + drawTextYOffset;
                        the_locking_inset = static_cast<UpdatableInset*>(inset);
-                       inset->InsetButtonPress(bv, x - inset_x, y - inset_y, button);
-                       inset->Edit(bv, x - inset_x, y - inset_y, button);
+                       inset->insetButtonPress(bv, x - inset_x, y - inset_y, button);
+                       inset->edit(bv, x - inset_x, y - inset_y, button);
                        if (the_locking_inset)
-                               UpdateLocal(bv, CURSOR, false);
+                               updateLocal(bv, CURSOR, false);
                        no_selection = false;
                        return;
                }
                // otherwise only unlock the_locking_inset
-               the_locking_inset->InsetUnlock(bv);
+               the_locking_inset->insetUnlock(bv);
                the_locking_inset = 0;
        }
        if (bv->theLockingInset()) {
-               if (inset && inset->Editable() == Inset::HIGHLY_EDITABLE) {
+               if (inset && inset->editable() == Inset::HIGHLY_EDITABLE) {
                        UpdatableInset * uinset = static_cast<UpdatableInset*>(inset);
                        inset_x = cx(bv) - top_x + drawTextXOffset;
                        inset_y = cy(bv) + drawTextYOffset;
@@ -682,11 +682,11 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
                        inset_par = cpar(bv);
                        inset_boundary = cboundary(bv);
                        the_locking_inset = uinset;
-                       uinset->InsetButtonPress(bv, x - inset_x, y - inset_y,
+                       uinset->insetButtonPress(bv, x - inset_x, y - inset_y,
                                                 button);
-                       uinset->Edit(bv, x - inset_x, y - inset_y, 0);
+                       uinset->edit(bv, x - inset_x, y - inset_y, 0);
                        if (the_locking_inset)
-                               UpdateLocal(bv, CURSOR, false);
+                               updateLocal(bv, CURSOR, false);
                        no_selection = false;
                        return;
                }
@@ -694,13 +694,13 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
        if (!inset) { // && (button == 2)) {
                bool paste_internally = false;
                if ((button == 2) && TEXT(bv)->selection.set()) {
-                       LocalDispatch(bv, LFUN_COPY, "");
+                       localDispatch(bv, LFUN_COPY, "");
                        paste_internally = true;
                }
                TEXT(bv)->setCursorFromCoordinates(bv, x-drawTextXOffset,
                                                   y + insetAscent);
                TEXT(bv)->selection.cursor = TEXT(bv)->cursor;
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                bv->owner()->setLayout(cpar(bv)->getLayout());
                old_par = cpar(bv);
                // Insert primary selection with middle mouse
@@ -708,84 +708,84 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
                // insert this
                if (button == 2) {
                        if (paste_internally)
-                               LocalDispatch(bv, LFUN_PASTE, "");
+                               localDispatch(bv, LFUN_PASTE, "");
                        else
-                               LocalDispatch(bv, LFUN_PASTESELECTION,
+                               localDispatch(bv, LFUN_PASTESELECTION,
                                              "paragraph");
                }
        }
-       ShowInsetCursor(bv);
+       showInsetCursor(bv);
        no_selection = false;
 }
 
 
-void InsetText::InsetButtonRelease(BufferView * bv, int x, int y, int button)
+void InsetText::insetButtonRelease(BufferView * bv, int x, int y, int button)
 {
        UpdatableInset * inset = 0;
 
        if (the_locking_inset) {
-               the_locking_inset->InsetButtonRelease(bv,
+               the_locking_inset->insetButtonRelease(bv,
                                                      x - inset_x, y - inset_y,
                                                      button);
        } else {
                if (cpar(bv)->getChar(cpos(bv)) == Paragraph::META_INSET) {
                        inset = static_cast<UpdatableInset*>(cpar(bv)->getInset(cpos(bv)));
-                       if (inset->Editable() == Inset::HIGHLY_EDITABLE) {
-                               inset->InsetButtonRelease(bv,
+                       if (inset->editable() == Inset::HIGHLY_EDITABLE) {
+                               inset->insetButtonRelease(bv,
                                                          x - inset_x,
                                                          y - inset_y, button);
                        } else {
                                inset_x = cx(bv) - top_x + drawTextXOffset;
                                inset_y = cy(bv) + drawTextYOffset;
-                               inset->InsetButtonRelease(bv,
+                               inset->insetButtonRelease(bv,
                                                          x - inset_x,
                                                          y - inset_y, button);
-                               inset->Edit(bv,
+                               inset->edit(bv,
                                            x - inset_x, y - inset_y, button);
                        }
-                       UpdateLocal(bv, CURSOR_PAR, false);
+                       updateLocal(bv, CURSOR_PAR, false);
                }
        }
        no_selection = false;
 }
 
 
-void InsetText::InsetMotionNotify(BufferView * bv, int x, int y, int state)
+void InsetText::insetMotionNotify(BufferView * bv, int x, int y, int state)
 {
        if (no_selection)
                return;
        if (the_locking_inset) {
-               the_locking_inset->InsetMotionNotify(bv, x - inset_x,
+               the_locking_inset->insetMotionNotify(bv, x - inset_x,
                                                     y - inset_y,state);
                return;
        }
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        TEXT(bv)->setCursorFromCoordinates(bv, x - drawTextXOffset,
                                           y + insetAscent);
        TEXT(bv)->setSelection(bv);
        if (TEXT(bv)->toggle_cursor.par()!=TEXT(bv)->toggle_end_cursor.par() ||
                TEXT(bv)->toggle_cursor.pos()!=TEXT(bv)->toggle_end_cursor.pos())
-               UpdateLocal(bv, SELECTION, false);
-       ShowInsetCursor(bv);
+               updateLocal(bv, SELECTION, false);
+       showInsetCursor(bv);
 }
 
 
-void InsetText::InsetKeyPress(XKeyEvent * xke)
+void InsetText::insetKeyPress(XKeyEvent * xke)
 {
        if (the_locking_inset) {
-               the_locking_inset->InsetKeyPress(xke);
+               the_locking_inset->insetKeyPress(xke);
                return;
        }
 }
 
 
 UpdatableInset::RESULT
-InsetText::LocalDispatch(BufferView * bv,
+InsetText::localDispatch(BufferView * bv,
                          kb_action action, string const & arg)
 {
        no_selection = false;
        UpdatableInset::RESULT
-               result= UpdatableInset::LocalDispatch(bv, action, arg);
+               result= UpdatableInset::localDispatch(bv, action, arg);
        if (result != UNDISPATCHED) {
                return DISPATCHED;
        }
@@ -795,11 +795,11 @@ InsetText::LocalDispatch(BufferView * bv,
                return FINISHED;
 
        if (the_locking_inset) {
-               result = the_locking_inset->LocalDispatch(bv, action, arg);
+               result = the_locking_inset->localDispatch(bv, action, arg);
                if (result == DISPATCHED_NOUPDATE)
                        return result;
                else if (result == DISPATCHED) {
-                       UpdateLocal(bv, CURSOR_PAR, false);
+                       updateLocal(bv, CURSOR_PAR, false);
                        return result;
                } else if (result == FINISHED) {
                        bool dispatched = false;
@@ -827,7 +827,7 @@ InsetText::LocalDispatch(BufferView * bv,
                                return DISPATCHED;
                }
        }
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        switch (action) {
        // Normal chars
        case LFUN_SELFINSERT:
@@ -865,7 +865,7 @@ InsetText::LocalDispatch(BufferView * bv,
                        }
                }
                TEXT(bv)->selection.cursor = TEXT(bv)->cursor;
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                result=DISPATCHED_NOUPDATE;
                break;
                // --- Cursor Movements -----------------------------------
@@ -873,54 +873,54 @@ InsetText::LocalDispatch(BufferView * bv,
                bv->text->finishUndo();
                moveRight(bv, false, true);
                TEXT(bv)->setSelection(bv);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_RIGHT:
                result = moveRight(bv);
                bv->text->finishUndo();
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_LEFTSEL:
                bv->text->finishUndo();
                moveLeft(bv, false, true);
                TEXT(bv)->setSelection(bv);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_LEFT:
                bv->text->finishUndo();
                result = moveLeft(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_DOWNSEL:
                bv->text->finishUndo();
                moveDown(bv);
                TEXT(bv)->setSelection(bv);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_DOWN:
                bv->text->finishUndo();
                result = moveDown(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_UPSEL:
                bv->text->finishUndo();
                moveUp(bv);
                TEXT(bv)->setSelection(bv);
-               UpdateLocal(bv, SELECTION, false);
+               updateLocal(bv, SELECTION, false);
                break;
        case LFUN_UP:
                bv->text->finishUndo();
                result = moveUp(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_HOME:
                bv->text->finishUndo();
                TEXT(bv)->cursorHome(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_END:
                TEXT(bv)->cursorEnd(bv);
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                break;
        case LFUN_BACKSPACE:
                bv->text->setUndo(bv->buffer(), Undo::DELETE,
@@ -930,7 +930,7 @@ InsetText::LocalDispatch(BufferView * bv,
                        TEXT(bv)->cutSelection(bv);
                else
                        TEXT(bv)->backspace(bv);
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        case LFUN_DELETE:
                bv->text->setUndo(bv->buffer(), Undo::DELETE,
@@ -940,19 +940,19 @@ InsetText::LocalDispatch(BufferView * bv,
                        TEXT(bv)->cutSelection(bv);
                else
                        TEXT(bv)->Delete(bv);
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        case LFUN_CUT:
                bv->text->setUndo(bv->buffer(), Undo::DELETE,
                                  bv->text->cursor.par()->previous(),
                                  bv->text->cursor.par()->next());
                TEXT(bv)->cutSelection(bv);
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        case LFUN_COPY:
                bv->text->finishUndo();
                TEXT(bv)->copySelection(bv);
-               UpdateLocal(bv, CURSOR_PAR, false);
+               updateLocal(bv, CURSOR_PAR, false);
                break;
        case LFUN_PASTESELECTION:
        {
@@ -965,7 +965,7 @@ InsetText::LocalDispatch(BufferView * bv,
                } else {
                        TEXT(bv)->insertStringAsLines(bv, clip);
                }
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        }
        case LFUN_PASTE:
@@ -983,19 +983,19 @@ InsetText::LocalDispatch(BufferView * bv,
                                  bv->text->cursor.par()->previous(),
                                  bv->text->cursor.par()->next());
                TEXT(bv)->pasteSelection(bv);
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        case LFUN_BREAKPARAGRAPH:
                if (!autoBreakRows)
                        return DISPATCHED;
                TEXT(bv)->breakParagraph(bv, 0);
-               UpdateLocal(bv, FULL, true);
+               updateLocal(bv, FULL, true);
                break;
        case LFUN_BREAKPARAGRAPHKEEPLAYOUT:
                if (!autoBreakRows)
                        return DISPATCHED;
                TEXT(bv)->breakParagraph(bv, 1);
-               UpdateLocal(bv, FULL, true);
+               updateLocal(bv, FULL, true);
                break;
        case LFUN_BREAKLINE:
                if (!autoBreakRows)
@@ -1004,7 +1004,7 @@ InsetText::LocalDispatch(BufferView * bv,
                                  bv->text->cursor.par()->previous(),
                                  bv->text->cursor.par()->next());
                TEXT(bv)->insertChar(bv, Paragraph::META_NEWLINE);
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
                break;
        case LFUN_LAYOUT:
                // do not set layouts on non breakable textinsets
@@ -1037,7 +1037,7 @@ InsetText::LocalDispatch(BufferView * bv,
                                cur_layout = layout.second;
                                TEXT(bv)->setLayout(bv, layout.second);
                                bv->owner()->setLayout(cpar(bv)->getLayout());
-                               UpdateLocal(bv, CURSOR_PAR, true);
+                               updateLocal(bv, CURSOR_PAR, true);
                        }
                } else {
                        // reset the layout box
@@ -1086,7 +1086,7 @@ InsetText::LocalDispatch(BufferView * bv,
                if (cur_spacing != new_spacing || cur_value != new_value) {
                        par->params().spacing(Spacing(new_spacing, new_value));
                        //TEXT(bv)->RedoParagraph(owner->view());
-                       UpdateLocal(bv, CURSOR_PAR, true);
+                       updateLocal(bv, CURSOR_PAR, true);
                        //bv->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
                }
        }
@@ -1103,18 +1103,18 @@ InsetText::LocalDispatch(BufferView * bv,
        if (par->size() == 0 && !par->next()) {
                LyXFont font(LyXFont::ALL_IGNORE);
                font.setLanguage(bv->getParentLanguage(this));
-               SetFont(bv, font, false);
+               setFont(bv, font, false);
        }
 
        if (result != FINISHED) {
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
        } else
                bv->unlockInset(this);
        return result;
 }
 
 
-int InsetText::Latex(Buffer const * buf, ostream & os, bool, bool) const
+int InsetText::latex(Buffer const * buf, ostream & os, bool, bool) const
 {
        TexRow texrow;
        buf->latexParagraphs(os, par, 0, texrow);
@@ -1122,7 +1122,7 @@ int InsetText::Latex(Buffer const * buf, ostream & os, bool, bool) const
 }
 
 
-int InsetText::Ascii(Buffer const * buf, ostream & os, int linelen) const
+int InsetText::ascii(Buffer const * buf, ostream & os, int linelen) const
 {
        Paragraph * p = par;
        unsigned int lines = 0;
@@ -1137,7 +1137,7 @@ int InsetText::Ascii(Buffer const * buf, ostream & os, int linelen) const
 }
 
 
-int InsetText::DocBook(Buffer const * buf, ostream & os) const
+int InsetText::docBook(Buffer const * buf, ostream & os) const
 {
        Paragraph * p = par;
        unsigned int lines = 0;
@@ -1145,7 +1145,7 @@ int InsetText::DocBook(Buffer const * buf, ostream & os) const
        
        string tmp;
        while (p) {
-               buf->SimpleDocBookOnePar(os, tmp, p, desc, 0);
+               buf->simpleDocBookOnePar(os, tmp, p, desc, 0);
                p = p->next();
        }
        
@@ -1153,7 +1153,7 @@ int InsetText::DocBook(Buffer const * buf, ostream & os) const
 }
 
 
-void InsetText::Validate(LaTeXFeatures & features) const
+void InsetText::validate(LaTeXFeatures & features) const
 {
        Paragraph * p = par;
        while (p) {
@@ -1163,7 +1163,7 @@ void InsetText::Validate(LaTeXFeatures & features) const
 }
 
 
-int InsetText::BeginningOfMainBody(Buffer const * buf, Paragraph * p) const
+int InsetText::beginningOfMainBody(Buffer const * buf, Paragraph * p) const
 {
        if (textclasslist.Style(buf->params.textclass,
                                p->getLayout()).labeltype != LABEL_MANUAL)
@@ -1173,7 +1173,7 @@ int InsetText::BeginningOfMainBody(Buffer const * buf, Paragraph * p) const
 }
 
 
-void InsetText::GetCursorPos(BufferView * bv,
+void InsetText::getCursorPos(BufferView * bv,
                             int & x, int & y) const
 {
        x = cx(bv);
@@ -1181,19 +1181,19 @@ void InsetText::GetCursorPos(BufferView * bv,
 }
 
 
-unsigned int InsetText::InsetInInsetY()
+unsigned int InsetText::insetInInsetY()
 {
        if (!the_locking_inset)
                return 0;
 
-       return (inset_y + the_locking_inset->InsetInInsetY());
+       return (inset_y + the_locking_inset->insetInInsetY());
 }
 
 
-void InsetText::ToggleInsetCursor(BufferView * bv)
+void InsetText::toggleInsetCursor(BufferView * bv)
 {
        if (the_locking_inset) {
-               the_locking_inset->ToggleInsetCursor(bv);
+               the_locking_inset->toggleInsetCursor(bv);
                return;
        }
 
@@ -1210,10 +1210,10 @@ void InsetText::ToggleInsetCursor(BufferView * bv)
 }
 
 
-void InsetText::ShowInsetCursor(BufferView * bv, bool show)
+void InsetText::showInsetCursor(BufferView * bv, bool show)
 {
        if (the_locking_inset) {
-               the_locking_inset->ShowInsetCursor(bv);
+               the_locking_inset->showInsetCursor(bv);
                return;
        }
        if (!isCursorVisible()) {
@@ -1231,14 +1231,14 @@ void InsetText::ShowInsetCursor(BufferView * bv, bool show)
 }
 
 
-void InsetText::HideInsetCursor(BufferView * bv)
+void InsetText::hideInsetCursor(BufferView * bv)
 {
        if (isCursorVisible()) {
                bv->hideLockedInsetCursor();
                setCursorVisible(false);
        }
        if (the_locking_inset)
-               the_locking_inset->HideInsetCursor(bv);
+               the_locking_inset->hideInsetCursor(bv);
 }
 
 
@@ -1312,18 +1312,18 @@ InsetText::moveDown(BufferView * bv)
 }
 
 
-bool InsetText::InsertInset(BufferView * bv, Inset * inset)
+bool InsetText::insertInset(BufferView * bv, Inset * inset)
 {
        if (the_locking_inset) {
-               if (the_locking_inset->InsertInsetAllowed(inset))
-                       return the_locking_inset->InsertInset(bv, inset);
+               if (the_locking_inset->insertInsetAllowed(inset))
+                       return the_locking_inset->insertInset(bv, inset);
                return false;
        }
        bv->text->setUndo(bv->buffer(), Undo::INSERT,
                          bv->text->cursor.par()->previous(),
                          bv->text->cursor.par()->next());
        inset->setOwner(this);
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
        TEXT(bv)->insertInset(bv, inset);
 #if 0
        if ((cpar(bv)->GetChar(cpos(bv)) != Paragraph::META_INSET) ||
@@ -1331,32 +1331,32 @@ bool InsetText::InsertInset(BufferView * bv, Inset * inset)
                TEXT(bv)->CursorLeft(bv);
 #endif
        bv->fitCursor(TEXT(bv));
-       UpdateLocal(bv, CURSOR_PAR|CURSOR, true);
-       ShowInsetCursor(bv);
+       updateLocal(bv, CURSOR_PAR|CURSOR, true);
+       showInsetCursor(bv);
        return true;
 }
 
 
-UpdatableInset * InsetText::GetLockingInset()
+UpdatableInset * InsetText::getLockingInset()
 {
-       return the_locking_inset ? the_locking_inset->GetLockingInset() : this;
+       return the_locking_inset ? the_locking_inset->getLockingInset() : this;
 }
 
 
-UpdatableInset * InsetText::GetFirstLockingInsetOfType(Inset::Code c)
+UpdatableInset * InsetText::getFirstLockingInsetOfType(Inset::Code c)
 {
-       if (c == LyxCode())
+       if (c == lyxCode())
                return this;
        if (the_locking_inset)
-               return the_locking_inset->GetFirstLockingInsetOfType(c);
+               return the_locking_inset->getFirstLockingInsetOfType(c);
        return 0;
 }
 
 
-bool InsetText::ShowInsetDialog(BufferView * bv) const
+bool InsetText::showInsetDialog(BufferView * bv) const
 {
        if (the_locking_inset)
-               return the_locking_inset->ShowInsetDialog(bv);
+               return the_locking_inset->showInsetDialog(bv);
        return false;
 }
 
@@ -1379,11 +1379,11 @@ std::vector<string> const InsetText::getLabelList() const
 }
 
 
-void InsetText::SetFont(BufferView * bv, LyXFont const & font, bool toggleall,
+void InsetText::setFont(BufferView * bv, LyXFont const & font, bool toggleall,
                         bool selectall)
 {
        if (the_locking_inset) {
-               the_locking_inset->SetFont(bv, font, toggleall, selectall);
+               the_locking_inset->setFont(bv, font, toggleall, selectall);
                return;
        }
        if (TEXT(bv)->selection.set()) {
@@ -1398,9 +1398,9 @@ void InsetText::SetFont(BufferView * bv, LyXFont const & font, bool toggleall,
                TEXT(bv)->clearSelection(bv);
        bv->fitCursor(TEXT(bv));
        if (selectall || TEXT(bv)->selection.set())
-               UpdateLocal(bv, FULL, true);
+               updateLocal(bv, FULL, true);
        else
-               UpdateLocal(bv, CURSOR_PAR, true);
+               updateLocal(bv, CURSOR_PAR, true);
 }
 
 
@@ -1411,7 +1411,7 @@ bool InsetText::checkAndActivateInset(BufferView * bv, bool behind)
                unsigned int y;
                Inset * inset =
                        static_cast<UpdatableInset*>(cpar(bv)->getInset(cpos(bv)));
-               if (!inset || inset->Editable() != Inset::HIGHLY_EDITABLE)
+               if (!inset || inset->editable() != Inset::HIGHLY_EDITABLE)
                        return false;
                LyXFont const font =
                        TEXT(bv)->getFont(bv->buffer(), cpar(bv), cpos(bv));
@@ -1424,10 +1424,10 @@ bool InsetText::checkAndActivateInset(BufferView * bv, bool behind)
                }
                //inset_x = cx(bv) - top_x + drawTextXOffset;
                //inset_y = cy(bv) + drawTextYOffset;
-               inset->Edit(bv, x, y, 0);
+               inset->edit(bv, x, y, 0);
                if (!the_locking_inset)
                        return false;
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                return true;
        }
        return false;
@@ -1449,10 +1449,10 @@ bool InsetText::checkAndActivateInset(BufferView * bv, int x, int y,
                        y = insetDescent;
                inset_x = cx(bv) - top_x + drawTextXOffset;
                inset_y = cy(bv) + drawTextYOffset;
-               inset->Edit(bv, x - inset_x, y - inset_y, button);
+               inset->edit(bv, x - inset_x, y - inset_y, button);
                if (!the_locking_inset)
                        return false;
-               UpdateLocal(bv, CURSOR, false);
+               updateLocal(bv, CURSOR, false);
                return true;
        }
        return false;
@@ -1475,7 +1475,7 @@ int InsetText::getMaxWidth(BufferView * bv, UpdatableInset const * inset) const
 }
 
 
-void InsetText::SetParagraphData(Paragraph * p)
+void InsetText::setParagraphData(Paragraph * p)
 {
        // delete all instances of LyXText before deleting the paragraps used
        // by it.
@@ -1505,7 +1505,7 @@ void InsetText::SetParagraphData(Paragraph * p)
 }
 
 
-void InsetText::SetText(string const & data)
+void InsetText::setText(string const & data)
 {
        clear();
        LyXFont font(LyXFont::ALL_SANE);
@@ -1514,7 +1514,7 @@ void InsetText::SetText(string const & data)
 }
 
 
-void InsetText::SetAutoBreakRows(bool flag)
+void InsetText::setAutoBreakRows(bool flag)
 {
        if (flag != autoBreakRows) {
                autoBreakRows = flag;
@@ -1525,22 +1525,22 @@ void InsetText::SetAutoBreakRows(bool flag)
 }
 
 
-void InsetText::SetDrawFrame(BufferView * bv, DrawFrame how)
+void InsetText::setDrawFrame(BufferView * bv, DrawFrame how)
 {
        if (how != drawFrame_) {
                drawFrame_ = how;
                if (bv)
-                       UpdateLocal(bv, DRAW_FRAME, false);
+                       updateLocal(bv, DRAW_FRAME, false);
        }
 }
 
 
-void InsetText::SetFrameColor(BufferView * bv, LColor::color col)
+void InsetText::setFrameColor(BufferView * bv, LColor::color col)
 {
        if (frame_color != col) {
                frame_color = col;
                if (bv)
-                       UpdateLocal(bv, DRAW_FRAME, false);
+                       updateLocal(bv, DRAW_FRAME, false);
        }
 }
 
index 2382a35461d119d2b7e886e3b7b8ff9c191750a6..67faf394c3d39dca8504252c1045680cdeaa0ff4 100644 (file)
@@ -77,15 +77,15 @@ public:
        ///
        ~InsetText();
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
        InsetText & operator=(InsetText const & it);
        ///
        void clear();
        ///
-       void Read(Buffer const *, LyXLex &);
+       void read(Buffer const *, LyXLex &);
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
@@ -99,77 +99,80 @@ public:
        ///
        void update(BufferView *, LyXFont const &, bool =false);
        ///
-       void SetUpdateStatus(BufferView *, int what) const;
+       void setUpdateStatus(BufferView *, int what) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       bool IsTextInset() const { return true; }
+       bool isTextInset() const { return true; }
        ///
        bool doClearArea() const;
        ///
-       void InsetUnlock(BufferView *);
+       void insetUnlock(BufferView *);
        ///
-       bool LockInsetInInset(BufferView *, UpdatableInset *);
+       bool lockInsetInInset(BufferView *, UpdatableInset *);
        ///
-       bool UnlockInsetInInset(BufferView *, UpdatableInset *, bool lr = false);
+       bool unlockInsetInInset(BufferView *,
+                               UpdatableInset *, bool lr = false);
        ///
-       bool UpdateInsetInInset(BufferView *, Inset *);
+       bool updateInsetInInset(BufferView *, Inset *);
        ///
-       void InsetButtonRelease(BufferView *, int, int, int);
+       void insetButtonRelease(BufferView *, int, int, int);
        ///
-       void InsetButtonPress(BufferView *, int, int, int);
+       void insetButtonPress(BufferView *, int, int, int);
        ///
-       void InsetMotionNotify(BufferView *, int, int, int);
+       void insetMotionNotify(BufferView *, int, int, int);
        ///
-       void InsetKeyPress(XKeyEvent *);
+       void insetKeyPress(XKeyEvent *);
        ///
-       UpdatableInset::RESULT LocalDispatch(BufferView *, kb_action, string const &);
+       UpdatableInset::RESULT localDispatch(BufferView *,
+                                            kb_action, string const &);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int DocBook(Buffer const *, std::ostream &) const ;
+       int docBook(Buffer const *, std::ostream &) const ;
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code LyxCode() const { return Inset::TEXT_CODE; }
+       Inset::Code lyxCode() const { return Inset::TEXT_CODE; }
        ///
-       void GetCursorPos(BufferView *, int & x, int & y) const;
+       void getCursorPos(BufferView *, int & x, int & y) const;
        ///
-       unsigned int InsetInInsetY();
+       unsigned int insetInInsetY();
        ///
-       void ToggleInsetCursor(BufferView *);
+       void toggleInsetCursor(BufferView *);
        ///
-       bool InsertInset(BufferView *, Inset *);
+       bool insertInset(BufferView *, Inset *);
        ///
-       UpdatableInset * GetLockingInset();
+       UpdatableInset * getLockingInset();
        ///
-       UpdatableInset * GetFirstLockingInsetOfType(Inset::Code);
+       UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
        ///
-       void SetFont(BufferView *, LyXFont const &, bool toggleall = false,
+       void setFont(BufferView *, LyXFont const &,
+                    bool toggleall = false,
                     bool selectall = false);
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        void init(InsetText const * ins = 0);
        ///
-       void WriteParagraphData(Buffer const *, std::ostream &) const;
+       void writeParagraphData(Buffer const *, std::ostream &) const;
        ///
-       void SetParagraphData(Paragraph *);
+       void setParagraphData(Paragraph *);
        ///
-       void SetText(string const &);
+       void setText(string const &);
        ///
-       void SetAutoBreakRows(bool);
+       void setAutoBreakRows(bool);
        ///
-       void SetDrawFrame(BufferView *, DrawFrame);
+       void setDrawFrame(BufferView *, DrawFrame);
        ///
-       void SetFrameColor(BufferView *, LColor::color);
+       void setFrameColor(BufferView *, LColor::color);
        ///
        LyXText * getLyXText(BufferView const *,
                             bool const recursive = false) const;
@@ -178,7 +181,7 @@ public:
        ///
        void resizeLyXText(BufferView *, bool force = false) const;
        ///
-       bool ShowInsetDialog(BufferView *) const;
+       bool showInsetDialog(BufferView *) const;
        ///
        std::vector<string> const getLabelList() const;
        ///
@@ -204,7 +207,7 @@ public:
 
 protected:
        ///
-       void UpdateLocal(BufferView *, int what, bool mark_dirty);
+       void updateLocal(BufferView *, int what, bool mark_dirty);
        ///
        mutable int drawTextXOffset;
        ///
@@ -222,16 +225,18 @@ private:
        ///
        typedef Cache::value_type value_type;
        ///
-       int BeginningOfMainBody(Buffer const *, Paragraph * par) const;
+       int beginningOfMainBody(Buffer const *, Paragraph * par) const;
        ///
-       void ShowInsetCursor(BufferView *, bool show=true);
+       void showInsetCursor(BufferView *, bool show=true);
        ///
-       void HideInsetCursor(BufferView *);
+       void hideInsetCursor(BufferView *);
        ///
-       UpdatableInset::RESULT moveRight(BufferView *, bool activate_inset = true,
+       UpdatableInset::RESULT moveRight(BufferView *,
+                                        bool activate_inset = true,
                                         bool selecting = false);
        ///
-       UpdatableInset::RESULT moveLeft(BufferView *, bool activate_inset = true,
+       UpdatableInset::RESULT moveLeft(BufferView *,
+                                       bool activate_inset = true,
                                        bool selecting = false);
        ///
        UpdatableInset::RESULT moveRightIntern(BufferView *, bool behind,
@@ -247,7 +252,7 @@ private:
        ///
        UpdatableInset::RESULT moveDown(BufferView *);
        ///
-       void SetCharFont(Buffer const *, int pos, LyXFont const & font);
+       void setCharFont(Buffer const *, int pos, LyXFont const & font);
        ///
        string const getText(int);
        ///
@@ -276,6 +281,7 @@ private:
        }
        ///
        void drawFrame(Painter &, bool cleared) const;
+       ///
        void clearFrame(Painter &, bool cleared) const;
        ///
        void clearInset(Painter &, int baseline, bool & cleared) const;
index 2cc42f8ccd658b2bf5e794c3f44529664d9a8dc6..1f4068773dcf4ea414ca8ad3392f0dc4721ff431 100644 (file)
@@ -47,14 +47,14 @@ InsetTheorem::InsetTheorem()
 }
 
 
-void InsetTheorem::Write(Buffer const * buf, ostream & os) const 
+void InsetTheorem::write(Buffer const * buf, ostream & os) const 
 {
        os << getInsetName() << "\n";
-       InsetCollapsable::Write(buf, os);
+       InsetCollapsable::write(buf, os);
 }
 
 
-Inset * InsetTheorem::Clone(Buffer const &) const
+Inset * InsetTheorem::clone(Buffer const &) const
 {
        InsetTheorem * result = new InsetTheorem;
        
@@ -63,30 +63,30 @@ Inset * InsetTheorem::Clone(Buffer const &) const
 }
 
 
-string const InsetTheorem::EditMessage() const
+string const InsetTheorem::editMessage() const
 {
        return _("Opened Theorem Inset");
 }
 
 
-int InsetTheorem::Latex(Buffer const * buf,
+int InsetTheorem::latex(Buffer const * buf,
                        ostream & os, bool fragile, bool fp) const
 {
        os << "\\begin{theorem}%\n";
        
-       int i = inset.Latex(buf, os, fragile, fp);
+       int i = inset.latex(buf, os, fragile, fp);
        os << "\\end{theorem}%\n";
        
        return i + 2;
 }
 
 
-bool InsetTheorem::InsertInsetAllowed(Inset * inset) const
+bool InsetTheorem::insertInsetAllowed(Inset * inset) const
 {
        lyxerr << "InsetTheorem::InsertInsetAllowed" << endl;
        
-       if ((inset->LyxCode() == Inset::FOOT_CODE) ||
-           (inset->LyxCode() == Inset::MARGIN_CODE)) {
+       if ((inset->lyxCode() == Inset::FOOT_CODE) ||
+           (inset->lyxCode() == Inset::MARGIN_CODE)) {
                return false;
        }
        return true;
index 84ad0e0653c515ccf683ca3a4335c59d3546d40c..c81e54f036bfd8a010f977504c6dee936cbfc560 100644 (file)
@@ -26,19 +26,19 @@ public:
        ///
        InsetTheorem();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::THEOREM_CODE; }
+       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
        bool display() const { return true; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
 };
 
 #endif
index 1c01222f548e56db7a544b99ddb32aa94b13fa5d..4be7d1ade6ea5ae8185b670fa303ced830d12722 100644 (file)
@@ -25,7 +25,9 @@ public:
        ///
        InsetTOC(InsetCommandParams const & p) : InsetCommand(p) {}
        ///
-        Inset * Clone(Buffer const &) const { return new InsetTOC(params()); }
+        virtual Inset * clone(Buffer const &) const {
+               return new InsetTOC(params());
+       }
        ///
        string const getScreenLabel() const;
        ///
index 6821babd741047a7c8f85131093257e4ea979c6b..5d3f07f5927389080d12b331db0c5a1927afb6be 100644 (file)
@@ -27,7 +27,9 @@ public:
        explicit
        InsetUrl(InsetCommandParams const &);
         ///
-       Inset * Clone(Buffer const &) const { return new InsetUrl(params()); }
+       virtual Inset * clone(Buffer const &) const {
+               return new InsetUrl(params());
+       }
        ///
        Inset::Code LyxCode() const { return Inset::URL_CODE; }
        ///
index dc73658688abe5de12ebcae5af6b1358c1f46de4..8390461d15083d16a52c1173f6e8fe6ce712a7d7 100644 (file)
@@ -63,15 +63,15 @@ extern bool finished; // all cleanup done just let it run through now.
 
    During the lock, all button and keyboard events will be modified
    and send to the inset through the following inset-features. Note that
-   Inset::InsetUnlock will be called from inside UnlockInset. It is meant
+   Inset::insetUnlock will be called from inside UnlockInset. It is meant
    to contain the code for restoring the menus and things like this.
 
    
-   virtual void InsetButtonPress(int x, int y, int button);
-   virtual void InsetButtonRelease(int x, int y, int button);
-   virtual void InsetKeyPress(XKeyEvent *ev);
-   virtual void InsetMotionNotify(int x, int y, int state);
-   virtual void InsetUnlock();
+   virtual void insetButtonPress(int x, int y, int button);
+   virtual void insetButtonRelease(int x, int y, int button);
+   virtual void insetKeyPress(XKeyEvent *ev);
+   virtual void insetMotionNotify(int x, int y, int state);
+   virtual void insetUnlock();
 
    If a inset wishes any redraw and/or update it just has to call
    UpdateInset(this).
@@ -280,7 +280,7 @@ void QuitLyX()
        lyxerr[Debug::INFO] << "Running QuitLyX." << endl;
 
        if (lyxrc.use_gui) {
-               if (!bufferlist.QwriteAll())
+               if (!bufferlist.qwriteAll())
                        return;
 
                lastfiles->writeFile(lyxrc.lastfiles);
index 6249bec5e7542d11a7ea7f35b49c6c3867f7c77b..859d1fe672aa693e28aad8a9a9a15513d7ce084c 100644 (file)
@@ -153,7 +153,7 @@ LyX::LyX(int * argc, char * argv[])
                        last_loaded = bufferlist.newFile("tmpfile", string());
 
                // try to dispatch to last loaded buffer first
-               bool dispatched = last_loaded->Dispatch(batch_command);
+               bool dispatched = last_loaded->dispatch(batch_command);
 
                // if this was successful, return. 
                // Maybe we could do something more clever than aborting...
@@ -390,7 +390,7 @@ void LyX::init(bool gui)
        // Read configuration files
        //
 
-       ReadRcFile("lyxrc.defaults");
+       readRcFile("lyxrc.defaults");
        system_lyxrc = lyxrc;
        system_formats = formats;
        system_converters = converters;
@@ -398,13 +398,13 @@ void LyX::init(bool gui)
 
        // If there is a preferences file we read that instead
        // of the old lyxrc file.
-       if (!ReadRcFile("preferences"))
-           ReadRcFile("lyxrc");
+       if (!readRcFile("preferences"))
+           readRcFile("lyxrc");
 
        // Read encodings
-       ReadEncodingsFile("encodings");
+       readEncodingsFile("encodings");
        // Read languages
-       ReadLanguagesFile("languages");
+       readLanguagesFile("languages");
 
        // Load the layouts
        lyxerr[Debug::INIT] << "Reading layouts..." << endl;
@@ -415,7 +415,7 @@ void LyX::init(bool gui)
        lyxrc.readBindFileIfNeeded();
 
        // Read menus
-       ReadUIFile(lyxrc.ui_file);
+       readUIFile(lyxrc.ui_file);
 
        // Bind the X dead keys to the corresponding LyX functions if
        // necessary. 
@@ -577,7 +577,7 @@ void LyX::queryUserLyXDir(bool explicit_userdir)
 
 
 // Read the rc file `name'
-bool LyX::ReadRcFile(string const & name)
+bool LyX::readRcFile(string const & name)
 {
        lyxerr[Debug::INIT] << "About to read " << name << "..." << endl;
        
@@ -599,7 +599,7 @@ bool LyX::ReadRcFile(string const & name)
 
 
 // Read the ui file `name'
-void LyX::ReadUIFile(string const & name)
+void LyX::readUIFile(string const & name)
 {
        enum Uitags {
                ui_menuset = 1,
@@ -655,7 +655,7 @@ void LyX::ReadUIFile(string const & name)
 
 
 // Read the languages file `name'
-void LyX::ReadLanguagesFile(string const & name)
+void LyX::readLanguagesFile(string const & name)
 {
        lyxerr[Debug::INIT] << "About to read " << name << "..." << endl;
 
@@ -670,7 +670,7 @@ void LyX::ReadLanguagesFile(string const & name)
 
 
 // Read the encodings file `name'
-void LyX::ReadEncodingsFile(string const & name)
+void LyX::readEncodingsFile(string const & name)
 {
        lyxerr[Debug::INIT] << "About to read " << name << "..." << endl;
 
index 2417b149a40f378eb3f183f64407a05ce9755516..d2b0fb9bea80fa2fd4425b6b634ac77fdbbbc17d 100644 (file)
@@ -71,13 +71,13 @@ private:
        /** Search for and read the LyXRC file name, return
            true if successfull.
        */
-        bool ReadRcFile(string const & name);
+        bool readRcFile(string const & name);
        /// Read the ui file `name'
-       void ReadUIFile(string const & name);
+       void readUIFile(string const & name);
        /// Read the languages file `name'
-       void ReadLanguagesFile(string const & name);
+       void readLanguagesFile(string const & name);
        /// Read the encodings file `name'
-       void ReadEncodingsFile(string const & name);
+       void readEncodingsFile(string const & name);
         ///
        bool easyParse(int * argc, char * argv[]);
 };
index 33ae956f304a88cdc90b9c9dc6c62221e794bbb3..f123166106065c16c8e0f58aa2e9d85565844b1b 100644 (file)
@@ -433,16 +433,16 @@ func_status::value_type LyXFunc::getStatus(int ac,
                // Disable insertion of floats in a tabular.
                disable = false;
                if (owner->view()->theLockingInset()) {
-                       disable = (owner->view()->theLockingInset()->LyxCode() == Inset::TABULAR_CODE) ||
-                               owner->view()->theLockingInset()->GetFirstLockingInsetOfType(Inset::TABULAR_CODE);
+                       disable = (owner->view()->theLockingInset()->lyxCode() == Inset::TABULAR_CODE) ||
+                               owner->view()->theLockingInset()->getFirstLockingInsetOfType(Inset::TABULAR_CODE);
                }
                break;
 
        case LFUN_LAYOUT_TABULAR:
                disable = true;
                if (owner->view()->theLockingInset()) {
-                       disable = (owner->view()->theLockingInset()->LyxCode() != Inset::TABULAR_CODE) &&
-                               !owner->view()->theLockingInset()->GetFirstLockingInsetOfType(Inset::TABULAR_CODE);
+                       disable = (owner->view()->theLockingInset()->lyxCode() != Inset::TABULAR_CODE) &&
+                               !owner->view()->theLockingInset()->getFirstLockingInsetOfType(Inset::TABULAR_CODE);
                }
                break;
 
@@ -450,14 +450,14 @@ func_status::value_type LyXFunc::getStatus(int ac,
                disable = true;
                if (owner->view()->theLockingInset()) {
                        func_status::value_type ret = func_status::Disabled;
-                       if (owner->view()->theLockingInset()->LyxCode() == Inset::TABULAR_CODE) {
+                       if (owner->view()->theLockingInset()->lyxCode() == Inset::TABULAR_CODE) {
                                ret = static_cast<InsetTabular *>
                                        (owner->view()->theLockingInset())->
                                        getStatus(argument);
-                       } else if (owner->view()->theLockingInset()->GetFirstLockingInsetOfType(Inset::TABULAR_CODE)) {
+                       } else if (owner->view()->theLockingInset()->getFirstLockingInsetOfType(Inset::TABULAR_CODE)) {
                                ret = static_cast<InsetTabular *>
                                        (owner->view()->theLockingInset()->
-                                        GetFirstLockingInsetOfType(Inset::TABULAR_CODE))->
+                                        getFirstLockingInsetOfType(Inset::TABULAR_CODE))->
                                        getStatus(argument);
                        }
                        flag |= ret;
@@ -493,8 +493,8 @@ func_status::value_type LyXFunc::getStatus(int ac,
                        isSavedPosition(strToUnsignedInt(argument));
        case LFUN_MATH_VALIGN: {
                Inset * tli = owner->view()->theLockingInset();
-               if (tli && (tli->LyxCode() == Inset::MATH_CODE 
-                           || tli->LyxCode() == Inset::MATHMACRO_CODE)) {
+               if (tli && (tli->lyxCode() == Inset::MATH_CODE 
+                           || tli->lyxCode() == Inset::MATHMACRO_CODE)) {
                        char align = mathcursor->valign();
                        if (align == '\0') {
                                disable = true;
@@ -518,8 +518,8 @@ func_status::value_type LyXFunc::getStatus(int ac,
        }
        case LFUN_MATH_HALIGN: {
                Inset * tli = owner->view()->theLockingInset();
-               if (tli && (tli->LyxCode() == Inset::MATH_CODE 
-                           || tli->LyxCode() == Inset::MATHMACRO_CODE)) {
+               if (tli && (tli->lyxCode() == Inset::MATH_CODE 
+                           || tli->lyxCode() == Inset::MATHMACRO_CODE)) {
                        char align = mathcursor->halign();
                        if (align == '\0') {
                                disable = true;
@@ -543,7 +543,7 @@ func_status::value_type LyXFunc::getStatus(int ac,
        }
        case LFUN_MATH_MUTATE: {
                Inset * tli = owner->view()->theLockingInset();
-               if (tli && (tli->LyxCode() == Inset::MATH_CODE)) {
+               if (tli && (tli->lyxCode() == Inset::MATH_CODE)) {
                        MathInsetTypes type = mathcursor->par()->GetType();
                        func_status::value_type box = func_status::ToggleOff;
                        if (argument == "inline") {
@@ -681,7 +681,7 @@ string const LyXFunc::Dispatch(int ac,
                                int sly;
                                UpdatableInset * inset = 
                                        owner->view()->theLockingInset();
-                               inset->GetCursorPos(owner->view(), slx, sly);
+                               inset->getCursorPos(owner->view(), slx, sly);
                                owner->view()->unlockInset(inset);
                                owner->view()->menuUndo();
                                if (TEXT()->cursor.par()->
@@ -694,14 +694,14 @@ string const LyXFunc::Dispatch(int ac,
                                        inset = 0;
                                }
                                if (inset)
-                                       inset->Edit(owner->view(),slx,sly,0);
+                                       inset->edit(owner->view(),slx,sly,0);
                                return string();
                        } else if (action == LFUN_REDO) {
                                int slx;
                                int sly;
                                UpdatableInset * inset = owner->view()->
                                        theLockingInset();
-                               inset->GetCursorPos(owner->view(), slx, sly);
+                               inset->getCursorPos(owner->view(), slx, sly);
                                owner->view()->unlockInset(inset);
                                owner->view()->menuRedo();
                                inset = static_cast<UpdatableInset*>(
@@ -709,10 +709,10 @@ string const LyXFunc::Dispatch(int ac,
                                        getInset(TEXT()->
                                                 cursor.pos()));
                                if (inset)
-                                       inset->Edit(owner->view(),slx,sly,0); 
+                                       inset->edit(owner->view(),slx,sly,0); 
                                return string();
                        } else if (((result=owner->view()->theLockingInset()->
-                                  LocalDispatch(owner->view(), action,
+                                  localDispatch(owner->view(), action,
                                                 argument)) ==
                                   UpdatableInset::DISPATCHED) ||
                                   (result == UpdatableInset::DISPATCHED_NOUPDATE))
@@ -768,7 +768,7 @@ string const LyXFunc::Dispatch(int ac,
                UpdatableInset * tli =
                        owner->view()->theLockingInset();
                if (tli) {
-                       UpdatableInset * lock = tli->GetLockingInset();
+                       UpdatableInset * lock = tli->getLockingInset();
                        
                        if (tli == lock) {
                                owner->view()->unlockInset(tli);
@@ -776,7 +776,7 @@ string const LyXFunc::Dispatch(int ac,
                                moveCursorUpdate(true, false);
                                owner->showState();
                        } else {
-                               tli->UnlockInsetInInset(owner->view(),
+                               tli->unlockInsetInInset(owner->view(),
                                                        lock,
                                                        true);
                        }
@@ -1195,15 +1195,15 @@ string const LyXFunc::Dispatch(int ac,
 
        case LFUN_LAYOUT_TABULAR:
            if (owner->view()->theLockingInset()) {
-               if (owner->view()->theLockingInset()->LyxCode()==Inset::TABULAR_CODE) {
+               if (owner->view()->theLockingInset()->lyxCode()==Inset::TABULAR_CODE) {
                    InsetTabular * inset = static_cast<InsetTabular *>
                        (owner->view()->theLockingInset());
-                   inset->OpenLayoutDialog(owner->view());
+                   inset->openLayoutDialog(owner->view());
                } else if (owner->view()->theLockingInset()->
-                          GetFirstLockingInsetOfType(Inset::TABULAR_CODE)!=0) {
+                          getFirstLockingInsetOfType(Inset::TABULAR_CODE)!=0) {
                    InsetTabular * inset = static_cast<InsetTabular *>(
-                       owner->view()->theLockingInset()->GetFirstLockingInsetOfType(Inset::TABULAR_CODE));
-                   inset->OpenLayoutDialog(owner->view());
+                       owner->view()->theLockingInset()->getFirstLockingInsetOfType(Inset::TABULAR_CODE));
+                   inset->openLayoutDialog(owner->view());
                }
            }
            break;
index 756cb75c5aeed92af7efed4f3d914ade46c1457e..bf2d916877ad45688d635d0f3473dc9e86c664d6 100644 (file)
@@ -32,7 +32,7 @@ MathArray::MathArray(MathArray const & array)
 {
        for (int pos = 0; pos < size(); next(pos)) 
                if (isInset(pos)) 
-                       replace(pos, GetInset(pos)->Clone());
+                       replace(pos, GetInset(pos)->clone());
 }
 
 
index ea5f5f76d5494cbf4baecca3df9f3321578b0810..b062e47d78f1e06f11dc466cc10c7370053315d6 100644 (file)
@@ -71,46 +71,46 @@ InsetFormula::InsetFormula(MathInsetTypes t)
 
 
 
-Inset * InsetFormula::Clone(Buffer const &) const
+Inset * InsetFormula::clone(Buffer const &) const
 {
        return new InsetFormula(*this);
 }
 
 
-void InsetFormula::Write(Buffer const * buf, ostream & os) const
+void InsetFormula::write(Buffer const * buf, ostream & os) const
 {
        os << "Formula ";
-       Latex(buf, os, false, false);
+       latex(buf, os, false, false);
 }
 
 
-int InsetFormula::Latex(Buffer const *, ostream & os, bool fragile, bool) const
+int InsetFormula::latex(Buffer const *, ostream & os, bool fragile, bool) const
 {
        par()->Write(os, fragile);
        return 1;
 }
 
 
-int InsetFormula::Ascii(Buffer const *, ostream & os, int) const
+int InsetFormula::ascii(Buffer const *, ostream & os, int) const
 {
        par()->Write(os, false);
        return 1;
 }
 
 
-int InsetFormula::Linuxdoc(Buffer const * buf, ostream & os) const
+int InsetFormula::linuxdoc(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-int InsetFormula::DocBook(Buffer const * buf, ostream & os) const
+int InsetFormula::docBook(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-void InsetFormula::Read(Buffer const *, LyXLex & lex)
+void InsetFormula::read(Buffer const *, LyXLex & lex)
 {
        par_ = mathed_parse(lex);
 }
@@ -158,7 +158,7 @@ vector<string> const InsetFormula::getLabelList() const
 
 
 UpdatableInset::RESULT
-InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
+InsetFormula::localDispatch(BufferView * bv, kb_action action,
         string const & arg)
 {
        RESULT result = DISPATCHED;
@@ -168,14 +168,14 @@ InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
                case LFUN_BREAKLINE: 
                        bv->lockedInsetStoreUndo(Undo::INSERT);
                        par()->breakLine();
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
 
 
                case LFUN_DELETE_LINE_FORWARD:
                        bv->lockedInsetStoreUndo(Undo::DELETE);
                        mathcursor->DelLine();
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
 
                case LFUN_MATH_NUMBER:
@@ -187,7 +187,7 @@ InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
                                for (int row = 0; row < par()->nrows(); ++row)
                                        par()->numbered(row, !old);
                                bv->owner()->message(old ? _("No number") : _("Number"));
-                               UpdateLocal(bv);
+                               updateLocal(bv);
                        }
                        break;
                }
@@ -201,7 +201,7 @@ InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
                                bool old = par()->numbered(row);
                                bv->owner()->message(old ? _("No number") : _("Number"));
                                par()->numbered(row, !old);
-                               UpdateLocal(bv);
+                               updateLocal(bv);
                        }
                        break;
                }
@@ -240,24 +240,24 @@ InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
 
                        par()->label(row, new_label);
 
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
                }
 
                case LFUN_MATH_EXTERN:
-                       HandleExtern(arg, bv);
-                       UpdateLocal(bv);
+                       handleExtern(arg, bv);
+                       updateLocal(bv);
                        break;
 
                case LFUN_MATH_MUTATE:
                        par()->mutate(arg);
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
 
                case LFUN_TABINSERT:
                        lyxerr << "take index from cursor\n";
                        par()->splitCell(0);
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
 
                case LFUN_MATH_DISPLAY:
@@ -265,18 +265,18 @@ InsetFormula::LocalDispatch(BufferView * bv, kb_action action,
                                par()->mutate(LM_OT_EQUATION);
                        else
                                par()->mutate(LM_OT_SIMPLE);
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                        break;
 
                default:
-                       result = InsetFormulaBase::LocalDispatch(bv, action, arg);
+                       result = InsetFormulaBase::localDispatch(bv, action, arg);
        }
 
        return result;
 }
 
 
-void InsetFormula::HandleExtern(const string & arg, BufferView *)
+void InsetFormula::handleExtern(const string & arg, BufferView *)
 {
        //string outfile = lyx::tempName("maple.out");
        string outfile = "/tmp/lyx2" + arg + ".out";
@@ -303,13 +303,13 @@ MathMatrixInset * InsetFormula::par() const
 }
 
 
-Inset::Code InsetFormula::LyxCode() const
+Inset::Code InsetFormula::lyxCode() const
 {
        return Inset::MATH_CODE;
 }
 
 
-void InsetFormula::Validate(LaTeXFeatures & features) const
+void InsetFormula::validate(LaTeXFeatures & features) const
 {
        par()->Validate(features);
 }
index 8c54a429242343591650b84bca8d502742ba4135..388d770432db7adcb3c1f8f91863f27ab719157b 100644 (file)
@@ -42,30 +42,30 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const;
+       void write(Buffer const *, std::ostream &) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(Buffer const *, std::ostream &,
+       int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       virtual RESULT LocalDispatch(BufferView *, kb_action, string const &);
+       virtual RESULT localDispatch(BufferView *, kb_action, string const &);
        ///
        std::vector<string> const getLabelList() const;
        ///
-       void HandleExtern(string const & arg, BufferView * bv);
+       void handleExtern(string const & arg, BufferView * bv);
        ///
        MathMatrixInset * par() const;
        ///
index 18d369319b9feaf85a0edf3169fb5d10fa7fd0ce..08c49402b6af5c48ff3f0a2ab22019f4a45f4c7c 100644 (file)
@@ -200,10 +200,12 @@ InsetFormulaBase::InsetFormulaBase(MathInset * par)
        : par_(par)
 {}
 
+
 InsetFormulaBase::InsetFormulaBase(InsetFormulaBase const & f)
-       : UpdatableInset(f), par_(static_cast<MathInset *>(f.par_->Clone()))
+       : UpdatableInset(f), par_(static_cast<MathInset *>(f.par_->clone()))
 {}
 
+
 InsetFormulaBase::~InsetFormulaBase()
 {
 #ifdef WITH_WARNINGS
@@ -213,44 +215,44 @@ InsetFormulaBase::~InsetFormulaBase()
 }
 
 
-void InsetFormulaBase::Write(Buffer const * buf, ostream & os) const
+void InsetFormulaBase::write(Buffer const * buf, ostream & os) const
 {
        os << "Formula ";
-       Latex(buf, os, false, false);
+       latex(buf, os, false, false);
 }
 
 
-int InsetFormulaBase::Ascii(Buffer const *, ostream & os, int) const
+int InsetFormulaBase::ascii(Buffer const *, ostream & os, int) const
 {
        par_->Write(os, false);
        return 0;
 }
 
 
-int InsetFormulaBase::Linuxdoc(Buffer const * buf, ostream & os) const
+int InsetFormulaBase::linuxdoc(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-int InsetFormulaBase::DocBook(Buffer const * buf, ostream & os) const
+int InsetFormulaBase::docBook(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
 // Check if uses AMS macros
-void InsetFormulaBase::Validate(LaTeXFeatures &) const
+void InsetFormulaBase::validate(LaTeXFeatures &) const
 {}
 
 
-string const InsetFormulaBase::EditMessage() const
+string const InsetFormulaBase::editMessage() const
 {
        return _("Math editor mode");
 }
 
 
-void InsetFormulaBase::Edit(BufferView * bv, int x, int /*y*/, unsigned int)
+void InsetFormulaBase::edit(BufferView * bv, int x, int /*y*/, unsigned int)
 {
        mathcursor = new MathCursor(this);
 
@@ -270,12 +272,12 @@ void InsetFormulaBase::Edit(BufferView * bv, int x, int /*y*/, unsigned int)
 }
 
 
-void InsetFormulaBase::InsetUnlock(BufferView * bv)
+void InsetFormulaBase::insetUnlock(BufferView * bv)
 {
        if (mathcursor) {
                if (mathcursor->InMacroMode()) {
                        mathcursor->MacroModeClose();
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                }
                delete mathcursor;
        }
@@ -284,7 +286,7 @@ void InsetFormulaBase::InsetUnlock(BufferView * bv)
 }
 
 
-void InsetFormulaBase::GetCursorPos(BufferView *, int & x, int & y) const
+void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const
 {
        mathcursor->GetPos(x, y);
        x -= par_->xo();
@@ -292,7 +294,7 @@ void InsetFormulaBase::GetCursorPos(BufferView *, int & x, int & y) const
 }
 
 
-void InsetFormulaBase::ToggleInsetCursor(BufferView * bv)
+void InsetFormulaBase::toggleInsetCursor(BufferView * bv)
 {
        if (!mathcursor)
                return;
@@ -317,7 +319,7 @@ void InsetFormulaBase::ToggleInsetCursor(BufferView * bv)
 }
 
 
-void InsetFormulaBase::ShowInsetCursor(BufferView * bv, bool)
+void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
 {
        if (!isCursorVisible()) {
                if (mathcursor) {
@@ -331,19 +333,19 @@ void InsetFormulaBase::ShowInsetCursor(BufferView * bv, bool)
                        int const desc = lyxfont::maxDescent(font);
                        bv->fitLockedInsetCursor(x, y, asc, desc);
                }
-               ToggleInsetCursor(bv);
+               toggleInsetCursor(bv);
        }
 }
 
 
-void InsetFormulaBase::HideInsetCursor(BufferView * bv)
+void InsetFormulaBase::hideInsetCursor(BufferView * bv)
 {
        if (isCursorVisible())
-               ToggleInsetCursor(bv);
+               toggleInsetCursor(bv);
 }
 
 
-void InsetFormulaBase::ToggleInsetSelection(BufferView * bv)
+void InsetFormulaBase::toggleInsetSelection(BufferView * bv)
 {
        if (!mathcursor)
                return;
@@ -358,22 +360,22 @@ vector<string> const InsetFormulaBase::getLabelList() const
 }
 
 
-void InsetFormulaBase::UpdateLocal(BufferView * bv)
+void InsetFormulaBase::updateLocal(BufferView * bv)
 {
        par_->Metrics(LM_ST_TEXT);
        bv->updateInset(this, true);
 }
 
 
-void InsetFormulaBase::InsetButtonRelease(BufferView * bv,
-                                     int x, int y, int /*button*/)
+void InsetFormulaBase::insetButtonRelease(BufferView * bv,
+                                         int x, int y, int /*button*/)
 {
        if (mathcursor) {
-               HideInsetCursor(bv);
+               hideInsetCursor(bv);
                x += par_->xo();
                y += par_->yo();
                mathcursor->SetPos(x, y);
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
                if (sel_flag) {
                        sel_flag = false;
                        sel_x = 0;
@@ -384,8 +386,8 @@ void InsetFormulaBase::InsetButtonRelease(BufferView * bv,
 }
 
 
-void InsetFormulaBase::InsetButtonPress(BufferView * bv,
-               int x, int y, int /*button*/)
+void InsetFormulaBase::insetButtonPress(BufferView * bv,
+                                       int x, int y, int /*button*/)
 {
        sel_flag = false;
        sel_x = x;
@@ -397,22 +399,22 @@ void InsetFormulaBase::InsetButtonPress(BufferView * bv,
 }
 
 
-void InsetFormulaBase::InsetMotionNotify(BufferView * bv,
-               int x, int y, int /*button*/)
+void InsetFormulaBase::insetMotionNotify(BufferView * bv,
+                                        int x, int y, int /*button*/)
 {
        if (sel_x && sel_y && abs(x-sel_x) > 4 && !sel_flag) {
                sel_flag = true;
-               HideInsetCursor(bv);
+               hideInsetCursor(bv);
                mathcursor->SetPos(sel_x + par_->xo(), sel_y + par_->yo());
                mathcursor->SelStart();
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
                mathcursor->GetPos(sel_x, sel_y);
        } else if (sel_flag) {
-               HideInsetCursor(bv);
+               hideInsetCursor(bv);
                x += par_->xo();
                y += par_->yo();
                mathcursor->SetPos(x, y);
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
                mathcursor->GetPos(x, y);
                if (sel_x != x || sel_y != y)
                        bv->updateInset(this, false);
@@ -422,14 +424,15 @@ void InsetFormulaBase::InsetMotionNotify(BufferView * bv,
 }
 
 
-void InsetFormulaBase::InsetKeyPress(XKeyEvent *)
+void InsetFormulaBase::insetKeyPress(XKeyEvent *)
 {
-       lyxerr[Debug::MATHED] << "Used InsetFormulaBase::InsetKeyPress." << endl;
+       lyxerr[Debug::MATHED]
+               << "Used InsetFormulaBase::InsetKeyPress." << endl;
 }
 
 
 UpdatableInset::RESULT
-InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
+InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
                            string const & arg)
 {
        //lyxerr << "InsetFormulaBase::LocalDispatch: act: " << action
@@ -447,7 +450,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
        RESULT result = DISPATCHED;
        static MathSpaceInset * sp = 0;
 
-       HideInsetCursor(bv);
+       hideInsetCursor(bv);
 
        if (mathcursor->getLastCode() == LM_TC_TEX)
                varcode = LM_TC_TEX;
@@ -463,7 +466,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
 
        case LFUN_RIGHT:
                result = DISPATCH_RESULT(mathcursor->Right(sel));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
 
@@ -472,7 +475,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
 
        case LFUN_LEFT:
                result = DISPATCH_RESULT(mathcursor->Left(sel));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
 
@@ -481,7 +484,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
 
        case LFUN_UP:
                result = DISPATCH_RESULT(mathcursor->Up(sel));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
 
@@ -490,7 +493,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
 
        case LFUN_DOWN:
                result = DISPATCH_RESULT(mathcursor->Down(sel));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
 
@@ -507,19 +510,19 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
        case LFUN_DELETE_LINE_FORWARD:
                bv->lockedInsetStoreUndo(Undo::DELETE);
                mathcursor->DelLine();
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
        case LFUN_TAB:
                bv->lockedInsetStoreUndo(Undo::INSERT);
                mathcursor->idxRight();
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
        case LFUN_TABINSERT:
                bv->lockedInsetStoreUndo(Undo::INSERT);
                mathcursor->idxRight();
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
        case LFUN_BACKSPACE:
@@ -562,13 +565,13 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                        mathcursor->MacroModeClose();
                bv->lockedInsetStoreUndo(Undo::INSERT);
                mathcursor->SelPaste();
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
        case LFUN_CUT:
                bv->lockedInsetStoreUndo(Undo::DELETE);
                mathcursor->SelCut();
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
        case LFUN_COPY:
@@ -634,7 +637,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
        case LFUN_MATH_LIMITS:
                bv->lockedInsetStoreUndo(Undo::INSERT);
                if (mathcursor->toggleLimits())
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                break;
 
        case LFUN_MATH_SIZE:
@@ -642,7 +645,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                        bv->lockedInsetStoreUndo(Undo::INSERT);
                        latexkeys const * l = in_word_set(arg);
                        mathcursor->SetSize(MathStyles(l ? l->id : static_cast<unsigned int>(-1)));
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                }
                break;
 
@@ -650,7 +653,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!arg.empty()) {
                        bv->lockedInsetStoreUndo(Undo::INSERT);
                        mathcursor->Interpret(arg);
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                }
                break;
 
@@ -666,7 +669,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                        p->valign(v_align[0]);
                        p->halign(h_align);
                        mathcursor->insert(p);
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                }
                break;
 
@@ -711,7 +714,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                } else {
                        mathcursor->insert(new MathDelimInset(ilt, irt));
                }
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -719,7 +722,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                bv->lockedInsetStoreUndo(Undo::INSERT);
                mathcursor->insert(new MathSpaceInset(1));
                space_on = true;
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
 
                // Invalid actions under math mode
@@ -746,7 +749,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->halign(arg.size() ? arg[0] : 'c', p->col(idx));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -759,7 +762,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->valign(arg.size() ? arg[0] : 'c');
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -772,7 +775,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->addRow(p->row(idx));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -785,7 +788,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->delRow(p->row(idx));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -797,7 +800,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->addCol(p->col(idx));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -809,7 +812,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                if (!p)
                        break; 
                p->delCol(p->col(idx));
-               UpdateLocal(bv);
+               updateLocal(bv);
                break;
        }
 
@@ -938,7 +941,7 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
                                bv->owner()->message(_("TeX mode"));
                                mathcursor->setLastCode(LM_TC_TEX);
                        }
-                       UpdateLocal(bv);
+                       updateLocal(bv);
                } else if (action == LFUN_MATH_PANEL) {
                        result = UNDISPATCHED;
                } else {
@@ -953,20 +956,20 @@ InsetFormulaBase::LocalDispatch(BufferView * bv, kb_action action,
        if (mathcursor && was_macro != mathcursor->InMacroMode()
                                && action >= 0
                                && action != LFUN_BACKSPACE) 
-               UpdateLocal(bv);
+               updateLocal(bv);
        
        //if (mathcursor)
-       //              UpdateLocal(bv);
+       //              updateLocal(bv);
 
        if (sp && !space_on)
                sp = 0;
 
        if (mathcursor && (mathcursor->Selection() || was_selection))
-               ToggleInsetSelection(bv);
+               toggleInsetSelection(bv);
 
        if (result == DISPATCHED || result == DISPATCHED_NOUPDATE ||
            result == UNDISPATCHED)
-               ShowInsetCursor(bv);
+               showInsetCursor(bv);
        else
                bv->unlockInset(this);
 
@@ -987,7 +990,7 @@ bool math_insert_greek(BufferView * bv, char c)
 
        string tmp;
        tmp = c;
-       if (!bv->theLockingInset() || bv->theLockingInset()->IsTextInset()) {
+       if (!bv->theLockingInset() || bv->theLockingInset()->isTextInset()) {
                int greek_kb_flag_save = greek_kb_flag;
                InsetFormula * new_inset = new InsetFormula();
                bv->beforeChange(bv->text);
@@ -996,16 +999,16 @@ bool math_insert_greek(BufferView * bv, char c)
                        return false;
                }
                //Update(1);//BUG
-               new_inset->Edit(bv, 0, 0, 0);
-               new_inset->LocalDispatch(bv, LFUN_SELFINSERT, tmp);
+               new_inset->edit(bv, 0, 0, 0);
+               new_inset->localDispatch(bv, LFUN_SELFINSERT, tmp);
                if (greek_kb_flag_save < 2) {
                        bv->unlockInset(new_inset); // bv->theLockingInset());
                        bv->text->cursorRight(bv, true);
                }
        } else
-               if (bv->theLockingInset()->LyxCode() == Inset::MATH_CODE ||
-                               bv->theLockingInset()->LyxCode() == Inset::MATHMACRO_CODE)
-                       static_cast<InsetFormula*>(bv->theLockingInset())->LocalDispatch(bv, LFUN_SELFINSERT, tmp);
+               if (bv->theLockingInset()->lyxCode() == Inset::MATH_CODE ||
+                               bv->theLockingInset()->lyxCode() == Inset::MATHMACRO_CODE)
+                       static_cast<InsetFormula*>(bv->theLockingInset())->localDispatch(bv, LFUN_SELFINSERT, tmp);
                else
                        lyxerr << "Math error: attempt to write on a wrong "
                                "class of inset." << endl;
@@ -1014,13 +1017,13 @@ bool math_insert_greek(BufferView * bv, char c)
 
 
 
-Inset::Code InsetFormulaBase::LyxCode() const
+Inset::Code InsetFormulaBase::lyxCode() const
 {
        return Inset::MATH_CODE;
 }
 
 
-LyXFont const InsetFormulaBase::ConvertFont(LyXFont const & f) const
+LyXFont const InsetFormulaBase::convertFont(LyXFont const & f) const
 {
        // We have already discussed what was here
        LyXFont font(f);
index 0e82fa9227cdd3848992e1a2cf2a359d4de4bac0..9aff2b4a4666459397c7a1e11975650314cab146 100644 (file)
@@ -47,53 +47,53 @@ public:
        ///
        virtual void draw(BufferView *,LyXFont const &, int, float &, bool) const = 0;
        ///
-       virtual void Write(Buffer const *, std::ostream &) const = 0;
+       virtual void write(Buffer const *, std::ostream &) const = 0;
        ///
-       virtual void Read(Buffer const *, LyXLex & lex) = 0;
+       virtual void read(Buffer const *, LyXLex & lex) = 0;
        ///
-       virtual int Latex(Buffer const *, std::ostream &,
+       virtual int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const = 0;
        ///
-       virtual int Ascii(Buffer const *, std::ostream &, int linelen) const = 0;
+       virtual int ascii(Buffer const *, std::ostream &, int linelen) const = 0;
        ///
-       virtual int Linuxdoc(Buffer const *, std::ostream &) const = 0;
+       virtual int linuxdoc(Buffer const *, std::ostream &) const = 0;
        ///
-       virtual int DocBook(Buffer const *, std::ostream &) const = 0;
+       virtual int docBook(Buffer const *, std::ostream &) const = 0;
        ///
-       virtual void Validate(LaTeXFeatures &) const;
+       virtual void validate(LaTeXFeatures &) const;
        ///
-       virtual Inset * Clone(Buffer const &) const = 0;
+       virtual Inset * clone(Buffer const &) const = 0;
        ///
-       virtual Inset::Code LyxCode() const;
+       virtual Inset::Code lyxCode() const;
        ///
-       virtual LyXFont const ConvertFont(LyXFont const & f) const;
+       virtual LyXFont const convertFont(LyXFont const & f) const;
        /// what appears in the minibuffer when opening
-       virtual string const EditMessage() const;
+       virtual string const editMessage() const;
        ///
-       virtual void Edit(BufferView *, int x, int y, unsigned int button);
+       virtual void edit(BufferView *, int x, int y, unsigned int button);
        ///
-       virtual void ToggleInsetCursor(BufferView *);
+       virtual void toggleInsetCursor(BufferView *);
        ///
-       virtual void ShowInsetCursor(BufferView *, bool show = true);
+       virtual void showInsetCursor(BufferView *, bool show = true);
        ///
-       virtual void HideInsetCursor(BufferView *);
+       virtual void hideInsetCursor(BufferView *);
        ///
-       virtual void GetCursorPos(BufferView *, int &, int &) const;
+       virtual void getCursorPos(BufferView *, int &, int &) const;
        ///
-       virtual void ToggleInsetSelection(BufferView * bv);
+       virtual void toggleInsetSelection(BufferView * bv);
        ///
-       virtual void InsetButtonPress(BufferView *, int x, int y, int button);
+       virtual void insetButtonPress(BufferView *, int x, int y, int button);
        ///
-       virtual void InsetButtonRelease(BufferView *, int x, int y, int button);
+       virtual void insetButtonRelease(BufferView *, int x, int y, int button);
        ///
-       virtual void InsetKeyPress(XKeyEvent * ev);
+       virtual void insetKeyPress(XKeyEvent * ev);
        ///
-       virtual void InsetMotionNotify(BufferView *, int x, int y, int state);
+       virtual void insetMotionNotify(BufferView *, int x, int y, int state);
        ///
-       virtual void InsetUnlock(BufferView *);
+       virtual void insetUnlock(BufferView *);
    
        ///  To allow transparent use of math editing functions
-       virtual RESULT LocalDispatch(BufferView *, kb_action, string const &);
+       virtual RESULT localDispatch(BufferView *, kb_action, string const &);
     
        ///
        virtual std::vector<string> const getLabelList() const;
@@ -101,7 +101,7 @@ public:
        MathInset * par() const;
 protected:
        ///
-       virtual void UpdateLocal(BufferView * bv);
+       virtual void updateLocal(BufferView * bv);
 
        ///
        MathInset * par_;
index fec9ff2dc61f66ead136364f349f773954acef12..0a3d90611a2d2b0dfe7acb50f898c06db29f4532 100644 (file)
@@ -55,46 +55,46 @@ InsetFormulaMacro::InsetFormulaMacro(string nm, int na)
 }
 
 
-Inset * InsetFormulaMacro::Clone(Buffer const &) const
+Inset * InsetFormulaMacro::clone(Buffer const &) const
 {
        return new InsetFormulaMacro(*this);
 }
 
 
-void InsetFormulaMacro::Write(Buffer const *, ostream & os) const
+void InsetFormulaMacro::write(Buffer const *, ostream & os) const
 {
        os << "FormulaMacro ";
        tmacro()->Write(os, false);
 }
 
 
-int InsetFormulaMacro::Latex(Buffer const *, ostream & os, bool fragile, 
+int InsetFormulaMacro::latex(Buffer const *, ostream & os, bool fragile, 
                             bool /*free_spacing*/) const
 {
        tmacro()->Write(os, fragile);
        return 2;
 }
 
-int InsetFormulaMacro::Ascii(Buffer const *, ostream & os, int) const
+int InsetFormulaMacro::ascii(Buffer const *, ostream & os, int) const
 {
        tmacro()->Write(os, false);
        return 0;
 }
 
 
-int InsetFormulaMacro::Linuxdoc(Buffer const * buf, ostream & os) const
+int InsetFormulaMacro::linuxdoc(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-int InsetFormulaMacro::DocBook(Buffer const * buf, ostream & os) const
+int InsetFormulaMacro::docBook(Buffer const * buf, ostream & os) const
 {
-       return Ascii(buf, os, 0);
+       return ascii(buf, os, 0);
 }
 
 
-void InsetFormulaMacro::Read(Buffer const *, LyXLex & lex)
+void InsetFormulaMacro::read(Buffer const *, LyXLex & lex)
 {
        // Awful hack...
        par_ = mathed_parse(lex);
@@ -164,7 +164,7 @@ void InsetFormulaMacro::draw(BufferView * bv, LyXFont const & f,
 
 
 UpdatableInset::RESULT
-InsetFormulaMacro::LocalDispatch(BufferView * bv,
+InsetFormulaMacro::localDispatch(BufferView * bv,
                                 kb_action action, string const & arg)
 {
        RESULT result = DISPATCHED;
@@ -174,7 +174,7 @@ InsetFormulaMacro::LocalDispatch(BufferView * bv,
                        lyxerr << "inserting macro arg " << i << "\n";
                        if (i > 0 && i <= tmacro()->nargs()) {
                                mathcursor->insert(new MathMacroArgument(i));
-                               UpdateLocal(bv);
+                               updateLocal(bv);
                        } else {
                                lyxerr << "not in range 0.." << tmacro()->nargs() << "\n";
                        }
@@ -182,7 +182,7 @@ InsetFormulaMacro::LocalDispatch(BufferView * bv,
                }
                
                default:
-                       result = InsetFormulaBase::LocalDispatch(bv, action, arg);
+                       result = InsetFormulaBase::localDispatch(bv, action, arg);
        }
        return result;
 }
@@ -194,7 +194,7 @@ MathMacroTemplate * InsetFormulaMacro::tmacro() const
 }
 
 
-Inset::Code InsetFormulaMacro::LyxCode() const
+Inset::Code InsetFormulaMacro::lyxCode() const
 {
        return Inset::MATHMACRO_CODE;
 }
index 4293c3cf610ec6126a9bd3be61c2b8c83c75e66b..77c689ea51bb63345c77bd7d09f8aa29146046db 100644 (file)
@@ -45,24 +45,24 @@ public:
        ///
        void draw(BufferView *,LyXFont const &, int, float &, bool) const;
        ///
-       void Read(Buffer const *, LyXLex & lex);
+       void read(Buffer const *, LyXLex & lex);
        ///
-       void Write(Buffer const *, std::ostream & os) const;
+       void write(Buffer const *, std::ostream & os) const;
        ///
-       int Ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Latex(Buffer const *, std::ostream & os, bool fragile,
+       int latex(Buffer const *, std::ostream & os, bool fragile,
                  bool free_spc) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream & os) const;
+       int linuxdoc(Buffer const *, std::ostream & os) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docBook(Buffer const *, std::ostream &) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       Inset * clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const;
+       Inset::Code lyxCode() const;
        ///
-       RESULT LocalDispatch(BufferView *, kb_action, string const &);
+       RESULT localDispatch(BufferView *, kb_action, string const &);
 private:
        /// prefix in inset
        string prefix() const;
index 603669a31530359bbb99953906121edd8c5223f4..e5c89351bb429695da7ae223414e70eabb20938d 100644 (file)
@@ -25,12 +25,12 @@ MathAccentInset::~MathAccentInset()
 }
 
 
-MathInset * MathAccentInset::Clone() const
+MathInset * MathAccentInset::clone() const
 {   
        MathAccentInset * p;
        
        if (inset) 
-               p = new MathAccentInset(inset->Clone(), code);
+               p = new MathAccentInset(inset->clone(), code);
        else
                p = new MathAccentInset(c, fn, code);
        
index 7ff099451127060c60a4cd24f183a96ca7bd4931..4f2a2696a1646bc1fe6bf8fdc895ffff38cfd572 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        ~MathAccentInset();
        ///
-       MathInset *  Clone() const;
+       MathInset *  clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index 1c5f67eb2cb7a45218bf80cd5e5656b56119d1c2..9a8b6adf904ce0f767a64fc91570ae4fd5da9afd 100644 (file)
@@ -15,7 +15,7 @@ MathArrayInset::MathArrayInset(int m, int n)
 {}
 
 
-MathInset * MathArrayInset::Clone() const
+MathInset * MathArrayInset::clone() const
 {
        return new MathArrayInset(*this);
 }
index d5d0ed8dfdab89fdcfb34a1c35a66aa8ee4be5ff..8661877c37480b5334c0601ddb689717306737b6 100644 (file)
@@ -14,7 +14,7 @@ public:
        ///
        MathArrayInset(int m, int n);
        ///
-       MathInset *  Clone() const;
+       virtual MathInset * clone() const;
        ///
        void Write(std::ostream &, bool fragile) const;
 };
index 094cdcb5e45b220ea90d7b7b69f747a147d24494..f96594321d30a45903b45c9b6912bcd1d59d36e8 100644 (file)
@@ -17,7 +17,7 @@ MathBigopInset::MathBigopInset(string const & name, int id)
 }
 
 
-MathInset * MathBigopInset::Clone() const
+MathInset * MathBigopInset::clone() const
 {
        return new MathBigopInset(*this);
 }
index a518250f041e2c90a33da42ca9f478f7c8d080a0..946fb67ce5baa652bea2f839ce6294ebd007502f 100644 (file)
@@ -10,7 +10,7 @@ public:
        ///
        MathBigopInset(string const &, int);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index 40ea45d02f1802a956e0e1f8f2cccf36be9e93e8..b1f112cd69f746eb1cd5fbe0095cd28170cf5aac 100644 (file)
@@ -27,7 +27,7 @@ bool MathDecorationInset::GetLimits() const
 }    
 
 
-MathInset * MathDecorationInset::Clone() const
+MathInset * MathDecorationInset::clone() const
 {   
        return new MathDecorationInset(*this);
 }
index d90bcaeeaa78e6476e986d20dfb0214752a1e307..6a38d7137c196654574c8f4ce4fb4305c43af9c2 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        MathDecorationInset(int);
        ///
-       MathInset *  Clone() const;
+       MathInset *  clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index 421b6588fd9ed646db42a758d31a7ddc2a16db86..cb4788e9badf54ac06f9d246262ef27e94b9ccac 100644 (file)
@@ -17,7 +17,7 @@ MathDelimInset::MathDelimInset(int l, int r)
 {}
 
 
-MathInset * MathDelimInset::Clone() const
+MathInset * MathDelimInset::clone() const
 {   
        return new MathDelimInset(*this);
 }
index 757b36598379df5b56f0165acc72c856be225316..8ab72b17d145c2c78f53dbd6cbbad093cd6b91c5 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        MathDelimInset(int, int);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index c278db281c126cc8e354a05e0bc96429b52f1f9a..20964b3d0a05de367fe930cf64909caec3fc5f33 100644 (file)
@@ -16,7 +16,7 @@ MathDotsInset::MathDotsInset(string const & name, int id)
 {}
 
 
-MathInset * MathDotsInset::Clone() const
+MathInset * MathDotsInset::clone() const
 {
        return new MathDotsInset(*this);
 }     
index c21900261e5be7bd89750844c5c81add125baf1a..7f1b29e276c8bebfb9ca40393c6210beb3691a75 100644 (file)
@@ -15,7 +15,7 @@ public:
        ///
        MathDotsInset(string const &, int);
        ///
-       MathInset *  Clone() const;
+       MathInset *  clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index 895772568512e455d445b2a235a44d2f4ba399fd..b3307cb339e4544fb03cc65f3f49aee298fdd5e3 100644 (file)
@@ -21,7 +21,7 @@ MathFracInset::MathFracInset(MathInsetTypes ot)
 }
 
 
-MathInset * MathFracInset::Clone() const
+MathInset * MathFracInset::clone() const
 {   
        return new MathFracInset(*this);
 }
index 072d265bca1dfc221a12341fe5e19d1479e0b7d7..bf03ffc10a816e1ca934903a75d4c939f8a484b7 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        explicit MathFracInset(MathInsetTypes ot = LM_OT_FRAC);
        ///
-       virtual MathInset * Clone() const;
+       virtual MathInset * clone() const;
        ///
        virtual void Write(std::ostream &, bool fragile) const;
        ///
index 2f56e9fefb90021c68899788d6d774aa39210da6..3f143971a7485db1fd0fa4f1cab13b4a09aa1635 100644 (file)
@@ -24,7 +24,7 @@ MathFuncInset::MathFuncInset(string const & nm, MathInsetTypes ot)
 }
 
 
-MathInset * MathFuncInset::Clone() const
+MathInset * MathFuncInset::clone() const
 {
        return new MathFuncInset(*this);
 }
index 7bfea999a54c1b805ae593ed03d525dbd04a13ae..2028b2cfe03c5a07fcb695641103e0143a4073ef 100644 (file)
@@ -17,7 +17,7 @@ public:
        ///
        explicit MathFuncInset(string const & nm, MathInsetTypes ot = LM_OT_FUNC);
        ///
-       MathInset * Clone() const;
+       virtual MathInset * clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index f6ed4dee11879ae8ccafa0ea753fabc792b451f1..885de5b1fee88d72ac7b5b0720b6395a9ba8712a 100644 (file)
@@ -54,7 +54,7 @@ public:
        ///
        MathGridInset(int m, int n, string const & nm, MathInsetTypes ot);
        ///
-       MathInset *  Clone() const = 0;
+       virtual MathInset * clone() const = 0;
        ///
        void Write(std::ostream &, bool fragile) const;
        ///
index b44d53ad1ab2e45ccba85f467e253720a12a1c69..f2a473642fee8dad84ae8ce54a7e88207a5428de 100644 (file)
@@ -180,7 +180,7 @@ void MathInset::setData(MathArray const & a, int idx)
 
 void MathInset::substitute(MathArray & array, MathMacro const & m) const
 {
-       MathInset * p = Clone();
+       MathInset * p = clone();
        for (int i = 0; i < nargs(); ++i)
                p->cell(i).substitute(m);
        array.push_back(p);
index 2baa756e8e2dee8a4c333e52de09bded5ce9b3f8..bb56cdb4b8d21612a10c78141a8fc6e61d7e3b0b 100644 (file)
@@ -55,7 +55,7 @@ public:
        /// Write normalized content
        virtual void WriteNormal(std::ostream &) const;
        /// Reproduces itself
-       virtual MathInset * Clone() const = 0;
+       virtual MathInset * clone() const = 0;
        /// Appends itself with macro arguments substituted
        virtual void substitute(MathArray & array, MathMacro const & macro) const;
        /// Compute the size of the object
index aaaf5a328db1ede15ec8e8b2ca1ffd08a08a8fd1..b1aa13f1ff4fc5c19d20cbdc20bed7c0f44f480c 100644 (file)
@@ -38,7 +38,7 @@ MathMacro::MathMacro(MathMacroTemplate const & t)
 {}
 
 
-MathInset * MathMacro::Clone() const
+MathInset * MathMacro::clone() const
 {
        return new MathMacro(*this);
 }
index d3186cd3607d3134e625ae4c7b565ea7137bc5bc..094efe14f9ee8a459c2b10e979000e87450daef9 100644 (file)
@@ -43,7 +43,7 @@ public:
        ///
        void Metrics(MathStyles st);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void Write(std::ostream &, bool fragile) const;
        ///
index 343ef599423590e9804aa2ab855067f68ba3c480..44b01ef89b43905962de93b9da01ac219bbe1736 100644 (file)
@@ -24,7 +24,7 @@ MathMacroArgument::MathMacroArgument(int n)
 }
 
 
-MathInset * MathMacroArgument::Clone() const
+MathInset * MathMacroArgument::clone() const
 {
        return new MathMacroArgument(*this);
 }
index 4321db42b16396fa0e35e6dcb32cacec3e46e433..594b7100e4ef3b70d3f79e26c89896794b832816 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        explicit MathMacroArgument(int);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void Metrics(MathStyles st);
        ///
index 1bebb8596f35c19bc6e776acbd2603ad0844e1da..2b7c3ffde42f1821d4dff464821d8216fa43d8e5 100644 (file)
@@ -19,7 +19,7 @@ MathMacroTemplate::MathMacroTemplate(string const & nm, int numargs) :
 {}
 
 
-MathInset * MathMacroTemplate::Clone() const
+MathInset * MathMacroTemplate::clone() const
 {
        lyxerr << "cloning MacroTemplate!\n";
        return new MathMacroTemplate(*this);
index 4b878cd6f0c6b5f71f39542ce4ecd9113a80718d..8f8d709c42f5d728e15c809e8237df4c198fb62b 100644 (file)
@@ -24,7 +24,7 @@ public:
        ///
        MathMacroTemplate(string const & name, int nargs);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void Write(std::ostream &, bool fragile) const;
        /// Number of arguments
index 4d9024ed7b46075e4ce8034c9d43b25f2cf24503..4ae0101f1ed150086ac5e4d449a72b71507c9c90 100644 (file)
@@ -80,7 +80,7 @@ MathMatrixInset::MathMatrixInset()
        : MathGridInset(1, 1, "formula", LM_OT_SIMPLE), nonum_(1), label_(1)
 {}
 
-MathInset * MathMatrixInset::Clone() const
+MathInset * MathMatrixInset::clone() const
 {
        return new MathMatrixInset(*this);
 }
index d19fa76474e6c8f8be56affc0201f73fb61b9475..f315794cd473fa708c587e1eac52f80e3f8da549 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        explicit MathMatrixInset(MathInsetTypes t);
        ///
-       MathInset *  Clone() const;
+       MathInset * clone() const;
        ///
        void Write(std::ostream &, bool fragile) const;
        ///
index 27bc85210313d7e1d127c30e9c6b1020430bf2fe..8975b49e62abc93b909592bcded44b0e186c9108 100644 (file)
@@ -23,7 +23,7 @@ public:
        MathParInset(short st = LM_ST_TEXT, string const & nm = string(),
                     short ot = LM_OT_MIN);
        ///
-       virtual MathedInset * Clone();
+       virtual MathedInset * clone();
        ///
        virtual void substitute(MathMacro *);
        /// Draw the object on a drawable
index 6dcfbc0e032ca581821f36a60a2e87e25392cdf5..f6ae3478f3507ff252391df250aca3beb9829f3c 100644 (file)
@@ -28,7 +28,7 @@ MathRootInset::MathRootInset()
 {}
 
 
-MathInset * MathRootInset::Clone() const
+MathInset * MathRootInset::clone() const
 {
        return new MathRootInset(*this);
 }
index c8e02340fdf2eee6d89a29108d2a5f04d522c70b..1b1fb2e360b2ea048ba80b0f6f7a911fc5800383 100644 (file)
@@ -31,7 +31,7 @@ public:
        ///
        MathRootInset();
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void draw(Painter &, int x, int baseline);
        ///
index 26d58f5f6dbe4755b4b34c1db5bbca0836bcb2f9..0f025e0e0a7fd81a7622d0fbbde62bb3f715e6d4 100644 (file)
@@ -23,7 +23,7 @@ MathScriptInset::MathScriptInset(bool up, bool down)
 {}
 
 
-MathInset * MathScriptInset::Clone() const
+MathInset * MathScriptInset::clone() const
 {   
        return new MathScriptInset(*this);
 }
index d9713b5cfa9ca1daa13ca3ee70aaec4bb0b77bd8..6ea6d8d6f472893859d168c15770d2ac31616688 100644 (file)
@@ -19,7 +19,7 @@ public:
        ///
        MathScriptInset(bool up, bool down);
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void Write(std::ostream &, bool fragile) const;
        ///
index f46065ade0236be17690aa250762b799e84a18c3..762632da333115ccdd8d0df05b233009ef887205 100644 (file)
@@ -31,7 +31,7 @@ char const * MathSizeInset::verbose() const
 }
 
 
-MathInset * MathSizeInset::Clone() const
+MathInset * MathSizeInset::clone() const
 {
        return new MathSizeInset(*this);
 }
index c610da08bab5b6bde79c18977e1b97d8ddea3650..98d209e5e161f4d347582d8f803d4122df900be3 100644 (file)
@@ -18,7 +18,7 @@ public:
        ///
        explicit MathSizeInset(MathStyles st);
        ///
-       MathInset * Clone() const;
+       virtual MathInset * clone() const;
        ///
        void Metrics(MathStyles st);
        ///
index 375b4b1ed26b971b7a404589892585fd99c054ef..b53d0ed491224fe009440354cd9099c1ec102cbb 100644 (file)
@@ -16,7 +16,7 @@ MathSpaceInset::MathSpaceInset(int sp, MathInsetTypes ot)
 {}
 
 
-MathInset * MathSpaceInset::Clone() const
+MathInset * MathSpaceInset::clone() const
 {
        return new MathSpaceInset(*this);
 }
index fdb10df4d381ca35760857c2f6b0c89204af5786..67062c52681d98e9f8973e9f47e6c13f1eb5be8a 100644 (file)
@@ -15,7 +15,7 @@ public:
        ///
        MathSpaceInset(int sp, MathInsetTypes ot = LM_OT_SPACE);
        ///
-       MathInset *  Clone() const;
+       MathInset *  clone() const;
        ///
        void draw(Painter &, int, int);
        ///
index 08020b48705f27b641c0ee6dddb38ef4f9311943..df36cf28ce9645b55b1cd603d0020e3b0a90bb08 100644 (file)
@@ -16,7 +16,7 @@ MathSqrtInset::MathSqrtInset()
 {}
 
 
-MathInset * MathSqrtInset::Clone() const
+MathInset * MathSqrtInset::clone() const
 {   
        return new MathSqrtInset(*this);
 }
index c022aa2850e728641895a7cafea477adfd14abfc..18019df49def899c25f0d99e49e0fbd113d7b2a7 100644 (file)
@@ -16,7 +16,7 @@ public:
        ///
        MathSqrtInset();
        ///
-       MathInset * Clone() const;
+       MathInset * clone() const;
        ///
        void draw(Painter &, int x, int baseline);
        ///
index c1ca96b893e9efe524cf4b67b240d6b719068d1f..41dbf70b93ec294583343e5329e8ae2f16f879d7 100644 (file)
@@ -126,7 +126,7 @@ Paragraph::Paragraph(Paragraph const & lp)
         // ale970302
        if (lp.bibkey)
                bibkey = static_cast<InsetBibKey *>
-                       (lp.bibkey->Clone(*current_view->buffer()));
+                       (lp.bibkey->clone(*current_view->buffer()));
        else
                bibkey = 0;
        
@@ -135,7 +135,7 @@ Paragraph::Paragraph(Paragraph const & lp)
        insetlist = lp.insetlist;
        for (InsetList::iterator it = insetlist.begin();
             it != insetlist.end(); ++it)
-               it->inset = it->inset->Clone(*current_view->buffer());
+               it->inset = it->inset->clone(*current_view->buffer());
 }
 
 
@@ -236,7 +236,7 @@ void Paragraph::writeFile(Buffer const * buf, ostream & os,
        
        // bibitem  ale970302
        if (bibkey)
-               bibkey->Write(buf, os);
+               bibkey->write(buf, os);
        
        LyXFont font1(LyXFont::ALL_INHERIT, bparams.language);
        
@@ -261,14 +261,14 @@ void Paragraph::writeFile(Buffer const * buf, ostream & os,
                {
                        Inset const * inset = getInset(i);
                        if (inset)
-                               if (inset->DirectWrite()) {
+                               if (inset->directWrite()) {
                                        // international char, let it write
                                        // code directly so it's shorter in
                                        // the file
-                                       inset->Write(buf, os);
+                                       inset->write(buf, os);
                                } else {
                                        os << "\n\\begin_inset ";
-                                       inset->Write(buf, os);
+                                       inset->write(buf, os);
                                        os << "\n\\end_inset \n\n";
                                        column = 0;
                                }
@@ -368,7 +368,7 @@ void Paragraph::validate(LaTeXFeatures & features) const
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
                if ((*cit).inset)
-                       (*cit).inset->Validate(features);
+                       (*cit).inset->validate(features);
        }
 }
 
@@ -384,7 +384,7 @@ void Paragraph::copyIntoMinibuffer(Buffer const & buffer,
        minibuffer_inset = 0;
        if (minibuffer_char == Paragraph::META_INSET) {
                if (getInset(pos)) {
-                       minibuffer_inset = getInset(pos)->Clone(buffer);
+                       minibuffer_inset = getInset(pos)->clone(buffer);
                } else {
                        minibuffer_inset = 0;
                        minibuffer_char = ' ';
@@ -493,7 +493,7 @@ bool Paragraph::insertInsetAllowed(Inset * inset)
        //lyxerr << "Paragraph::InsertInsetAllowed" << endl;
        
        if (pimpl_->inset_owner)
-               return pimpl_->inset_owner->InsertInsetAllowed(inset);
+               return pimpl_->inset_owner->insertInsetAllowed(inset);
        return true;
 }
 
@@ -1190,7 +1190,7 @@ int Paragraph::autoDeleteInsets()
        int count = 0;
        InsetList::size_type index = 0;
        while (index < insetlist.size()) {
-               if (insetlist[index].inset && insetlist[index].inset->AutoDelete()) {
+               if (insetlist[index].inset && insetlist[index].inset->autoDelete()) {
                        erase(insetlist[index].pos); 
                        // Erase() calls to insetlist.erase(&insetlist[index])
                        // so index shouldn't be increased.
@@ -1306,7 +1306,7 @@ Paragraph * Paragraph::TeXOnePar(Buffer const * buf,
                break;
        case LATEX_ITEM_ENVIRONMENT:
                if (bibkey) {
-                       bibkey->Latex(buf, os, false, false);
+                       bibkey->latex(buf, os, false, false);
                } else
                        os << "\\item ";
                break;
@@ -1896,9 +1896,9 @@ string const Paragraph::asString(Buffer const * buffer, bool label)
                if (IsPrintable(c))
                        s += c;
                else if (c == META_INSET &&
-                        getInset(i)->LyxCode() == Inset::MATH_CODE) {
+                        getInset(i)->lyxCode() == Inset::MATH_CODE) {
                        std::ostringstream ost;
-                       getInset(i)->Ascii(buffer, ost);
+                       getInset(i)->ascii(buffer, ost);
                        s += subst(ost.str().c_str(),'\n',' ');
                }
        }
@@ -1924,7 +1924,7 @@ string const Paragraph::asString(Buffer const * buffer,
                if (IsPrintable(c))
                        ost << c;
                else if (c == META_INSET) {
-                       getInset(i)->Ascii(buffer, ost);
+                       getInset(i)->ascii(buffer, ost);
                }
        }
 
@@ -1949,7 +1949,7 @@ void Paragraph::deleteInsetsLyXText(BufferView * bv)
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
                if ((*cit).inset) {
-                       if ((*cit).inset->IsTextInset()) {
+                       if ((*cit).inset->isTextInset()) {
                                static_cast<UpdatableInset *>
                                        ((*cit).inset)->deleteLyXText(bv, true);
                        }
@@ -1964,7 +1964,7 @@ void Paragraph::resizeInsetsLyXText(BufferView * bv)
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
                if ((*cit).inset) {
-                       if ((*cit).inset->IsTextInset()) {
+                       if ((*cit).inset->isTextInset()) {
                                static_cast<UpdatableInset *>
                                        ((*cit).inset)->resizeLyXText(bv, true);
                        }
index 2486855550a2ac064e7bdfa0412ec966d4f86265..b6666b6043e3f46465808317c8d04d39d202d75f 100644 (file)
@@ -282,7 +282,7 @@ public:
        Inset const * getInset(size_type pos) const;
        /** important for cut and paste
            Temporary change from BufferParams to Buffer. Will revert when we
-           get rid of the argument to Inset::Clone(Buffer const &) */
+           get rid of the argument to Inset::clone(Buffer const &) */
        void copyIntoMinibuffer(Buffer const &, size_type pos) const;
        ///
        void cutIntoMinibuffer(BufferParams const &, size_type pos);
index 2c941a762a29427b6767c54849187292b3fe8986..f5a8e786dd401e6ca45e44670cc4b62d73a9ff2b 100644 (file)
@@ -271,15 +271,15 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const * buf,
                        bool close = false;
                        int const len = os.tellp();
                        //ostream::pos_type const len = os.tellp();
-                       if ((inset->LyxCode() == Inset::GRAPHICS_CODE
-                            || inset->LyxCode() == Inset::MATH_CODE
-                            || inset->LyxCode() == Inset::URL_CODE)
+                       if ((inset->lyxCode() == Inset::GRAPHICS_CODE
+                            || inset->lyxCode() == Inset::MATH_CODE
+                            || inset->lyxCode() == Inset::URL_CODE)
                            && running_font.isRightToLeft()) {
                                os << "\\L{";
                                close = true;
                        }
 
-                       int tmp = inset->Latex(buf, os, moving_arg,
+                       int tmp = inset->latex(buf, os, moving_arg,
                                               style.free_spacing);
 
                        if (close)
index eb6219ea2e569333a96dcd9d4579b57c2fd49140..ec9c0fe9bc2495f9b8d457097ed45efbec610500 100644 (file)
@@ -206,7 +206,7 @@ void LyXTabular::ReadOld(Buffer const * buf, istream & is,
            getTokenValue(line, "special", cell_info[i][j].align_special);
            l_getline(is, line);
            if (prefixIs(line, "\\begin_inset")) {
-               cell_info[i][j].inset.Read(buf, lex);
+               cell_info[i][j].inset.read(buf, lex);
                l_getline(is, line);
            }
            if (line != "</Cell>") {
index e7e5b034618ca6402cfc79f83ffb7cbf54b713fd..f681ee2533af66cbad3632767d333ebd6e0e044a 100644 (file)
@@ -152,7 +152,7 @@ LyXTabular & LyXTabular::operator=(LyXTabular const & lt)
 }
 
 
-LyXTabular * LyXTabular::Clone(InsetTabular * inset)
+LyXTabular * LyXTabular::clone(InsetTabular * inset)
 {
        LyXTabular * result = new LyXTabular(inset, *this);
 #if 0
@@ -187,7 +187,7 @@ void LyXTabular::Init(int rows_arg, int columns_arg, LyXTabular const * lt)
        for (int i = 0; i < rows_; ++i) {
                for (int j = 0; j < columns_; ++j) {
                        cell_info[i][j].inset.setOwner(owner_);
-                       cell_info[i][j].inset.SetDrawFrame(0, InsetText::LOCKED);
+                       cell_info[i][j].inset.setDrawFrame(0, InsetText::LOCKED);
                        cell_info[i][j].cellno = cellno++;
                }
                cell_info[i].back().right_line = true;
@@ -382,7 +382,7 @@ void LyXTabular::set_row_column_number_info(bool oldformat)
                                cell_info[row][column].right_line =
                                        cell_info[row][column+cn-1].right_line;
                        }
-                       cell_info[row][column].inset.SetAutoBreakRows(
+                       cell_info[row][column].inset.setAutoBreakRows(
                                !GetPWidth(GetCellNumber(row, column)).empty());
                }
        }
@@ -668,7 +668,7 @@ bool LyXTabular::SetColumnPWidth(int cell, string const & width)
        for (int i = 0; i < rows_; ++i) {
                int c = GetCellNumber(i, j);
                flag = !GetPWidth(c).empty(); // because of multicolumns!
-               GetCellInset(c)->SetAutoBreakRows(flag);
+               GetCellInset(c)->setAutoBreakRows(flag);
        }
        return true;
 }
@@ -680,7 +680,7 @@ bool LyXTabular::SetMColumnPWidth(int cell, string const & width)
 
        cellinfo_of_cell(cell)->p_width = width;
        if (IsMultiColumn(cell)) {
-               GetCellInset(cell)->SetAutoBreakRows(flag);
+               GetCellInset(cell)->setAutoBreakRows(flag);
                return true;
        }
        return false;
@@ -1078,7 +1078,7 @@ void LyXTabular::Write(Buffer const * buf, ostream & os) const
                           << write_attribute("special", cell_info[i][j].align_special)
                           << ">\n";
                        os << "\\begin_inset ";
-                       cell_info[i][j].inset.Write(buf, os);
+                       cell_info[i][j].inset.write(buf, os);
                        os << "\n\\end_inset \n"
                           << "</cell>\n";
                }
@@ -1329,7 +1329,7 @@ void LyXTabular::ReadNew(Buffer const * buf, istream & is,
                        getTokenValue(line, "special", cell_info[i][j].align_special);
                        l_getline(is, line);
                        if (prefixIs(line, "\\begin_inset")) {
-                               cell_info[i][j].inset.Read(buf, lex);
+                               cell_info[i][j].inset.read(buf, lex);
                                l_getline(is, line);
                        }
                        if (!prefixIs(line, "</cell>")) {
@@ -1493,7 +1493,7 @@ void LyXTabular::OldFormatRead(LyXLex & lex, string const & fl)
        int pos = 0;
        Paragraph::depth_type depth = 0;
        LyXFont font(LyXFont::ALL_INHERIT);
-       font.setLanguage(owner_->BufferOwner()->GetLanguage());
+       font.setLanguage(owner_->bufferOwner()->getLanguage());
 
        while (lex.IsOK()) {
                lex.nextToken();
@@ -1506,7 +1506,7 @@ void LyXTabular::OldFormatRead(LyXLex & lex, string const & fl)
                        lex.pushToken(token);
                        break;
                }
-               if (owner_->BufferOwner()->parseSingleLyXformat2Token(lex, par,
+               if (owner_->bufferOwner()->parseSingleLyXformat2Token(lex, par,
                                                                                                                          return_par,
                                                                                                                          token, pos,
                                                                                                                          depth, font)) {
@@ -1555,7 +1555,7 @@ void LyXTabular::OldFormatRead(LyXLex & lex, string const & fl)
                                par->insertChar(i, ' ');
                        }
                }
-               par->copyIntoMinibuffer(*owner_->BufferOwner(), i);
+               par->copyIntoMinibuffer(*owner_->bufferOwner(), i);
                inset->par->insertFromMinibuffer(inset->par->size());
        }
        delete par;
@@ -2168,7 +2168,7 @@ int LyXTabular::Latex(Buffer const * buf,
 
                        if (rtl)
                                os << "\\R{";
-                       ret += inset->Latex(buf, os, fragile, fp);
+                       ret += inset->latex(buf, os, fragile, fp);
                        if (rtl)
                                os << "}";
 
@@ -2297,7 +2297,7 @@ int LyXTabular::DocBook(Buffer const * buf, ostream & os) const
                        }
                
                        os << ">";
-                       ret += GetCellInset(cell)->DocBook(buf, os);
+                       ret += GetCellInset(cell)->docBook(buf, os);
                        os << "</entry>";
                        ++cell;
                }
@@ -2425,7 +2425,7 @@ int LyXTabular::AsciiPrintCell(Buffer const * buf, ostream & os,
                                                           vector<unsigned int> const & clen) const
 {
        ostringstream sstr;
-       int ret = GetCellInset(cell)->Ascii(buf, sstr, 0);
+       int ret = GetCellInset(cell)->ascii(buf, sstr, 0);
 
        if (LeftLine(cell))
                os << "| ";
@@ -2484,7 +2484,7 @@ int LyXTabular::Ascii(Buffer const * buf, ostream & os) const
                        if (IsMultiColumn(cell, true))
                                continue;
                        ostringstream sstr;
-                       GetCellInset(cell)->Ascii(buf, sstr, 0);
+                       GetCellInset(cell)->ascii(buf, sstr, 0);
                        if (clen[j] < sstr.str().length())
                                clen[j] = sstr.str().length();
                }
@@ -2496,7 +2496,7 @@ int LyXTabular::Ascii(Buffer const * buf, ostream & os) const
                        if (!IsMultiColumn(cell, true) || IsPartOfMultiColumn(i, j))
                                continue;
                        ostringstream sstr;
-                       GetCellInset(cell)->Ascii(buf, sstr, 0);
+                       GetCellInset(cell)->ascii(buf, sstr, 0);
                        int len = int(sstr.str().length());
                        int const n = cells_in_multicolumn(cell);
                        for (int k = j; (len > 0) && (k < (j + n - 1)); ++k)
@@ -2543,7 +2543,7 @@ void LyXTabular::Validate(LaTeXFeatures & features) const
        for (int cell = 0; !features.array && (cell < numberofcells); ++cell) {
                if (GetVAlignment(cell) != LYX_VALIGN_TOP)
                        features.array = true;
-               GetCellInset(cell)->Validate(features);
+               GetCellInset(cell)->validate(features);
        }
 }
 
index 558f3e777cb905553222a48ec2ce5fad0a9766a9..810037f9853463ca52404082cadbc2aa62b7fb96 100644 (file)
@@ -163,7 +163,7 @@ public:
        ///
        LyXTabular & operator=(LyXTabular const &);
        ///
-       LyXTabular * Clone(InsetTabular *);
+       LyXTabular * clone(InsetTabular *);
        
        /// Returns true if there is a topline, returns false if not
        bool TopLine(int cell, bool onlycolumn = false) const;
index ec73323c6d6bc52715d185c1c15484f6af80b114..bcbeff0399df1b73da3bdf0444c43e30545d39e2 100644 (file)
 // I am not sure how some of the XWindows names coresponds to the TeX ones.
 
 tex_accent_struct lyx_accent_table[18] = {
-       { static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)},
-       {TEX_ACUTE,      "\\'",  " AEIOUYaeiouySZszRLCNrlcn", "acute",   LFUN_ACUTE},
-       {TEX_GRAVE,      "\\`",  " aeiouAEIOU",           "grave",    LFUN_GRAVE},
-       {TEX_MACRON,     "\\=",  " EeAIOUaiou",           "macron",    LFUN_MACRON},
-       {TEX_TILDE,      "\\~",  " ANOanoIiUu",           "tilde",    LFUN_TILDE},
-       {TEX_UNDERBAR,   "\\b", " ",                     "underbar", LFUN_UNDERBAR},
-       {TEX_CEDILLA,    "\\c", " CcSsTtRLGrlgNKnk",     "cedilla",    LFUN_CEDILLA},
-       {TEX_UNDERDOT,   "\\d", " ",                     "underdot", LFUN_UNDERDOT},
-       {TEX_CIRCUMFLEX, "\\^",  " AEIOUaeiouHJhjCGScgs", "circumflex",  LFUN_CIRCUMFLEX},
-       {TEX_CIRCLE,     "\\r", " AaUu",                 "circle",  LFUN_CIRCLE},
-       {TEX_TIE,        "\\t", " ",                     "tie",    LFUN_TIE},
-       {TEX_BREVE,      "\\u", " AaGgUu",               "breve",    LFUN_BREVE},
-       {TEX_CARON,      "\\v", " LSTZlstzCEDNRcednr",   "caron",    LFUN_CARON},
+       { static_cast<tex_accent>(0), "", /*"",*/ "", static_cast<kb_action>(0)},
+       {TEX_ACUTE,      "\\'",  /*" AEIOUYaeiouySZszRLCNrlcn",*/ "acute",   LFUN_ACUTE},
+       {TEX_GRAVE,      "\\`",  /*" aeiouAEIOU",*/           "grave",    LFUN_GRAVE},
+       {TEX_MACRON,     "\\=",  /*" EeAIOUaiou",*/           "macron",    LFUN_MACRON},
+       {TEX_TILDE,      "\\~",  /*" ANOanoIiUu",*/           "tilde",    LFUN_TILDE},
+       {TEX_UNDERBAR,   "\\b", /*" ",*/                     "underbar", LFUN_UNDERBAR},
+       {TEX_CEDILLA,    "\\c", /*" CcSsTtRLGrlgNKnk",*/     "cedilla",    LFUN_CEDILLA},
+       {TEX_UNDERDOT,   "\\d", /*" ",*/                     "underdot", LFUN_UNDERDOT},
+       {TEX_CIRCUMFLEX, "\\^",  /*" AEIOUaeiouHJhjCGScgs",*/ "circumflex",  LFUN_CIRCUMFLEX},
+       {TEX_CIRCLE,     "\\r", /*" AaUu",*/                 "circle",  LFUN_CIRCLE},
+       {TEX_TIE,        "\\t", /*" ",*/                     "tie",    LFUN_TIE},
+       {TEX_BREVE,      "\\u", /*" AaGgUu",*/               "breve",    LFUN_BREVE},
+       {TEX_CARON,      "\\v", /*" LSTZlstzCEDNRcednr",*/   "caron",    LFUN_CARON},
 //  {TEX_SPECIAL_CARON, "\\q", "", "ooo",  LFUN_SPECIAL_CARON},
-       {TEX_HUNGUML,    "\\H", " OUou",                 "hugarian_umlaut",    LFUN_HUNG_UMLAUT},
-       {TEX_UMLAUT,     "\\\"", " AEIOUaeiouy",          "umlaut",    LFUN_UMLAUT},
-       {TEX_DOT,        "\\.",  " ZzICGicgEe",           "dot",    LFUN_DOT},
-       {TEX_OGONEK,     "\\k",  " AaEe",                 "ogonek",    LFUN_OGONEK},
-       { static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)}};
+       {TEX_HUNGUML,    "\\H", /*" OUou",*/                 "hugarian_umlaut",    LFUN_HUNG_UMLAUT},
+       {TEX_UMLAUT,     "\\\"", /*" AEIOUaeiouy",*/          "umlaut",    LFUN_UMLAUT},
+       {TEX_DOT,        "\\.",  /*" ZzICGicgEe",*/           "dot",    LFUN_DOT},
+       {TEX_OGONEK,     "\\k",  /*" AaEe",*/                 "ogonek",    LFUN_OGONEK},
+       { static_cast<tex_accent>(0), "", /*"",*/ "", static_cast<kb_action>(0)}};
 
 
 tex_accent_struct get_accent(kb_action action)
@@ -80,7 +80,7 @@ tex_accent_struct get_accent(kb_action action)
                        return lyx_accent_table[i];
                ++i;
        }
-       struct tex_accent_struct temp = { static_cast<tex_accent>(0), 0, 0,
+       struct tex_accent_struct temp = { static_cast<tex_accent>(0), 0,
                                          0, static_cast<kb_action>(0)};
        return temp;
 }
index c6b676fa59efd4c479e83157d5104f62925696a8..e2b85f89526c89038bf75fc841fa32d052d6fd02 100644 (file)
@@ -98,8 +98,10 @@ struct tex_accent_struct {
        tex_accent accent;
        ///
        char const * cmd;
+#if 0
        ///
        char const * native;
+#endif
        ///
        char const * name;
        ///
index 2a30f1acf124fe3aef702594ba541570c872920b..5f69db7ed7079fe5809635366c916d87f39f4da9 100644 (file)
@@ -2018,7 +2018,7 @@ void LyXText::prepareToPrint(BufferView * bview,
           if (row->par()->getChar(row->pos()) == Paragraph::META_INSET
               && (inset=row->par()->getInset(row->pos()))
               && (inset->display())) // || (inset->scroll() < 0)))
-            align = (inset->LyxCode() == Inset::MATHMACRO_CODE)
+            align = (inset->lyxCode() == Inset::MATHMACRO_CODE)
                     ? LYX_ALIGN_BLOCK : LYX_ALIGN_CENTER;
 
           switch (align) {
@@ -2271,7 +2271,7 @@ string const LyXText::selectNextWord(BufferView * bview,
               && (cursor.par()->isLetter(cursor.pos())) 
                   || (cursor.par()->getChar(cursor.pos()) == Paragraph::META_INSET
                       && cursor.par()->getInset(cursor.pos()) != 0
-                      && cursor.par()->getInset(cursor.pos())->Latex(bview->buffer(), latex, false, false) == 0
+                      && cursor.par()->getInset(cursor.pos())->latex(bview->buffer(), latex, false, false) == 0
                       && latex.str() == "\\-"
                           ))
                cursor.pos(cursor.pos() + 1);
@@ -2304,7 +2304,7 @@ void LyXText::selectSelectedWord(BufferView * bview)
               && (cursor.par()->isLetter(cursor.pos())
                   || (cursor.par()->getChar(cursor.pos()) == Paragraph::META_INSET
                       && cursor.par()->getInset(cursor.pos()) != 0
-                      && cursor.par()->getInset(cursor.pos())->Latex(bview->buffer(), latex, false, false) == 0
+                      && cursor.par()->getInset(cursor.pos())->latex(bview->buffer(), latex, false, false) == 0
                       && latex.str() == "\\-"
                           )))
                cursor.pos(cursor.pos() + 1);
@@ -2649,7 +2649,7 @@ void LyXText::backspace(BufferView * bview)
                
                // some insets are undeletable here
                if (cursor.par()->getChar(cursor.pos()) == Paragraph::META_INSET) {
-                       if (!cursor.par()->getInset(cursor.pos())->Deletable())
+                       if (!cursor.par()->getInset(cursor.pos())->deletable())
                                return; 
                        // force complete redo when erasing display insets
                        // this is a cruel method but safe..... Matthias 
index 4a451e408931f714205905fc2a2d6c0c4f22bd64..471a65be75f117113a32f860b7f472397c35baf7 100644 (file)
@@ -261,11 +261,11 @@ void LyXText::setCharFont(BufferView * bv, Paragraph * par,
        if (par->getChar(pos) == Paragraph::META_INSET) {
                Inset * inset = par->getInset(pos);
                if (inset) {
-                       if (inset->Editable()==Inset::HIGHLY_EDITABLE) {
+                       if (inset->editable()==Inset::HIGHLY_EDITABLE) {
                                UpdatableInset * uinset = static_cast<UpdatableInset *>(inset);
-                               uinset->SetFont(bv, fnt, toggleall, true);
+                               uinset->setFont(bv, fnt, toggleall, true);
                        }
-                       font = inset->ConvertFont(font);
+                       font = inset->convertFont(font);
                }
        }
 
@@ -307,7 +307,7 @@ void LyXText::setCharFont(Buffer const * buf, Paragraph * par,
        LyXFont font(fnt);
        // Let the insets convert their font
        if (par->getChar(pos) == Paragraph::META_INSET) {
-               font = par->getInset(pos)->ConvertFont(font);
+               font = par->getInset(pos)->convertFont(font);
        }
 
        LyXLayout const & layout =
@@ -972,7 +972,7 @@ void LyXText::setSelection(BufferView * bview)
                selection.set(false);
 
        if (inset_owner && (selection.set() || lsel))
-               inset_owner->SetUpdateStatus(bview, InsetText::SELECTION);
+               inset_owner->setUpdateStatus(bview, InsetText::SELECTION);
 }
 
 
@@ -1087,7 +1087,7 @@ void LyXText::toggleFree(BufferView * bview,
                selection.cursor = cursor;
        }
        if (inset_owner)
-               inset_owner->SetUpdateStatus(bview, InsetText::CURSOR_PAR);
+               inset_owner->setUpdateStatus(bview, InsetText::CURSOR_PAR);
 }
 
 
@@ -1545,7 +1545,7 @@ void LyXText::setCounter(Buffer const * buf, Paragraph * par) const
                // the caption hack:
                if (layout.labeltype == LABEL_SENSITIVE) {
                        bool isOK (par->InInset() && par->InInset()->owner() &&
-                                  (par->InInset()->owner()->LyxCode() == Inset::FLOAT_CODE));
+                                  (par->InInset()->owner()->lyxCode() == Inset::FLOAT_CODE));
                        
                        if (isOK) {
                                InsetFloat * tmp = static_cast<InsetFloat*>(par->InInset()->owner());
@@ -1623,7 +1623,7 @@ void LyXText::insertInset(BufferView * bview, Inset * inset)
        // inset now after the Undo LyX tries to call inset->Edit(...) again
        // and cannot do this as the cursor is behind the inset and GetInset
        // does not return the inset!
-       if (inset->Editable() == Inset::HIGHLY_EDITABLE) {
+       if (inset->editable() == Inset::HIGHLY_EDITABLE) {
                cursorLeft(bview, true);
        }
 #endif
@@ -1958,7 +1958,7 @@ bool LyXText::gotoNextInset(BufferView * bview,
        } while (res.par() && 
                 !(res.par()->getChar(res.pos()) == Paragraph::META_INSET
                   && (inset = res.par()->getInset(res.pos())) != 0
-                  && find(codes.begin(), codes.end(), inset->LyxCode())
+                  && find(codes.begin(), codes.end(), inset->lyxCode())
                      != codes.end()
                   && (contents.empty() ||
                       static_cast<InsetCommand *>(res.par()->getInset(res.pos()))->getContents()
index 6edac6a44f243d0a40c4e2e83ba3bbe11644b944..e324cc46d9f32b93efb80cbb4926fe7fbfb32e8f 100644 (file)
@@ -144,11 +144,15 @@ void Trans::AddDeadkey(tex_accent accent, string const & keys,
        kmod_list_[accent] = new kmod_list_decl;
        kmod_list_[accent]->data = keys;
        kmod_list_[accent]->accent = accent;
+#if 0
        if (allowed == "native") { 
                kmod_list_[accent]->allowed= lyx_accent_table[accent].native;
-       } else { 
+       } else {
+#endif
                kmod_list_[accent]->allowed = allowed;
+#if 0
        }
+#endif
        
        for (string::size_type i = 0; i < keys.length(); ++i) {
                string & temp =
index 923d84cf956fa3736d56c7cada15c014d95c334f..cbef7d5b94fe0de71c9cb3dc39aa5810752ac463 100644 (file)
@@ -85,9 +85,12 @@ string const TransDeadkeyState::normalkey(char c, string const & trans)
                l = l->next;
        }
        if (l == 0) {
+#if 0
                // Not an exception. Check if it allowed
                if (countChar(deadkey_info_.allowed, c) > 0) {
+#endif
                        res = DoAccent(c, deadkey_info_.accent);
+#if 0
                } else {
                        // Not allowed
                        if (deadkey_!= 0)
@@ -95,6 +98,7 @@ string const TransDeadkeyState::normalkey(char c, string const & trans)
                        res+= TOKEN_SEP;
                        res+= trans;
                }
+#endif
        }
        currentState = init_state_;
        return res;
@@ -157,12 +161,15 @@ TransCombinedState::TransCombinedState()
 string const TransCombinedState::normalkey(char c, string const & trans)
 {
        string res;
-       
+
+#if 0
        // Check if the key is allowed on the combination
        if (countChar(comb_info_->data, c) > 0) {
+#endif
                string const temp = DoAccent(c, deadkey2_info_.accent);
                res = DoAccent(temp, deadkey_info_.accent);
                currentState = init_state_;
+#if 0
        } else {
                // Not allowed. Output deadkey1 and check deadkey2 + c
                if (deadkey_ != 0)
@@ -173,6 +180,7 @@ string const TransCombinedState::normalkey(char c, string const & trans)
                // Call deadkey state and leave it to setup the FSM
                res += deadkey_state_->normalkey(c, trans);
        }
+#endif
        return res;
 }
 
@@ -315,7 +323,7 @@ void TransManager::insert(string const & str, LyXText * text)
            !enc.first) {
                // Could not find an encoding
                InsetLatexAccent ins(str);
-               if (ins.CanDisplay()) {
+               if (ins.canDisplay()) {
                        text->insertInset(current_view, new InsetLatexAccent(ins));
                } else {
                        insertVerbatim(str, text);
@@ -344,7 +352,9 @@ void TransManager::deadkey(char c, tex_accent accent, LyXText * t)
        if (active_ == &default_ || c == 0) {
                KmodInfo i;
                i.accent = accent;
+#if 0
                i.allowed = lyx_accent_table[accent].native;
+#endif
                i.data.erase();
                i.exception_list = 0;