LibreOffice์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹นํ•˜๊ธฐ

LibreOffice์˜ ๋ฉ”๋‰ด ํ•ญ๋ชฉ, ์•„์ด์ฝ˜, ๋Œ€ํ™” ์ƒ์ž ์ฝ˜ํŠธ๋กค ๋ฐ ์ด๋ฒคํŠธ์— ์‚ฌ์šฉ์ž ์ •์˜ ์Šคํฌ๋ฆฝํŠธ(๋งคํฌ๋กœ)๋ฅผ ํ• ๋‹นํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

LibreOffice์—์„œ๋Š” ๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

  1. LibreOffice Basic

  2. JavaScript

  3. BeanShell(Java)

  4. Python

In addition, developers can use high-level languages, for example Java programming language, to control LibreOffice externally. The API reference is online at api.libreoffice.org.

์ƒˆ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ๋„๊ตฌ - ์‚ฌ์šฉ์ž ์ •์˜๋ฅผ ์„ ํƒํ•˜๊ณ  ๋ฉ”๋‰ด ํƒญ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋ช…๋ น ์ถ”๊ฐ€๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. In the Category list box, scroll down and open the "Application Macros" entry.

  4. You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.

  5. ์ž„์˜์˜ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด ํ•ญ๋ชฉ์„ ์—ด์–ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  6. ๋ช…๋ น ๋ชฉ๋ก ์ƒ์ž์— ์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜ ๋ชฉ๋ก์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ํ•จ์ˆ˜๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  7. ์ถ”๊ฐ€๋ฅผ ํด๋ฆญํ•˜์—ฌ ์ƒˆ ๋ฉ”๋‰ด ํ• ๋‹น์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์ƒˆ ๋ฉ”๋‰ด ํ•ญ๋ชฉ์ด ํ•ญ๋ชฉ ๋ชฉ๋ก ์ƒ์ž์— ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

ํ‚ค ์กฐํ•ฉ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ๋„๊ตฌ - ์‚ฌ์šฉ์ž ์ •์˜ - ํ‚ค๋ณด๋“œ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. In the Category list box, scroll down and open the "Application Macros" entry.

  3. You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.

  4. ์ž„์˜์˜ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด ํ•ญ๋ชฉ์„ ์—ด์–ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  5. ๋ช…๋ น ๋ชฉ๋ก ์ƒ์ž์— ์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜ ๋ชฉ๋ก์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ž„์˜์˜ ํ•จ์ˆ˜๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  6. LibreOffice ๋˜๋Š” Writer(๋˜๋Š” ํ˜„์žฌ ์—ด๋ ค ์žˆ๋Š” ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ)์˜ ์˜ต์…˜ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    ์˜ต์…˜ ๋ฒ„ํŠผ์„ ์„ ํƒํ•˜๋ฉด ์ƒˆ๋กœ์šด ํ‚ค ์กฐํ•ฉ์˜ ๋ฒ”์œ„๊ฐ€ ๋ชจ๋“  LibreOffice์—์„œ ๋˜๋Š” ํ˜„์žฌ ๋ชจ๋“ˆ์˜ ๋ฌธ์„œ์—์„œ๋งŒ ์ ์šฉ๋˜๋„๋ก ์„ค์ •๋ฉ๋‹ˆ๋‹ค.

  7. Select a key combination from the Shortcut keys list box and click Assign.

์ด๋ฒคํŠธ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ๋„๊ตฌ - ์‚ฌ์šฉ์ž ์ •์˜ - ์ด๋ฒคํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. ๋งคํฌ๋กœ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. In the Library list box, scroll down and open the "Application Macros" entry.

  4. You see entries for "Application Macros" (scripts in the share directory of your LibreOffice installation), "My Macros" (scripts in the user directory), and the current document. Open any one of them to see the supported scripting languages.

  5. ์ž„์˜์˜ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด ํ•ญ๋ชฉ์„ ์—ด์–ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  6. ํ• ๋‹น๋œ ์ž‘์—… ๋ชฉ๋ก ์ƒ์ž์— ์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜ ๋ชฉ๋ก์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ž„์˜์˜ ํ•จ์ˆ˜๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  7. LibreOffice ๋˜๋Š” ํ˜„์žฌ ๋ฌธ์„œ์— ์ €์žฅํ•˜๋„๋ก ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

    ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์ƒˆ๋กœ์šด ์ด๋ฒคํŠธ ํ• ๋‹น์˜ ๋ฒ”์œ„๊ฐ€ ๋ชจ๋“  LibreOffice์—์„œ ๋˜๋Š” ํ˜„์žฌ ๋ชจ๋“ˆ์˜ ๋ฌธ์„œ์—์„œ๋งŒ ์ ์šฉ๋˜๋„๋ก ์„ค์ •๋ฉ๋‹ˆ๋‹ค.

  8. ๋ชฉ๋ก์—์„œ ์ด๋ฒคํŠธ๋ฅผ ์„ ํƒํ•˜๊ณ  ํ™•์ธ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

