#! /bin/bash # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This script renames the most annoying abbreviations in Writer (and partially # in the shared code too). Just run it in the source directory. # sw only: 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" do S="${I%/*}" # change all except the filenames (in the .mk and in #include) # also avoid numFmt (OOXML token) and other stuff that must stay verbatim git grep -l "$S" sw/ | grep -v -e '\.mk' -e '/data/' -e '/testdocuments/' | xargs sed -i '/\(#include\|numFmt\|ForeignTxt\)/ !{ s/'"$I"'/g }' done # global: for I in "SvxSwAutoFmtFlags/SvxSwAutoFormatFlags" "GetCharFmtName/GetCharFormatName" \ "SvxFmtBreakItem/SvxFormatBreakItem" "SvxFmtKeepItem/SvxFormatKeepItem" \ "SvxFmtSplitItem/SvxFormatSplitItem" "etTxtLeft/etTextLeft" \ "etTxtFirstLineOfst/etTextFirstLineOfst" "CntntProtected/ContentProtected" \ "etTxtColor/etTextColor" "ClearFldColor/ClearFieldColor" \ "etCntntProtect/etContentProtect" "etPropTxtFirstLineOfst/etPropTextFirstLineOfst" \ "etCharFmtName/etCharFormatName" "HasMergeFmtTbl/HasMergeFormatTable" \ "etMergeFmtIndex/etMergeFormatIndex" "bAFmtByInput/bAFormatByInput" \ "bAFmt/bAFormat" "IsTxtFmt/IsTextFormat" "BuildWhichTbl/BuildWhichTable" \ "etFld/etField" "IsAutoFmtByInput/IsAutoFormatByInput" \ "etAutoFmtByInput/etAutoFormatByInput" "etMacroTbl/etMacroTable" \ "SvxClipboardFmtItem/SvxClipboardFormatItem" "SwFlyFrmFmt/SwFlyFrameFormat" \ "etTxtSize/etTextSize" do S="${I%/*}" git grep -l "$S" | grep -v -e '\.mk' -e 'rename-sw-abbreviations.sh' | xargs sed -i "s/$I/g" done # vim: set et sw=4 ts=4 textwidth=0: /cd-5.3-3.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/idlc
AgeCommit message (Expand)Author
2019-06-25Fix typoAndrea Gelmini
2019-06-25Fix typoAndrea Gelmini
2019-06-25Fix typoAndrea Gelmini
2019-06-25Fix typoAndrea Gelmini
2019-06-25Fix typoAndrea Gelmini
2019-06-25Fix typoAndrea Gelmini
2019-02-28loplugin:cstylecastStephan Bergmann
2019-02-28loplugin:includeformStephan Bergmann
2019-02-28loplugin:stringconstantStephan Bergmann
2019-02-28loplugin:externvarStephan Bergmann
2019-02-27Untabify .l files (to silence loplugin:indentation warnings)Stephan Bergmann
2019-02-27Add missing modelines to .l filesStephan Bergmann
2019-02-24loplugin:unusedfields in helpcompiler..jvmfwkNoel Grandin
2019-02-18Simplify containers iterations in [f-l]*Arkadiy Illarionov
2019-02-18loplugin:simplifybool, check for !(!a op !b)Noel Grandin
2019-02-09loplugin:indentation in helpcompiler..ioNoel Grandin
2019-01-22o3tl::make_unique -> std::make_unique in i18npool...reportdesignGabor Kelemen
2018-12-22idlc: no need to store single OString objects on the heapNoel Grandin
2018-12-08Remove obsolete SAL_FALLTHROUGH completelyStephan Bergmann
2018-12-07loplugin:singlevalfields extend to all static varsNoel Grandin
2018-11-29loplugin:stringconstant look for unnecessary OString constructor useNoel Grandin
2018-11-06loplugin:collapseif in dbaccess..lotuswordproNoel Grandin
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-10-18clang-tidy readability-simplify-boolean-exprNoel Grandin
2018-09-24loplugin:external (clang-cl)Stephan Bergmann
2018-09-17New loplugin:externalStephan Bergmann
2018-09-09loplugin:simplifyconstruct in helpcompiler..ioNoel Grandin
2018-08-30loplugin:useuniqueptr in idlc::compileFileNoel Grandin
2018-08-30use std::vector in AstStackNoel Grandin
2018-08-29replace rtl_allocateMemory with std::mallocNoel Grandin
2018-08-11set copy_paste_error to false rather than intentionalCaolán McNamara
2018-07-27Related: rhbz#1602589 add comments to coverity annotationsCaolán McNamara
2018-07-10tdf#42949 Fix IWYU warnings in include/osl/*hxxGabor Kelemen
2018-04-06fflush() followed by fclose() is redundantTakeshi Abe
2018-03-23loplugin:useuniqueptr in AstStructNoel Grandin
2018-03-18Use for-range loops in hwpfilter, i18n*, idl* and ioJulien Nabet
2018-03-05Make LibreOffice buildable on Haiku.Kacper Kasper