#!/usr/bin/env python3 # -*- 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/. # # wikilinks.py: # This throwaway program can be used to convert idl_chapter_refs.txt to a # "fake" IDL file that can be fed to doxygen to get the DevGuide Wiki links. # # Usage: # # In core, generate a file letting us know what kinds of entities to declare: # cat <(make -s cmd cmd='$(INSTDIR)/sdk/bin/unoidl-read --summary $(INSTDIR)/program/types.rdb') <(make -s cmd cmd='$(INSTDIR)/sdk/bin/unoidl-read --summary $(INSTDIR)/program/types.rdb $(INSTDIR)/program/types/offapi.rdb') | LC_ALL=C sort | LC_ALL=C uniq > /tmp/kinds # # Run the script while feeding it the chapter references and output the fake IDL: # python wikilinks.py < idl_chapter_refs.txt > generated_idl_chapter_refs.idl import sys devguidewww = "https://wiki.documentfoundation.org/" in_topic = False link = None description = None allthings = {} allkinds = {} for line in open("/tmp/kinds") : (kind,_,name) = line.strip().partition(" ") allkinds[name] = kind for line in sys.stdin : sline = line.strip() if sline.startswith("LINK:") : link = sline.partition('LINK:')[2] elif sline.startswith("DESCR:") : description = sline.partition('DESCR:')[2] elif sline == "TOPIC:" : in_topic = True elif in_topic : if sline == "" : in_topic = False elif sline in allthings : allthings[sline].append((link, description)) else: allthings[sline] = [(link, description)] print("""/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* this file was generated from idl_chapter_refs.txt by wikilinks.py */""") for key in allthings: kind = allkinds[key] parts = key.split(".") print("\n") for p in parts[0:-1] : print("module", p, "{") # for enums the "{}" trick results in broken/duplicate output if kind == "enum" : print("/// @" + kind, parts[-1]) print("/// @par Developers Guide") for item in allthings[key] : print("/// " + item[1] + "
") # doxygen does not have tags for e.g. @service but empty definition works if kind != "enum" : print(kind, parts[-1], "{}") for p in parts[0:-1] : print("};") # vim:set shiftwidth=4 softtabstop=4 expandtab: o-23.05'>distro/collabora/co-23.05 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl/win/gdi/salgdi.cxx
AgeCommit message (Expand)Author
2017-10-30Constify some VCL interface functionsJan-Marek Glogowski
2017-10-27loplugin:includeform: vcl (Windows)Stephan Bergmann
2017-10-23tdf#96505 Get rid of cargo cult long integer literalsudareechk
2017-09-18Acknowledge that WinSalGraphicsImpl::drawPolyLine modifies pPtAryStephan Bergmann
2017-08-17remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin
2017-07-03loplugin:oncevar (clang-cl): vclStephan Bergmann
2017-05-08cleanup tools/debug.hxx includesJochen Nitschke
2017-01-02The mfFontScale[n] is always 1.0Khaled Hosny
2016-12-07convert PolyFlags to scoped enumNoel Grandin
2016-12-01Kill old Windows layout enginesKhaled Hosny
2016-10-15clang-cl loplugin: vclStephan Bergmann
2016-09-30vcl: remove WNT ImplFontAttrCacheMichael Stahl
2016-06-09tdf#96971 SetXORMode - remove un-needed parametermelikeyurtoglu
2016-04-08opengl: use packed texture atlas for glyph cache in win. backendTomaž Vajngerl