ํฌํ•จ๋œ ๊ฐœ์ฒด์˜ ์ด๋ฒคํŠธ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ๋ฌธ์„œ์—์„œ ์ฐจํŠธ ๋“ฑ์˜ ํฌํ•จ๋œ ๊ฐœ์ฒด๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Choose Format - Frame and Object - Properties - Macro.

  3. ๋งคํฌ๋กœ ๋ชฉ๋ก ์ƒ์ž์—์„œ LibreOffice ์Šคํฌ๋ฆฝํŠธ ํ•ญ๋ชฉ์„ ์—ฝ๋‹ˆ๋‹ค.

  4. ๊ณต์œ (LibreOffice ์„ค์น˜์˜ ๊ณต์œ  ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” ์Šคํฌ๋ฆฝํŠธ), ์‚ฌ์šฉ์ž(์‚ฌ์šฉ์ž ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” ์Šคํฌ๋ฆฝํŠธ) ๋ฐ ํ˜„์žฌ ๋ฌธ์„œ ํ•ญ๋ชฉ์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์„ธ ํ•ญ๋ชฉ ์ค‘ ํ•˜๋‚˜๋ฅผ ์—ด์–ด ์ง€์›๋˜๋Š” ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

  5. ์ž„์˜์˜ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด ํ•ญ๋ชฉ์„ ์—ด์–ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  6. ๊ธฐ์กด ๋งคํฌ๋กœ ์œ„์น˜ ๋ชฉ๋ก ์ƒ์ž์— ์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜ ๋ชฉ๋ก์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ํ•จ์ˆ˜๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  7. ๋ชฉ๋ก์—์„œ ์ด๋ฒคํŠธ๋ฅผ ์„ ํƒํ•˜๊ณ  ํ™•์ธ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

ํ•˜์ดํผ๋งํฌ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ์ปค์„œ๋ฅผ ํ•˜์ดํผ๋งํฌ ๋‚ด๋ถ€์— ๋†“์Šต๋‹ˆ๋‹ค.

  2. ์‚ฝ์ž… - ํ•˜์ดํผ๋งํฌ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. ์ด๋ฒคํŠธ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  4. ์œ„์— ์„ค๋ช…๋œ ๋Œ€๋กœ ์„ ํƒํ•˜๊ณ  ํ• ๋‹นํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋ฆผ์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ๋ฌธ์„œ์—์„œ ๊ทธ๋ฆผ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Choose Format - Image - Properties - Macro.

  3. ์œ„์— ์„ค๋ช…๋œ ๋Œ€๋กœ ์„ ํƒํ•˜๊ณ  ํ• ๋‹นํ•ฉ๋‹ˆ๋‹ค.

์–‘์‹ ์ฝ˜ํŠธ๋กค์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. ์–‘์‹ ์ฝ˜ํŠธ๋กค์„ ์‚ฝ์ž…ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋ฒ„ํŠผ์˜ ๊ฒฝ์šฐ ์ฝ˜ํŠธ๋กค ๋„๊ตฌ ๋ชจ์Œ์„ ์—ด๊ณ  ๋ˆ„๋ฆ„ ๋ฒ„ํŠผ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•œ ๋‹ค์Œ ๋ฌธ์„œ์—์„œ ๋ฒ„ํŠผ์„ ๋Œ์–ด ์—ฝ๋‹ˆ๋‹ค.

  2. ์–‘์‹ ์ฝ˜ํŠธ๋กค์„ ์„ ํƒํ•œ ๋‹ค์Œ ์ฝ˜ํŠธ๋กค ๋„๊ตฌ ๋ชจ์Œ์˜ ์ฝ˜ํŠธ๋กค์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. ์†์„ฑ ๋Œ€ํ™” ์ƒ์ž์˜ ์ด๋ฒคํŠธ ํƒญ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  4. ... ๋ฒ„ํŠผ ์ค‘ ํ•˜๋‚˜๋ฅผ ๋ˆŒ๋Ÿฌ ์„ ํƒํ•œ ์ด๋ฒคํŠธ์— ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ• ๋‹นํ•  ์ˆ˜ ์žˆ๋Š” ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ฝ๋‹ˆ๋‹ค.

LibreOffice Basic ๋Œ€ํ™” ์ƒ์ž์—์„œ ์ฝ˜ํŠธ๋กค์— ์Šคํฌ๋ฆฝํŠธ ํ• ๋‹น

  1. LibreOffice Basic ๋Œ€ํ™” ์ƒ์ž ํŽธ์ง‘๊ธฐ๋ฅผ ์—ด๊ณ  ํ•ด๋‹น ์ฝ˜ํŠธ๋กค์„ ์‚ฌ์šฉํ•˜์—ฌ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

  2. ์ฝ˜ํŠธ๋กค์„ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์œผ๋กœ ํด๋ฆญํ•˜๊ณ  ์†์„ฑ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. ์†์„ฑ ๋Œ€ํ™” ์ƒ์ž์˜ ์ด๋ฒคํŠธ ํƒญ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  4. ... ๋ฒ„ํŠผ ์ค‘ ํ•˜๋‚˜๋ฅผ ๋ˆŒ๋Ÿฌ ์„ ํƒํ•œ ์ด๋ฒคํŠธ์— ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ• ๋‹นํ•  ์ˆ˜ ์žˆ๋Š” ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ฝ๋‹ˆ๋‹ค.

Please support us!