# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # 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/. #
# class UIMenubarTarget
# Handles platform-specific processing of menubar config files.
# defined by platform: # gb_UIMenubarTarget_UIMenubarTarget_platform # gb_UIMenubarTarget__command
# NOTE: for some reason xsltproc does not produce any file if there is # no output, so we touch the target to make sure it exists. define gb_UIImageListTarget__command
$(call gb_Helper_abbreviate_dirs,\
$(gb_UIImageListTarget_COMMAND) --nonet -o $@ $(gb_UIImageListTarget_XSLTFILE) $(UIFILE) && \
touch $@ \
) endef
# Handles UI configuration files. # # This mostly means UI description files (suffix .ui) for the new layouting # mechanism. # # This class provides the following filelists: # * UIConfig/<name> containing all nontranslatable files
# Disable this to see suppressed warnings ifeq (1,1)
gb_UIConfig_gla11y_PARAMETERS += -s $(UI_A11YSUPPRS) endif # Enable this to regenerate suppression files ifeq (1,0)
gb_UIConfig_gla11y_PARAMETERS += -g $(UI_A11YSUPPRS) endif
# Tell gla11y about LO-specific widgets # These are storage, containers, or preview
gb_UIConfig_gla11y_PARAMETERS += --widgets-suffixignored +ValueSet,HBox,VBox,ToolBox,Preview,PreviewWin,PreviewWindow,PrevWindow # These are buttons, thus already contain their label (but an image is not enough)
gb_UIConfig_gla11y_PARAMETERS += --widgets-button +svtlo-ManagedMenuButton
# All new warnings should be fatal except a few kinds which could be only doubtful
gb_UIConfig_gla11y_PARAMETERS += --fatal-all --not-fatal-type duplicate-mnemonic --not-fatal-type labelled-by-and-mnemonic --not-fatal-type orphan-label
gb_UIConfig_ALLFILES:= # Adds .ui file to the package # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_uifile target uifile define gb_UIConfig_add_uifile
gb_UIConfig_ALLFILES+=$(1):$(notdir $(2))
$(call gb_UIConfig__add_uifile,$(1),$(2))
endef
# Adds multiple .ui files to the package # # gb_UIConfig_add_uifiles target uifile(s) define gb_UIConfig_add_uifiles
$(foreach uifile,$(2),$(call gb_UIConfig_add_uifile,$(1),$(uifile)))
endef
# gb_UIConfig_add_uifiles target uifile(s) but only for running gla11y define gb_UIConfig_add_a11yerrors_uifiles
$(foreach uifile,$(2),$(call gb_UIConfig_add_a11yerrors_uifile,$(1),$(uifile)))
# Add menubar config file to the package. # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_menubarfile target file define gb_UIConfig_add_menubarfile
$(call gb_UIConfig__add_menubarfile,$(1),$(gb_UIConfig_INSTDIR)/$(1)/menubar/$(notdir $(2)),$(SRCDIR)/$(2).xml)
endef
# Adds multiple menubar config files to the package. # # gb_UIConfig_add_menubarfiles target file(s) define gb_UIConfig_add_menubarfiles
$(foreach menubarfile,$(2),$(call gb_UIConfig_add_menubarfile,$(1),$(menubarfile)))
endef
# Add a generated menubar config file to the package. # # The file is relative to $(WORKDIR) and without extension. # # gb_UIConfig_add_generated_menubarfile target file define gb_UIConfig_add_generated_menubarfile
$(call gb_UIConfig__add_menubarfile,$(1),$(gb_UIConfig_INSTDIR)/$(1)/menubar/$(notdir $(2)),$(WORKDIR)/$(2).xml)
endef
# Adds multiple menubar config files to the package. # # gb_UIConfig_add_generated_menubarfiles target file(s) define gb_UIConfig_add_generated_menubarfiles
$(foreach menubarfile,$(2),$(call gb_UIConfig_add_generated_menubarfile,$(1),$(menubarfile)))
endef
# Add statusbar config file to the package. # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_statusbarfile target file define gb_UIConfig_add_statusbarfile
$(call gb_UIConfig__add_xmlfile,$(1),$(1),statusbar,$(2))
endef
# Adds multiple statusbar config files to the package. # # gb_UIConfig_add_statusbarfiles target file(s) define gb_UIConfig_add_statusbarfiles
$(foreach statusbarfile,$(2),$(call gb_UIConfig_add_statusbarfile,$(1),$(statusbarfile)))
endef
# Add toolbar config file to the package. # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_toolbarfile target file define gb_UIConfig_add_toolbarfile
$(call gb_UIConfig__add_xmlfile,$(1),$(1),toolbar,$(2))
endef
# Adds multiple toolbar config files to the package. # # gb_UIConfig_add_toolbarfiles target file(s) define gb_UIConfig_add_toolbarfiles
$(foreach toolbarfile,$(2),$(call gb_UIConfig_add_toolbarfile,$(1),$(toolbarfile)))
endef
# Add popupmenu config file to the package. # # The file is relative to $(SRCDIR) and without extension. # # gb_UIConfig_add_popupmenufile target file define gb_UIConfig_add_popupmenufile
$(call gb_UIConfig__add_xmlfile,$(1),$(1),popupmenu,$(2))
endef
# Adds multiple popupmenu config files to the package. # # gb_UIConfig_add_popupmenufiles target file(s) define gb_UIConfig_add_popupmenufiles
$(foreach popupmenufile,$(2),$(call gb_UIConfig_add_popupmenufile,$(1),$(popupmenufile)))
endef
# vim: set noet sw=4 ts=4:
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.