calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / bin / rename-sw-abbreviations.sh
blob219b4f26941dc113a07edf024a7f2c7955d47081
1 #! /bin/bash
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 # This script renames the most annoying abbreviations in Writer (and partially
11 # in the shared code too). Just run it in the source directory.
13 # sw only:
15 for I in "FrmFmt/FrameFormat" "Fmt/Format" "Cntnt/Content" "Txt/Text" "Tbl/Table" "GotoFld/GotoFormatField" "Fld/Field" "Ftn/Footnote" "Updt/Update" "Fml/Formula" "Hnt/Hint" "CurCrsr/CurrentCursor" "VisCrsr/VisibleCursor" "Crsr/Cursor" "CntFrm/ContentFrame" "Frm/Frame" "Stk/Stack"
17 S="${I%/*}"
18 # change all except the filenames (in the .mk and in #include)
19 # also avoid numFmt (OOXML token) and other stuff that must stay verbatim
20 git grep -l "$S" sw/ | grep -v -e '\.mk' -e '/data/' -e '/testdocuments/' | xargs sed -i '/\(#include\|numFmt\|ForeignTxt\)/ !{ s/'"$I"'/g }'
21 done
23 # global:
25 for I in "SvxSwAutoFmtFlags/SvxSwAutoFormatFlags" "GetCharFmtName/GetCharFormatName" \
26 "SvxFmtBreakItem/SvxFormatBreakItem" "SvxFmtKeepItem/SvxFormatKeepItem" \
27 "SvxFmtSplitItem/SvxFormatSplitItem" "etTxtLeft/etTextLeft" \
28 "etTxtFirstLineOfst/etTextFirstLineOfst" "CntntProtected/ContentProtected" \
29 "etTxtColor/etTextColor" "ClearFldColor/ClearFieldColor" \
30 "etCntntProtect/etContentProtect" "etPropTxtFirstLineOfst/etPropTextFirstLineOfst" \
31 "etCharFmtName/etCharFormatName" "HasMergeFmtTbl/HasMergeFormatTable" \
32 "etMergeFmtIndex/etMergeFormatIndex" "bAFmtByInput/bAFormatByInput" \
33 "bAFmt/bAFormat" "IsTxtFmt/IsTextFormat" "BuildWhichTbl/BuildWhichTable" \
34 "etFld/etField" "IsAutoFmtByInput/IsAutoFormatByInput" \
35 "etAutoFmtByInput/etAutoFormatByInput" "etMacroTbl/etMacroTable" \
36 "SvxClipboardFmtItem/SvxClipboardFormatItem" "SwFlyFrmFmt/SwFlyFrameFormat" \
37 "etTxtSize/etTextSize"
39 S="${I%/*}"
40 git grep -l "$S" | grep -v -e '\.mk' -e 'rename-sw-abbreviations.sh' | xargs sed -i "s/$I/g"
41 done
43 # vim: set et sw=4 ts=4 textwidth=0: