f75cd22118
Vim users: No reason to panic. This does not mean that Emacs users would suddenly start to split existing (or new) code lines always before column 100. The default value for fill-column is 70, and that hasn't forced code lines edited in Emacs to be shorter than that earlier either. The primary intent of using a fill-column of 100 (instead of the default 70) is that when you edit some long (multi-line) comment block, and you want to reformat ("fill", "reflow") that comment (using the fill-paragraph command, bound to Meta-Q), lines will be filled up to column 100, and not just 70, which in most cases would look quite short. Unless I am strongly advised not to, I will start adding this to the mode lines in source files if I remember, as I happen to edit some comment block in them. Change-Id: Icfb93dbb22b2db7190fdc9c8ee9518d08e73c7a8
155 lines
5.5 KiB
Text
155 lines
5.5 KiB
Text
------------------------------------------------------------------------
|
|
|
|
* Stop / Think *
|
|
|
|
You need to choose either a pure MPLv2 header (from the top),
|
|
or an MPLv2 on ALv2 header (from the bottom).
|
|
|
|
If the new module you created is based in any way on an
|
|
existing module, then:
|
|
|
|
a) if that module has an MPLv2 on ALv2 header - please use
|
|
this option or
|
|
|
|
b) if the module is entirely your own work, and/or based on an
|
|
existing MPLv2 header - please use that header.
|
|
|
|
Otherwise, use the pure MPLv2 header for new code.
|
|
|
|
For any questions please contact me directly:
|
|
michael.meeks@collabora.com.
|
|
|
|
Thanks !
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
For all entirely new, original source files created by
|
|
LibreOffice hackers:
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
For C/C++/Java/IDL etc.
|
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* 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/.
|
|
*/
|
|
...
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
|
|
|
For makefiles:
|
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
|
|
#
|
|
# 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/.
|
|
#
|
|
...
|
|
# vim: set noet sw=4 ts=4:
|
|
|
|
For Python files:
|
|
|
|
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
|
#
|
|
# 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/.
|
|
#
|
|
...
|
|
# vim: set shiftwidth=4 softtabstop=4 expandtab:
|
|
|
|
For XML / .component:
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
* 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/.
|
|
*
|
|
-->
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
For source files which may contain code
|
|
from the Apache Software Foundation:
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
For C/C++/Java/IDL etc.
|
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* 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 file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
...
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
|
|
|
For makefiles, perl, scripts etc.
|
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
|
|
#
|
|
# 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 file incorporates work covered by the following license notice:
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed
|
|
# with this work for additional information regarding copyright
|
|
# ownership. The ASF licenses this file to you under the Apache
|
|
# License, Version 2.0 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
#
|
|
...
|
|
# vim: set noet sw=4 ts=4:
|
|
|
|
For XML / .component:
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
* 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 file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
-->
|